Commit Graph

142208 Commits

Author SHA1 Message Date
chs 074111feef use panic() instead of cpu_reboot() for unhandled kernel traps. 2005-12-27 17:28:27 +00:00
chs 599510004a use %z when printing a sizeof. 2005-12-27 17:25:41 +00:00
chs 89a8f7b8c9 change errors returned for various operations on "/" to conform to SUSv3.
as discussed on tech-kern some time back.
2005-12-27 17:24:07 +00:00
perry e67ad767f5 inline -> __inline for selected things (specifically, the header
file is POSIX visible and the usage isn't #ifdef _KERNEL)

Discussed with core. I may need to go farther than this but for now
compilations done with gcc -ansi (i.e. firefox) will be okay.
2005-12-27 17:21:28 +00:00
chs 6cb72218d4 switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.
2005-12-27 17:20:54 +00:00
jmmv d9585f8d92 Improve a comment in the patch I sent (handle DM6 DDO partition) based
on hubertf@'s comments.  Hmm...  I didn't even notice this was already
committed.
2005-12-27 15:45:09 +00:00
jmmv 025f48088b Note the addition of the -s option to mbrlabel(8). 2005-12-27 15:38:51 +00:00
jmmv fbb8b4076f Add an option (-s) to specify which sector to read to parse the partition
table.  Useful if the disk has remapping drivers installed into it (such as
Ontrack Disk Manager).

Added as an option instead of automatic behavior to let the user scan any
of the two partition tables at will.
2005-12-27 15:37:56 +00:00
martti 8e96d77b7b ipf 4.1.10 2005-12-27 15:24:55 +00:00
martti 10f294ab64 Make the list of files more readable (so it's easier to add and remove files). 2005-12-27 15:23:28 +00:00
martti ac29c41761 Removed ip_rules.c and ip_rules.h 2005-12-27 15:19:38 +00:00
hubertf cfc5c5528b Xref newfs_msdos, noted by rabioli on Freenode #NetBSD 2005-12-27 14:49:28 +00:00
he daa2326eba Make this build again after the libc/libkern consolidation by referring
to common/lib/libc/Makefile.inc via ${S}/..

Add use of ashrdi3.c inet_addr.c strncpy.c strlen.c, from common/lib.
2005-12-27 12:38:53 +00:00
he 7675f83375 Make this build again after the libc/libkern consolidation by referring
to common/lib/libc/Makefile.inc via ${S}/../
2005-12-27 12:29:05 +00:00
yamt 87a5de2d3d add rcsid. 2005-12-27 11:29:30 +00:00
tsutsui d5f01723d6 Don't redefine _LOCORE if it's already defined.
Some Makefiles for standalone programs already have it.

XXX Old src/sys/lib/libkern/arch/mips/memcpy.S had some #ifdef MIPS3_5900
XXX which added some extra nops, but this new common bcopy.S doesn't.
2005-12-27 11:23:53 +00:00
yamt 1c535f7467 sacom_attach_subr: don't try to initialize a lock which doesn't exist. 2005-12-27 11:10:06 +00:00
yamt a30f264f2a don't rename bswap{16,32} if defined(_KERNEL) || defined(_STANDALONE).
(they are hidden by gcc-optimized versions, though.)
2005-12-27 09:38:11 +00:00
yamt 987ddf0a22 make alpha kernel buildable again.
don't add __ prefix to bswap{16,32}
if defined(_KERNEL) || defined(_STANDALONE).
2005-12-27 09:22:08 +00:00
yamt 43308ea339 fix build of bzero.
XXX is it better to remove it as i386?
2005-12-27 08:49:35 +00:00
yamt 1722e429b8 lack of COMMON_ARCHDIR is not fatal. 2005-12-27 08:43:05 +00:00
yamt bdaa56955a print a meaningful error rather than "Need an operator". 2005-12-27 07:31:45 +00:00
yamt 7ee50ca690 cpu_exec_aout_makecmds: make this compilable after ktrace-lwp merge. 2005-12-27 07:25:57 +00:00
chs 0545b6e0cb changes for making DIAGNOSTIC not change the kernel ABI:
- for structure fields that are conditionally present,
   make those fields always present.
 - for functions which are conditionally inline, make them never inline.
 - remove some other functions which are conditionally defined but
   don't actually do anything anymore.
 - make a lock-debugging function conditional on only LOCKDEBUG.

as discussed on tech-kern some time back.
2005-12-27 04:06:45 +00:00
ross 0d8bcff6f5 Fix typo inside PPC_OEA64 2005-12-27 02:19:27 +00:00
chs 33d70de438 remove the COM_MPLOCK option. always include the spinlock in the softc
and always call the simple_* locking functions.  the locking functions
are compiled out if they are not needed anyway, so a separate option
for this doesn't gain anything.

this also fixes the serial console on my alpha ES40 (which doesn't make much
sense since the com driver should still be under the big lock on alpha,
but whatever).
2005-12-27 00:46:38 +00:00
cube 16b23e6e66 More ktrace-lwp merge fallout: netbsd_elf32_signature's prototype has
changed.  Too bad C doesn't have signatures in symbols.

Fixes PR#32388 by Nicolas Joly.
2005-12-27 00:36:00 +00:00
chs 688c44a9a0 hold kernel_lock while calling printf() in scdebug_*. 2005-12-27 00:28:08 +00:00
chs 36bb975558 hold kernel_lock while calling systrace_exit().
fixes PR 25856.
2005-12-27 00:27:34 +00:00
chs 0c8753dfd8 in systrace_make_msg(), sleep uninterruptibly while waiting for
the response from the systrace daemon, so that the message protocol
between the kernel and the daemon doesn't get out of sync.
fixes PR 29654.
2005-12-27 00:26:58 +00:00
yamt 3e450009f4 socreate: fix a null dereference on nfs reconnect, introduced by ktrace-lwp. 2005-12-27 00:00:29 +00:00
perry 7f9541e925 u_intN_t -> uintN_t
Someone really should update this whole document to reflect current
reality. It is valuable but very, very old.
2005-12-26 20:04:46 +00:00
perry e1834435d5 note the intN_t, uintN_t types.
XXX this document is rather musty. It needs a general update.
2005-12-26 20:00:04 +00:00
perry fd18408b9a u_intN_t -> uintN_t 2005-12-26 19:40:14 +00:00
perry 68da44823c u_intN_t -> uintN_t 2005-12-26 19:23:59 +00:00
elad 0ba17c4726 /dev/i4b -> /dev/isdn. From ulfdoz. 2005-12-26 19:11:17 +00:00
perry 5f65228b74 u_intN_t -> uintN_t 2005-12-26 19:01:47 +00:00
perry 144515ce1a u_intN_t -> uintN_t 2005-12-26 18:41:36 +00:00
christos ddeaed4040 don't hard-code 63. 2005-12-26 16:11:04 +00:00
christos 4ead7c35d9 Julio M. Merino Vidal: Patch to recognize and automatically skip the Ontrack
Disk Manager drivers.
2005-12-26 16:08:34 +00:00
rpaulo 7eace3f40d Kill BPF_KERN_FILTER. Seems like it died with the new pppd import.
No replies from tech-kern@, but who introduced this option 8 years ago
(Christos) said it's ok to remove it.
2005-12-26 15:45:48 +00:00
jmmv e7ab8d7413 Installing the primary bootstrap requires two arguments, so ensure they are
present.  Otherwise, an assertion is triggered (and core is dumped) in the
MD setboot code (just try 'installboot /dev/fd0a' on, e.g., i386).
2005-12-26 13:30:25 +00:00
xtraeme a8e8170d02 Sync bufq API with the new source code. ok'ed by yamt. 2005-12-26 12:18:11 +00:00
yamt 9e52a8c06f dkctl(8), bufq(9): Add a functionality to switch bufq strategy on the fly. 2005-12-26 10:44:47 +00:00
yamt 6171bf3a5b add a functionality to get/switch bufq strategy.
based on a patch from Juan RP.
2005-12-26 10:38:52 +00:00
yamt 9297401d54 - add ioctls to set/get disk bufq strategy.
- implement them for some drivers.
2005-12-26 10:36:47 +00:00
yamt f9b53cfa6f bufq_alloc: return correct errors rather than 0. 2005-12-26 10:00:34 +00:00
rpaulo 9c7380b5d3 Moved to interface/interface.c 2005-12-25 22:24:57 +00:00
rpaulo 31e9b918de Change ioctls.c to interface/interface.c to accomodate further
addition of regressions tests.
2005-12-25 22:07:01 +00:00
rpaulo 333596ccdb PR/32386: Dawid Szymanski (arhea). Add support for the 8169SB chipset. 2005-12-25 19:55:40 +00:00