Commit Graph

150472 Commits

Author SHA1 Message Date
rpaulo
1399def216 Rename TEST/test.c to avoid problems when doing a cleandir on case-insensitive
file systems.
ok'ed christos.
2006-08-31 20:20:38 +00:00
reinoud
055cdf5d13 Fix fencing bug on CD disk size; the comment was wrong, its the *length* of
the device and since we count from zero its equal to the number of sectors
and thus one higher than the last sector.

This fixes the read/write problems on the (raw) device where the last
sector was not readable/writable.
2006-08-31 19:46:54 +00:00
dyoung
8cd106d3d2 Per discussion on tech-kern and tech-userlevel, move the bit-twiddling
macros, __BIT, __BITS, SHIFTIN, SHIFTOUT, and __arraycount() from
lib/libkern/libkern.h to sys/cdefs.h.  Add a __-prefix to SHIFTIN
and SHIFTOUT, and add a manual page for the bit-twiddling macros,
bits(3).

Make the __BIT and __BITS macros "widthless," as best I can, by
changing their type to uintmax_t from uint32_t.  XXX The manual
page lags this change by a bit.

Define __PRIxBIT and __PRIxBITS printf(3) format strings.
2006-08-31 19:24:37 +00:00
tsutsui
a714ccc7c2 volatile void func(decl) -> void func(decl) __attribute__((__noreturn__)) 2006-08-31 19:23:44 +00:00
matt
3d36667ef9 Appease GCC4 by making /* NOTREACHED */ code return 0. 2006-08-31 18:31:59 +00:00
matt
77ef4246de Call unmapiodev when unmapping bus_space to possibly reclaim the VA. 2006-08-31 18:28:47 +00:00
matt
3d324b035e Add unmapiodev(vaddr_t, vsize_t) (to be used by bus_space_unmap) 2006-08-31 18:23:40 +00:00
matt
25159b5f42 Add unmapiodev. 2006-08-31 18:18:17 +00:00
matt
6a157410d2 Increase SYMTAB_SPACE 2006-08-31 18:12:42 +00:00
dogcow
5d399ea343 process_stoptrace is also used by PTRACE; fixes INSTALL_SMALL, GENERIC_TINY,
et al, where KTRACE isn't defined but PTRACE is.
2006-08-31 18:05:21 +00:00
matt
00185e0248 Make these compile again. (#include <arm/ep93xx/epgpioreg.h> and
do the proc -> lwp changeover).
2006-08-31 17:53:19 +00:00
dyoung
7ad81e35ff Remove an extraneous line that snuck into my previous commit. 2006-08-31 17:49:12 +00:00
dyoung
47be766fd3 Add a mode to gre(4) that sends GRE tunnel packets in UDP datagrams.
Fix MOBILE encapsulation.  Add many debugging printfs (mainly
concerning UDP mode).  Clean up the gre(4) code a bit.  Add the
capability to setup UDP tunnels to ifconfig.  Update documentation.

In UDP mode, gre(4) puts a GRE header onto transmitted packets,
and hands them to a UDP socket for transmission.  That is, the
encapsulation looks like this: IP+UDP+GRE+encapsulated packet.

There are two ways to set up a UDP tunnel.  One way is to tell the
source and destination IP+port to gre(4), and let gre(4) create
the socket.  The other way to create a UDP tunnel is for userland
to "delegate" a UDP socket to the kernel.
2006-08-31 17:46:16 +00:00
matt
d2fa9e5329 Make cpu_coredump dependent on COREDUMP 2006-08-31 16:49:21 +00:00
matt
34827b737d More PTRACE fallout. 2006-08-31 16:39:13 +00:00
he
3e73ce6bef Protect the include of "opt_ptrace.h" by _KERNEL_OPT. 2006-08-31 15:01:56 +00:00
tron
595808ad47 Don't build "linux_ptrace.c" anymore. ptrace(2) support is optional now
and we can't tell for the LKM whether the kernel supports it or not.
2006-08-31 14:00:29 +00:00
tron
3a715a0a6f Don't build "freebsd_ptrace.c" anymore. ptrace(2) support is optional now
and we can't tell for the LKM whether the kernel supports it or not.
2006-08-31 13:25:50 +00:00
gson
d9fde78727 In -i mode, flush standard output after each line. This is needed to
make the output appear in a timely fashion when redirected to a file
or pipe.
2006-08-31 10:25:04 +00:00
he
29c0c094cc Add linking against -lutil to pick up estrdup(). Fixes evbsh5 build. 2006-08-31 07:18:39 +00:00
matt
5322f324e6 Make this console now that vconsole is done and with GCC4. 2006-08-31 05:11:07 +00:00
xtraeme
6b60608a48 Execute k8_powernow_init() if it's a K8 CPU and is able to change FID/VID
(previously the test was always false).

POWERNOW_K8 now runs in 32-bit mode with amd64 CPUs.
2006-08-31 04:20:21 +00:00
oki
a7e68afd48 Regen (for PTRACE). 2006-08-31 00:23:11 +00:00
oki
a978ade516 Update for options PTRACE. 2006-08-31 00:21:09 +00:00
rumble
8b5466f087 Describe the GIO Product Identification Word and add a few macros to
extract other fields.
2006-08-31 00:01:10 +00:00
rumble
c693018067 Add the giopci device and associated ethernet/mii chipsets for the Phobos
and Set Engineering GIO fast ethernet boards.
2006-08-30 23:59:50 +00:00
rumble
ba52409a2e Provide a pseudo-pci bus for the following PCI ethernet boards, which live
behind custom PCI<->GIO bridges:
	- Set Engineering GIO Fast Ethernet (TI ThunderLAN)
	- Phobos G100 (DEC 21140?)
	- Phobos G130 (DEC 21143)
	- Phobos G160 (DEC 21143)

All boards present the chipsets' pci configuration registers at some
defined offset in their slots' address space as well as device registers.
We simply allow the MI pci subsystem to attach the devices.

This has been tested with a G130 board (DEC 21143) and works well on IP20
and IP24. The Set Engineering board attaches, works fine when receiving and
lightly transmitting, but chokes for unknown reasons on heavy transmits.
The tl(4) driver may need some fixing.
2006-08-30 23:58:13 +00:00
rumble
2d1cbf7222 Implement the gio_arb_config() interface for changing the machine-specific
gio bus arbiter parameters via imc(4) or pic(4).

Slots are identified by name: GIO_SLOT_GFX, GIO_SLOT_EXP1, GIO_SLOT_EXP2.

Provide some helper functions for establishing interrupts associated with
each slot and obtaining product descriptions.
2006-08-30 23:48:55 +00:00
rumble
a4d0bfd738 Add pic and imc-specific functions to alter the GIO bus arbiter
configuration. These are to be used exclusively by a higher interface in
gio/gio.c.

Also add functions to enable, disable and query the state of SysAd bus
parity detection since certain gio(4) cards need to be able to disable
it in order to work around their own buggy implementations.
2006-08-30 23:44:52 +00:00
rumble
aa71bc7886 Generalise pci/pci_machdep.c further and move all mace-specific code into
mace/pci_mace.c in preparation for pci devices on the gio(4) bus.
2006-08-30 23:35:10 +00:00
rumble
cc8a477ce5 Add quirks for the Phobos GIO Fast Ethernet boards. 2006-08-30 23:32:07 +00:00
rpaulo
7fc9ea7cd6 postfix 2.3.3 was imported some days ago 2006-08-30 23:31:53 +00:00
rumble
e980865174 Phobos boards (my G130 at least) have a non-standard srom layout. Try to
identify it and pull out the enaddr.
2006-08-30 23:31:08 +00:00
rumble
75e28cc7ed Make this compile again when TLDEBUG is defined. 2006-08-30 23:29:01 +00:00
he
061f5e8762 Add handling of two more pairs of duplicate ioctl values: amiga's
and x68k's PARIOC[SG]PARAM reuse the ioctl values from sbus/mbppio.h's
MBPPIOC[SG]PARAM.

Suggested by Christos.
2006-08-30 23:26:25 +00:00
he
30ef9162ed Regen (for PTRACE). 2006-08-30 23:00:45 +00:00
he
77e02d283d Update for options PTRACE. 2006-08-30 23:00:06 +00:00
matt
4ba15ad876 Conditionalize cpu_coredump on COREDUMP 2006-08-30 22:24:55 +00:00
matt
2107a6af86 Don't include cpu_coredump unless the COREDUMP option is present. 2006-08-30 21:25:22 +00:00
wiz
784e36ce13 postfix-2.3.3 is out. 2006-08-30 20:40:47 +00:00
wiz
29035b224b 1.6 branch is terminated. 2006-08-30 20:40:36 +00:00
plunky
999bb1e465 It seems that EHCI at least will complete a empty transfer with
status == NORMAL_COMPLETION.

Guard against that.
2006-08-30 19:42:37 +00:00
christos
738af19b41 fix initializers. 2006-08-30 19:25:46 +00:00
christos
47be5467d6 Fix initializers 2006-08-30 19:20:48 +00:00
christos
a2b752877c fix incomplete initializer. 2006-08-30 19:16:03 +00:00
christos
e07cc888fc remove empty code. 2006-08-30 19:15:05 +00:00
christos
2a76cd386d off by one element. 2006-08-30 19:12:56 +00:00
christos
6d155711f9 avoid empty if body. 2006-08-30 19:04:52 +00:00
christos
3fad7e8079 complete identifiers. 2006-08-30 19:04:26 +00:00
christos
2434b8bf99 Fix initializers. 2006-08-30 19:00:22 +00:00