Commit Graph

71140 Commits

Author SHA1 Message Date
he b6e471013e Expand the ramdisk image size from 3m to 3148k so that the contents
fits again.
2004-05-14 17:00:21 +00:00
christos 6d5a568271 don't accept a negative number of swap devices; it will attempt to malloc
something very large and might crash the kernel; From Evgeny Demidov
2004-05-14 16:56:09 +00:00
christos d3f7c2a23c Check for bad offsets at the beginning of the functions to save processing.
Idea from OpenBSD.
2004-05-14 16:36:33 +00:00
christos 999e9cef64 Simplify the code by:
1. Checking for a negative uio_offset at the beginning. This really does
   not affect us in most cases because we check that later too.
2. Checking for attempts to write to init sooner and in all cases.
2004-05-14 16:35:24 +00:00
cl c489489b14 - increase number of receive buffers
- handle case where last receive buffer is used
2004-05-14 14:23:35 +00:00
cl 4dd8e2b2cf use relative links: using $S fails if $S is relative to another dir
than the one where it's used
2004-05-14 14:07:46 +00:00
pk 454a5a1188 Fix locking issues noticed by Tom Ivar Helbekkmo on tech-net:
* always acquire the device instance lock at splnet()
	* missing unlocks in various places

Also, since this driver allows its device instances manipulated by two
independent subsystems (character device & interface clone create/destroy),
be careful not to rip away instance data in a clone destroy request if the
instance is still opened as a character device.
2004-05-14 13:23:12 +00:00
he bf3ab88a22 Use lower optimization level (-O0) for miscfs/genfs/genfs_vnops.c
in order to avoid an internal compiler error with gcc 3.3.3 nb2.
2004-05-14 08:58:32 +00:00
yamt 66b2ec5ff7 fix a compile error in the case DDB && !GPROF.
the problem pointed by Jaka Jejcic on current-users@ and
by several others privately.
2004-05-13 20:30:39 +00:00
he d05f876265 Avoid lint failure in setjmp.h; lint doesn't handle __attribute__
modified declarations.
2004-05-13 19:54:25 +00:00
kleink 71b3883248 KNF previous. 2004-05-13 17:56:14 +00:00
christos 6033f15f86 Disable chgsbsize. It is not MPSAFE 2004-05-13 17:43:11 +00:00
christos a0d397a023 return an error on invalid mode. 2004-05-13 17:34:48 +00:00
pooka 40559f7fcc 10+ entries in the kernel sources can't be wrong ... no, wait, they can:
it really is "panicking" instead of "panicing", so revert rev 1.211

thanks to Klaus for holding the spelling bee
2004-05-13 16:34:22 +00:00
cl 719c5983ec Workaround for gcc 2.95.3 failing to initialize structures
and/or unions inside structures using nested designators.
Should be reverted when gcc >=3.3.3 is ready for vax.
2004-05-13 15:44:04 +00:00
pooka e2323790a2 typo in comment: panicking -> panicing 2004-05-13 15:20:18 +00:00
pooka 71085f7d18 Add el-cheapo finnish encoding, i.e. make the name "fi" point to
the swedish keymap, which actually gets set.

inspired by wiz
keymap name blessed by Klaus
2004-05-13 15:00:27 +00:00
yamt d94ff45112 call mcount in Xspllower. 2004-05-13 12:27:38 +00:00
yamt ed15986b95 pmap_load: assert that being able to take ipis. 2004-05-13 12:24:05 +00:00
yamt a87499d4ea witch_return: call Xspllower only when there're pending interrupts. 2004-05-13 12:15:01 +00:00
yamt 6b9fd4bdc5 npxsave_lwp: issue pause in a busy loop. 2004-05-13 12:13:20 +00:00
tron edadbda9d6 Initialize interface type to IFT_TUNNEL as suggested by Erik Änggård
in PR kern/25555.
2004-05-13 11:31:09 +00:00
tron 7d553415ce Mark gre(4) interfaces as IFT_TUNNEL (Encapsulation interface). 2004-05-13 11:29:40 +00:00
pk cf098aff50 No need to pull in <bsd_openprom.h> explicitly. 2004-05-13 09:36:44 +00:00
cube a1ec763832 It's not safe to save the sysctlnode pointer returned by sysctl_createv.
It should only be used by the calling function to create further nodes
in the same function, and of course to save the MIB number, which is what
is done now.
Correct a stupid bug in the ethernet address parsing code. <ashamed face>
2004-05-13 07:20:47 +00:00
matt 617ba1df60 In proc_representative_lwp, if there is an outstanding trap signal, return
the lwp that had the trap.
2004-05-12 21:10:09 +00:00
wiz 901973874a Fix typo in comment; from Robert Nagy via OpenBSD. 2004-05-12 20:43:17 +00:00
wiz a8c55b7623 Add one more unofficial leadtek PCI vendor id; from Robert Nagy
via OpenBSD.
2004-05-12 20:42:10 +00:00
yamt 054ed3afcb use callout_schedule() for schedcpu(). 2004-05-12 20:13:58 +00:00
yamt 8d2f96d0fc g/c unused NFS_*ALLOC defines. 2004-05-12 20:11:27 +00:00
yamt 5469c2b7c1 add assertions. 2004-05-12 20:09:50 +00:00
yamt 3b6ad814b2 x86_ipi: call x86_pause() in busy loops. 2004-05-12 20:05:24 +00:00
yamt d55112e112 add a comment to note that INTRFASTEXIT and trap() should be in sync. 2004-05-12 20:03:06 +00:00
cl 885c0b6fc9 ``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386.  The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets
2004-05-12 16:56:41 +00:00
pk d5cc51b7d3 Remove obsolete `timerok' code, which dates back to when the timer/counter
interrupt handlers were pre-wired.
2004-05-12 15:44:28 +00:00
hannken cdfa741c5c Make compat_16_sys___sigreturn14() work again.
The 4XX family has no PSL_RI bit in MSR.
The 403 (explora) runs with machine check enabled.
2004-05-12 14:38:17 +00:00
minoura 72c4550293 Populate kbdmap-related definitions to the userland.
Also g/c unused ioctls.
Pointed out by he.
2004-05-12 14:25:08 +00:00
cube aea96fa075 Add a sample utilization of Andrew Brown's sysctl framework. See comments
in the code for more details.
Give copyright to TNF.
2004-05-12 13:51:16 +00:00
cube 8a0e3b4be1 In sysctl_destroyv, the newly created dnode structure must have its
version set to the correct value to prevent later failure of
sysctl_cvt_in.
2004-05-12 12:21:39 +00:00
yamt 5dac5f5d40 add a comment on mp_attrs. 2004-05-12 09:11:03 +00:00
tron 6a835c2b56 Regen for PR kern/25166. 2004-05-12 07:07:53 +00:00
tron 71c703ffaa Add support for Broadcom BCM5788 GbE. Patches supplied by FUKAUMI Naoki
in PR kern/25166.
2004-05-12 07:07:34 +00:00
jrf 5f626331c1 caddr_t -> void * and removal of some more casts. 2004-05-12 02:07:37 +00:00
wiz 6e05316faa Remove UCB ad clause in Hugh Graham's license.
Ok'd by Hugh Graham and board.
2004-05-12 00:45:04 +00:00
wiz 0ef650eff0 Remove UCB ad clause from maximum entropy's license.
Ok'd by maximum entropy and board.
2004-05-12 00:38:11 +00:00
wiz b83c30c098 Remove UCB ad clause from tsubai's license.
Ok'd by tsubai and board.
2004-05-12 00:34:25 +00:00
thorpej 4a923452bb Handle the i6300ESB IDE / SATA controllers. These are apparently just ICH5. 2004-05-11 23:15:37 +00:00
thorpej 0af0ae5e3a Regen: Add i6300ESB IDE / SATA controller PCI IDs. 2004-05-11 23:14:40 +00:00
thorpej e4aad9e9a3 Add i6300ESB IDE / SATA controller PCI IDs. 2004-05-11 23:14:17 +00:00
wiz 8785cb8fb1 Add commented out entries for ioat* and nsclpcsio*;
from Sergey Svishchev in private mail.
2004-05-11 23:07:35 +00:00