Commit Graph

150023 Commits

Author SHA1 Message Date
martin 2675789424 Add a caveats section describing potential problems with autoconfigured
swap partitons.
2006-08-27 22:00:33 +00:00
matt 41f51182cf Add -msym32 to CFLAGS when MACHINE_ARCH is mips64e[bl].
Since kernels are always run out of KSEG0 (0xffffffff.8xxxxxxx), we can
take advantage of that if we load a 32 bit address (0x8xxxxxxx) that it
will be sign-extended to 64 bits (0xffffffff.8xxxxxxx).

So instead of 6 instructions (2 lui, 2 daddiu, dsll32, daddu) to load an
address, the normal number of 2 instructions (lui, daddiu) will be used.

Thus telling gcc/gas that symbols will always be 32 bits significantly
shrinks (by 10%) and speeds up a MIPS64 kernel.
2006-08-27 21:44:15 +00:00
christos 4de29ae80e Include <sys/device.h> needed by iopio.h 2006-08-27 21:41:18 +00:00
christos d5ca3efd41 undo previous. Andy says the struct is used in pkgsrc. 2006-08-27 21:39:39 +00:00
martin 0a4f0b6f07 As discussed on tech-userlevel: enhance the -A/-U commands to take a -t
auto flag, which queries all local harddisks for swap partitions/
wedges and adds/removes them as swap device, a -f option to use the
first found swap device as dump device, and a -o option to only
auto-configure the dump device, but leave swap alone.

Add a -n option to make swapctl only say what it would do, but not
change any system state.
2006-08-27 21:07:39 +00:00
christos 1b3d66a467 Sprinkle _KERNEL. 2006-08-27 20:32:44 +00:00
christos 5699156510 pick up ioctls from other devices too. 2006-08-27 20:31:26 +00:00
christos 9db6f7d836 #ifdef out unused ioctl (and wrong) 2006-08-27 20:26:34 +00:00
christos 9c90e26bcf Fix typo 2006-08-27 20:11:31 +00:00
christos 52975efd5a Grr. Don't define _KERNEL! Most of the kernel files do #ifdef _KERNEL 2006-08-27 19:19:47 +00:00
christos 06869f0ad3 don't call variables errno! including from userland breaks things! 2006-08-27 19:18:08 +00:00
matt a798aa78f2 Define _MIPS_BSD_API correctly according to GCC builting __mips_n64,
__mips_n32, and __mips_o64.
2006-08-27 19:04:30 +00:00
matt b699479d37 The prohibition about 64bit ABIs only applies to pre-gcc3 so move it there. 2006-08-27 19:02:38 +00:00
christos 41cacf46ed Make the "traditional" comment match reality. 2006-08-27 18:49:08 +00:00
christos b34c6cdc81 PR/34293: Michael van Elst: vnd deadlocks on I/O buffers
Also fixes: PR/10731, PR/12189, PR/20296
Sleep while there a buffer shortage.
2006-08-27 18:45:20 +00:00
matt efae537b4c Sign extend DEFTEXTADDR on MIPS64. 2006-08-27 18:40:33 +00:00
christos a1ed611584 Don't hard-code 3. From our secret user. 2006-08-27 18:27:49 +00:00
xtraeme f61564f6ba Initialize a variable to 0 to appease gcc4 with -O3. 2006-08-27 17:05:39 +00:00
cube e7b8b95beb Require a config(1) supporting syntax version 20060604 now that we use
the "obsolete" statement.
2006-08-27 15:44:16 +00:00
elad b0f11d59b9 TLDR 2006-08-27 15:00:12 +00:00
tsutsui 023d5b98c6 - add "zsc1 at sbdio?" so that ewskbd and ewsms are attached properly (oops)
- fix typo in a commented out entry
2006-08-27 14:09:40 +00:00
bjh21 f379f539d2 Use symbolic names for CSR values after reset. 2006-08-27 13:13:36 +00:00
plunky c980b109dd BluetootH SCO Audio update.
Provide an ioctl to set the SCO mtu value in the controller and
place limits in the SCO code such that only packets of this size
may be sent.

Move the mtu option from btsco(4) and btdevctl(8), to the
btconfig(8) program.

Remove temporary BLUETOOTH_SCO kernel option, and enable SCO
socket access.

Fix incoming connection handling for btsco(4) and SCO sockets.

Fix documentation to reflect the new world order.
2006-08-27 11:41:58 +00:00
bjh21 5616d106f8 acorn26 hasn't had sbic since before it became acorn26. 2006-08-27 10:14:20 +00:00
xtraeme ca450bca52 Update powernow module with POWERNOW_K7 and POWERNOW_K8 support.
Works fine on amd64 cpus running in 32-bit mode.

Tested by Joel Carnat.
2006-08-27 10:10:55 +00:00
bjh21 690289e97b Remove obsolete "sbic" define. 2006-08-27 10:05:23 +00:00
sekiya 5286a772e3 Zap reference to XNS. 2006-08-27 09:48:26 +00:00
christos e0811114bb add a const 2006-08-27 09:20:53 +00:00
tsutsui 8cf78c8c6c Use uint32_t rather than int for spifi registers. 2006-08-27 08:56:03 +00:00
christos 044037dd26 - Added string was never added
- have t_goto put an error in the result.
2006-08-27 08:47:40 +00:00
tsutsui 90b96f181b Make sc_dmamap volatile for aggressive gcc4.
Also use uint32_t rather than int since it's unsigned.
2006-08-27 08:43:05 +00:00
skrll 29c50502a7 Pull across OpenBSD cpufunc.h:1.27 (ignore the typo)
revision 1.27
date: 2005/04/07 00:19:28;  author: mickey;  state: Exp;  lines: +3 -3
put a memmory barrier onto the sync_caches()
2006-08-27 08:42:50 +00:00
christos bd5f306da4 Show the error instead of just OOPS.
Don't return E2BIG for digit problems.
2006-08-27 08:28:38 +00:00
christos 52c2319234 Regen 2006-08-27 08:16:44 +00:00
christos 8270ea8a29 PR/34289: Stéphane Witzmann: Add some missing PCI devices in pcidevs 2006-08-27 08:16:16 +00:00
simonb 676a630d08 Simplify multiple MACHINE_ARCH endian checks with single MACHINE_CPU
checks.
2006-08-27 07:22:02 +00:00
dsl 7fd4677bc0 fix xtos's pasto 2006-08-27 07:09:04 +00:00
simonb a6a46a588a Allow for building a crosstools version of gprof.
Disabled by default, can be enabled with MKCROSSGPROF=yes.
2006-08-27 07:04:00 +00:00
simonb b4120542a5 Remove some unnecessary casts. 2006-08-27 06:58:55 +00:00
simonb d4fec3837e Add -Wa,-fatal-warnings to AFLAGS. We want assembler warnings to be
fatal as well as compiler warnings.
Vague nods of agreement from Christos and Gimpy.
2006-08-27 06:49:27 +00:00
sekiya 221525774f XNS is no more; nuke reference to af_ns.c 2006-08-27 06:40:43 +00:00
tsutsui 35038ef574 Replace DELAY(9) macro with inline version which uses an asm statement
otherwise gcc4 will omit it completely on optimization.

XXX: some other mips ports have the same problem.
2006-08-27 06:33:28 +00:00
tsutsui 9a269899a0 Avoid unneeded sign extension. 2006-08-27 06:04:12 +00:00
christos 47966b67d0 This is why we should not copy buggy code... You get to fix bugs multiple
times: Wedges don't have partitions, so don't use MAKEDISKDEV
2006-08-27 05:37:40 +00:00
tsutsui d26ffc68c4 Make badaddr_flag volatile to avoid unintended optimization by gcc4.
Now GENERIC compiled by gcc4 works on NWS-3470D.

XXX: Is this gcc4 optimization bug, or volitile is required in this case?
2006-08-27 05:25:47 +00:00
christos ecdff16f80 - use dk_lookup instead of our home-spun version.
- allow raid to be configured in a wedge
- allow wedges to be configured in a raid
- add autoconfiguration of wedges in a raid
2006-08-27 05:07:12 +00:00
matt da01e9eb57 When going from -m {evb,sb}mips64-e[bl] to MACHINE,
make sure to remove 64-e[bl] so we wind up with just evbmips or sbmips.
2006-08-27 05:05:05 +00:00
christos b7a6606cb6 Add horrible hack for wedges. Why is the block device of the wedges in use? 2006-08-27 05:00:00 +00:00
christos 1a789da3ec Use dk_lookup. 2006-08-27 04:58:40 +00:00
christos 9472fb0cb6 raid and ccd now use dk_lookup. 2006-08-27 04:58:06 +00:00