simonb
27fbee2ad2
Don't use multi-line strings (keeps gcc331 happy).
2003-10-08 01:35:49 +00:00
simonb
07704f0a5a
Use consistent type qualifiers for CPU1_alive (keeps gcc331 happy).
2003-10-08 01:33:54 +00:00
simonb
605b20c064
Use <lib/libkern/libkern.h> for str*() prototypes instead of the userland
...
header <string.h>.
2003-10-08 01:30:40 +00:00
simonb
b00f4b8b66
Remove tokens at the end of #undef.
2003-10-08 01:27:22 +00:00
thorpej
9ed3b44b84
Use ksi_signo and ksi_code accessor macros.
2003-10-08 00:40:54 +00:00
thorpej
8321b2554f
Use ksi_signo accessor macro.
2003-10-08 00:39:57 +00:00
thorpej
68723a995b
* Shuffle some data structures so, and add a flags word to ksiginfo_t.
...
Right now the only flag is used to indicate if a ksiginfo_t is a
result of a trap. Add a predicate macro to test for this flag.
* Add initialization macros for ksiginfo_t's.
* Add accssor macro for ksi_trap. Expands to 0 if the ksiginfo_t was
not the result of a trap. This matches the sigcontext trapcode semantics.
* In kpsendsig(), use KSI_TRAP_P() to select the lwp that gets the signal.
Inspired by Matthias Drochner's fix to kpsendsig(), but correctly handles
the case of non-trap-generated signals that have a > 0 si_code.
This patch fixes a signal delivery problem with threaded programs noted by
Matthias Drochner on tech-kern.
As discussed on tech-kern. Reviewed and OK's by Christos.
2003-10-08 00:28:40 +00:00
fvdl
a7a118bf66
Backout previous for now, it breaks second CPU spinup. It'll be back later.
2003-10-07 21:47:57 +00:00
mycroft
f2fc15d4b5
There is also no reason to use arc4random() here.
2003-10-07 21:24:56 +00:00
mycroft
bef90cbfa4
There is NO reason to use arc4random() here, and it needlessly slows down the
...
forwarding path, so goodbye.
2003-10-07 21:22:11 +00:00
fvdl
f4f3bc1663
OR in ahc->sc_dmaflags when passed to bus_dmamap_create() in ahc_alloc_scbs(),
...
in order to pass _ISADMA_32BIT if needed. Should fix SCB allocation
failure for 2842 VL cards.
2003-10-07 19:11:13 +00:00
martin
9e16642238
Adapt to recent PRI changes.
2003-10-07 19:02:36 +00:00
fvdl
9771ccbb32
Changes from Christos to fall back to MPBIOS for interrupt probing
...
if MPACPI fails, so that MPACPI can be used to only probe CPUs
if needed.
2003-10-07 18:10:36 +00:00
skd
8d474d5a86
Siginfo changes for alpha kernel. Approved by thorpej@netbsd.org.
2003-10-07 17:04:18 +00:00
tsutsui
608b19ae28
Use proper mips_dcache_{wb,inv,wbinv}_range() ops in dmamap sync function
...
if possible. Tested on my O2 (with r5ksc patch).
XXX should we apply similar changes to mips/bus_dma.c and use it?
2003-10-07 16:03:09 +00:00
tsutsui
fd316d7ac1
Use proper macros.
2003-10-07 14:37:06 +00:00
skd
6347eb786e
Support for proper siginfo FP codes. Also, set si_trap to fp status word.
...
Approved by fvdl.
2003-10-07 14:35:37 +00:00
ragge
4728b0483f
The last commit broke the boot code (memset may be larger than 64k).
...
Johnny Billquist fixed it and bugfixed some routines.
2003-10-07 12:01:27 +00:00
tron
ebbe253d6d
Add COMPAT_16.
2003-10-07 09:43:58 +00:00
dyoung
c3139592cc
Initial import of ath(4) from FreeBSD.
2003-10-07 05:27:17 +00:00
uwe
576576bafb
Add definitions for IRR0 bits.
2003-10-07 01:24:32 +00:00
thorpej
bcf389773b
Whitespace nits.
2003-10-07 00:23:17 +00:00
thorpej
8655c7d7eb
Add a MAP_WIRED flag to mmap(2), which causes the new mapping to be
...
wired as if by mlock(2).
2003-10-07 00:17:09 +00:00
fvdl
b894e42a80
SIGINFO support.
...
Todo: 32bit compat support (COMPAT_NETBSD32 will not compile right now,
as it won't on other platforms).
2003-10-06 22:53:47 +00:00
tls
9355900ec9
Reversion of "netkey merge", part 2 (replacement of removed files in the
...
repository by christos was part 1). netipsec should now be back as it
was on 2003-09-11, with some very minor changes:
1) Some residual platform-dependent code was moved from ipsec.h to
ipsec_osdep.h; without this, IPSEC_ASSERT() was multiply defined. ipsec.h
now includes ipsec_osdep.h
2) itojun's renaming of netipsec/files.ipsec to netipsec/files.netipsec has
been left in place (it's arguable which name is less confusing but the
rename is pretty harmless).
3) Some #endif TOKEN has been replaced by #endif /* TOKEN */; #endif TOKEN
is invalid and GCC 3 won't compile it.
An i386 kernel with "options FAST_IPSEC" and "options OPENCRYPTO" now
gets through "make depend" but fails to build with errors in ip_input.c.
But it's better than it was (thank heaven for small favors).
2003-10-06 22:05:15 +00:00
bouyer
3e1a342dd1
Revert to polling for ata_get_params() in wdc_channel_attach().
...
When probing a nonexistent slave, we may timeout waiting for an interrupt.
In __wdccommand_start(), for polled data in commands, abort quickly if
status still read 0 after 400ns (for a nonexistant slave, the
command will either be aborted, or the status register will report 0; for
a real device we should have BSY, DRQ or ERR).
Thanks to Alexander Yurchenko for reporting the problem and testing the
fix.
2003-10-06 21:51:31 +00:00
shige
244b994892
Use xrtc driver on generic I2C framework instead of original xrtc
...
driver at src/sys/arch/evbppc/obs405/dev/x1226.c.
Remove todclock service.
2003-10-06 18:20:54 +00:00
scw
4eea84b735
Gah. Pick up the MI i2c headers from the right place.
...
Pointed out by Shigeyuki Fukushima on port-powerpc@.
2003-10-06 18:19:24 +00:00
shige
0af4acb526
Add Real time clock support code.
2003-10-06 18:15:08 +00:00
shige
cd5706bccd
Add xrtc device for XICOR X1226 RTC.
2003-10-06 18:02:54 +00:00
shige
a6e367af69
Add XICOR X1226 RTC driver.
2003-10-06 18:02:02 +00:00
jdolecek
87f9bd7267
change accidentaly left debug printf to dprintf()
2003-10-06 16:47:10 +00:00
scw
2ba7642346
MD i2c glue for the 405GP's onboard IIC controller.
...
Bit-bang only for now.
2003-10-06 16:15:46 +00:00
thorpej
2c0d381bd7
New generic I2C framework. Supports bit-bang and "intelligent" I2C
...
interface controllers (of varying intelligence levels).
Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford,
with some modification by me.
(NOTE: "cvs ci" was missed on this directory during the initial checkin
of the new I2C code.)
2003-10-06 16:11:19 +00:00
thorpej
2af80d899e
New generic I2C framework. Supports bit-bang and "intelligent" I2C
...
interface controllers (of varying intelligence levels).
Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford,
with some modification by me.
(NOTE: "cvs add" was missed on this file during the initial checkin
of the new I2C code.)
2003-10-06 16:08:42 +00:00
thorpej
d322684f55
Add support for the i80312 and i80321 I2C controllers.
2003-10-06 16:06:05 +00:00
scw
bd61b1e9b3
Rename dsrtc to avoid clashing with the MI i2c ds1307 driver.
2003-10-06 16:04:15 +00:00
thorpej
df011fda1d
Make sure to pass mod/ref seeds with PMAP_WIRED.
2003-10-06 15:43:35 +00:00
he
c50a79523e
Include <string.h> for memset and memcmp prototypes.
2003-10-06 08:44:39 +00:00
pk
3de506eaf1
No need for SVR4/SunOS5 FPE_* codes as these are compatible with ours.
2003-10-06 07:10:41 +00:00
he
557593445b
Include libkern.h to get definitions for strcpy, strlen, and memset.
2003-10-06 06:41:45 +00:00
matt
0c7bac0672
Change headers to comply with the new toolchain changes.
2003-10-06 05:27:19 +00:00
lukem
420f3b76ba
Replace BP_* with I386_BP_FLAGS_*, for consistency with other stuff in
...
<sys/bootblock.h>
(CONSDEV_ should be converted as well, but that's more intrusive...)
2003-10-06 05:24:54 +00:00
matt
6aa94d2054
Don't use ';' as the separator. Use '\n' instead.
2003-10-06 04:55:37 +00:00
christos
07ceba4419
Catch up with chuck's stack changes. Don't map the linux stuff executable
...
and avoid mapping segments that have 0 size.
2003-10-06 03:45:40 +00:00
simonb
ba957518fe
Whitespace nits.
2003-10-06 02:53:33 +00:00
lukem
1ab040b9ee
Consistently use "bsBPB" as the struct member for the BIOS parameter block.
2003-10-06 02:21:47 +00:00
thorpej
388386eef7
Make sure to pass mod/ref seeds with PMAP_WIRED.
2003-10-06 00:40:36 +00:00
he
a665876c87
Remove argument list from #undef of divrnd macro; fall-out from gcc3?
2003-10-06 00:04:55 +00:00
mycroft
a0ca611f94
Minor tweaks to the color framebuffer code -- still don't know what the deal
...
with the interrupt is.
2003-10-05 22:00:25 +00:00
pk
a9b14e04b8
sparc kernel support for SA_SIGINFO.
2003-10-05 21:13:23 +00:00
matt
73ca535921
Add SA_SIGINFO support for ARM (from Chris Gilbert).
2003-10-05 19:44:58 +00:00
bouyer
7b066791c8
Remove references to University of California from my copyright notices.
2003-10-05 17:48:49 +00:00
tsutsui
61b40c3946
Update comment to follow the previous R4000 ID addtion.
2003-10-05 17:31:09 +00:00
tsutsui
779268c4cf
Define ELF2ECOFF here for native build.
...
(BTW, objcopy with OMAGIC kernel won't work on old pmax and sgimips machines?)
2003-10-05 16:53:15 +00:00
tsutsui
d1a36ee086
Include opt_mips_cache.h for options MIPS3_L2CACHE_ABSENT and
...
MIPS3_NO_PV_UNCACHED.
2003-10-05 16:38:03 +00:00
tsutsui
800933ed42
No need to include opt_mips_cache.h here.
2003-10-05 16:34:51 +00:00
tsutsui
086016d756
Add pcn at pci, tl at pci and tlphy, which I've confirmed working on O2.
2003-10-05 15:44:36 +00:00
tsutsui
b0cd3c8093
Apply a bunch of patches written by Christopher SEKIYA
...
(with several cosmetic changes by me) which fixes O2 (IP32) support.
Now my R5000 O2 works fine in multiuser with on-board AIC7880 SCSIs
and several PCI network cards (but only on serial console yet).
L2 cache on R5000/Rm5200 is still disabled for now, but it will be
fixed later, hopefully.
See recent discussion on port-sgimips for details.
2003-10-05 15:38:08 +00:00
tsutsui
9869f97b24
Increase number of transmit/receive buffers from 10 to 32 to avoid
...
RX buffer overrun.
2003-10-05 14:57:14 +00:00
tsutsui
d008eb86c9
Pass proper dma mapsize of TX/RX mbufs to bus_dmamap_sync().
...
Now tl(4) works on sgimips.
2003-10-05 14:50:09 +00:00
tsutsui
cf2571bd30
Oops, more white space nit.
2003-10-05 14:44:55 +00:00
tsutsui
e7b57317b8
TAB/space nits.
2003-10-05 14:42:45 +00:00
tron
0fba6709ad
Add entry for bce(4).
2003-10-05 11:42:38 +00:00
scw
5efdd1f9f3
Tweak the previous change to ensure symbol addresses are correctly
...
sign-extended on cpus with 64-bit registers.
2003-10-05 11:17:47 +00:00
tsutsui
14658b124b
Add R10000 cache ops, written by KIYOHARA Takashi and posted on port-sgimips.
...
Enabled by options ENABLE_MIPS4_CACHE_R10K for now.
2003-10-05 11:10:25 +00:00
scw
486ed93284
Kernel bits for siginfo on sh5.
2003-10-05 09:57:47 +00:00
jdolecek
c8694a1a8a
include sh5 majors in majors.evbsh5 rather than files.evbsh5, so that
...
it would be more obvious where all the majors are defined
2003-10-05 09:00:19 +00:00
jdolecek
e6286b949a
Add some framework for MI assignment of device majors - add sys/dev/majors
...
which is automatically included during kernel config, and add comments
to individual machine-dependant majors.* files to assign new MI majors
in MI file.
Range 0-191 is reserved for machine-specific assignments, range
192+ are MI assignments.
Follows recent discussion on tech-kern@
2003-10-05 08:04:24 +00:00
bsh
fba8e3e432
add -DCPU_S3C{2800,2410} for board/sscom.c
2003-10-05 06:58:26 +00:00
bsh
55f95bf493
move back get_com_freq() to sscom.c with #ifdef CPU_{S3C2800,S3C2410}
2003-10-05 06:57:20 +00:00
nsmrtks
991956a30c
print PC in stray interrupt
2003-10-05 02:00:16 +00:00
dyoung
865b1e786b
For memory-mapped access, get the endianness right on big-endian
...
hosts. This makes awi work marginally better (although it's still
broken) on my Powerbook.
2003-10-04 22:04:36 +00:00
augustss
1c24ba42ab
Several changes:
...
* Implement read for ulpt.
* If the device is not opened for reading, occasionally drain any
data the printer might have (but don't hammer the printer with reads).
* Lower the buffer size to one page.
The driver seems to work with more printers now.
2003-10-04 21:19:50 +00:00
imp
6be55c3077
The Mobile Pro 780 is the same as the MobileGear II MC/R530. In fact,
...
its platform code is R530A. As such, the external video patches for
the R530 work for the '780. This gives a 640x480 video out (but only
the middle 240 pixels are used, to match the lcd resolution) on the
console and in X11.
2003-10-04 18:05:09 +00:00
tsutsui
b8ecd4c7a4
Regen from tcdevs rev 1.18:
...
>- Move PMAGB-BA and PMAG-JA (which I have) out of "may be incorrect" entries.
>- Put driver name "tfb" for PMAG-JA (which will appear in future pmax-wscons).
2003-10-04 16:17:16 +00:00
tsutsui
6865a39a35
- Move PMAGB-BA and PMAG-JA (which I have) out of "may be incorrect" entries.
...
- Put driver name "tfb" for PMAG-JA (which will appear in future pmax-wscons).
2003-10-04 16:15:00 +00:00
chris
7aff502aa8
Add Experimental ELF support for cats. Only to be used if you feel daring
...
enough to run the ABLE firmware.
2003-10-04 15:43:05 +00:00
chris
1961c764a1
Fix booting from ABLE on cats. Two problems fixed here:
...
1. ABLE sets the l1pt to use domain 3 for it's entries (no idea why) so to
cover all bases when setting the domain before the change to the new L1pt
become a client of all domains.
2. It seems that we setup the kernel entries without any access permission.
(note not sure that this isn't a bug) And rely on the control bits
containing either ROM or SYST enable. which allows access to pages without
access permissions set. We actually enable SYST when we do the full detect
of the CPU, but we don't detect the CPU till after the L1pt switch, which
we never make it past. Fix this by explicitly enabling the SYST bit in the
control register. rather than relying on the firmware to have dont the right
thing.
2003-10-04 14:28:28 +00:00
tsutsui
d788e7c9ec
- some KNF
...
- hz -> Hz in printf
2003-10-04 09:41:27 +00:00
tsutsui
d330e7b609
TAB/space cleanup.
2003-10-04 09:19:23 +00:00
wiz
a480a4c63b
Note mdoc file that needs updating when releases are made.
2003-10-04 07:45:38 +00:00
jdolecek
4f4072f5fd
update comment regarding conf/osrelease.sh - it's not necessary to change
...
it on kernel version bump anymore
2003-10-04 07:04:17 +00:00
jdolecek
4e1d4165e5
get the release version from <sys/param.h>, so that it won't be necessary
...
to change two places on version bump
2003-10-04 06:59:56 +00:00
junyoung
d1486d51cb
Rearrange instructions for better use of pipeline. This shaves off 0.5%
...
of time on interrupt/trap entry on my Athlon 1800.
2003-10-04 05:57:51 +00:00
christos
e59ff2cb68
Don't look for file descriptor matches when a process is exiting. From
...
Andrey Petrov.
2003-10-04 03:45:49 +00:00
itojun
b5b2092bce
no need to clear mbuf flags here; sync w/kame
2003-10-03 22:08:26 +00:00
itojun
d9ff160bd7
when dropping M_PKTHDR, need to free m_tag chain.
2003-10-03 20:57:29 +00:00
itojun
98d5598feb
when dropping M_PKTHDR, need to free m_tag associated with it.
2003-10-03 20:56:11 +00:00
christos
754bffb7e7
Fix problem with signal trampoline version checking that did not take into
...
account that emulations usually use version 0 and provide their own in kernel
trampolines.
2003-10-03 17:51:13 +00:00
pooka
a1dd1bf617
g/c unused var bch from a few places
2003-10-03 16:47:57 +00:00
pooka
2491e652ce
When processing a connect indication, seek out the appropriate
...
l3drv and add that information to the call descriptor. This causes
us to not crash when receiving calls.
2003-10-03 16:46:32 +00:00
pooka
dae7af8b24
Ready the kernel side of i4b for primary rate interface support by
...
removing assumptions that there are only two B channels and by
adding support for a varying number of channels.
Due to this, rename previously used isdn identified "bri" to "isdnif",
which better describes the current situation.
2003-10-03 16:38:44 +00:00
yamt
589e82f2ba
terminate snprintb 'new' format strings correctly.
...
(fixes overrun in mount_*)
2003-10-03 16:34:31 +00:00
yamt
4ce4892712
assertions.
2003-10-03 15:35:54 +00:00
yamt
33feb8e686
reassignbuf() when lfs_writeseg() takes away B_DELWRI.
2003-10-03 15:35:03 +00:00
christos
1f6ab188f9
If the user passes enough space, output the per cpu states instead of
...
aggregating them.
2003-10-03 15:33:42 +00:00
dsl
23069255ce
Make 'minor(dev) == 1' a device that isn't affected by TIOCCONS.
...
For /dev/constty so that you can grab kernel messages when logged in
on the 'console'.
2003-10-03 13:15:52 +00:00
yamt
656ff745cf
when inactivating segments, compare segment numbers correctly.
2003-10-03 13:02:54 +00:00
oki
59c580bc38
Correct debug message, mine is myauth, not hisauth.
2003-10-03 10:29:05 +00:00
itojun
96fda496da
use in6_{embed,recover}scope for scoped address manipulation
2003-10-03 08:46:15 +00:00
petrov
3dd6a14153
ansify.
2003-10-03 07:50:12 +00:00
bsh
81227d1ae1
avoid compile error with GCC3, and add some comments.
2003-10-03 07:24:05 +00:00
itojun
140276fde1
shouldn't check scope match when encapsulating packet into tunnel mode.
...
iij seil team
2003-10-03 04:30:31 +00:00
itojun
d451ef2606
do not deref state.ro if it is NULL
2003-10-02 19:32:41 +00:00
augustss
99ebb5ba5a
Add more printers that report bidir mode, but can't handle it. From Linux.
2003-10-02 19:10:37 +00:00
augustss
301ab7ace1
Regen.
2003-10-02 19:09:53 +00:00
augustss
e45171e5c1
Add more printers (from Linux).
2003-10-02 19:09:28 +00:00
augustss
7838ca0944
Regen.
2003-10-02 18:34:35 +00:00
augustss
3d6bbf42ca
Add HP Deskjet 6127.
2003-10-02 18:34:12 +00:00
christos
7e494b3ce8
Add a Quirk for my Appro, where it does not find all its busses in ACPI
2003-10-02 16:05:33 +00:00
hannken
2d5deed228
Make it compile (again) with DEBUG enabled. With SUN4 defined, segfixmask
...
was an u_long while whithout SUN4 it was an int.
Approved by: Paul Kranenburg <pk@netbsd.org>
2003-10-02 16:02:09 +00:00
simonb
106fc7cad0
White-space nit.
2003-10-02 13:53:49 +00:00
simonb
b73d5ee5b9
Use common m68k struct trapframe instead of rolling our own.
2003-10-02 13:53:08 +00:00
simonb
8d464a511c
Don't depend in libc, et al.
2003-10-02 13:52:07 +00:00
christos
c7d852f62e
define symbols also if _STANDALONE because arc4random needs mono_time. This
...
needs to be fixed differently.
2003-10-02 12:14:00 +00:00
itojun
d83af104d4
correctly look at outer IPv6 header when forwarding packet into ipsec tunnel.
...
iij seil team
2003-10-02 12:13:44 +00:00
itojun
cc76a8982b
fix build for bootloaders (no /usr/include/sys/kernel.h any more).
2003-10-02 10:39:27 +00:00
itojun
364f2d9e12
permit tunnel mode over link-local address. (outer header is link-local)
...
iij seil team
2003-10-02 10:01:11 +00:00
kleink
cad1622bfb
Need opt_posix.h for P1003_1B_SEMAPHORE.
2003-10-02 09:30:16 +00:00
mycroft
aeeaf47b01
Cleanup:
...
* auich_calibrate() assumes that the AC97 part is in its reset state. To
ensure this, call audio_attach_mi() after auich_calibrate().
* Explicitly support 12000Hz and 24000Hz. (Why is there a discrete list at
all?)
* Fix an obvious recording bug -- we were acking the wrong interrupt.
* Ensure that we don't get an interrupt during the AC97 speed probe by clearing
the "interrupt on completion" bit in the DMA setup.
2003-10-02 07:41:53 +00:00
itojun
8184c3658f
handle link-local address in ipsec6_tunnel_validate(). from iij seli team
2003-10-02 07:19:37 +00:00
mycroft
fc3c7930e6
A bit of cleanup:
...
* Separate the code to set the default parameters into a new function,
audio_set_defaults(). Make it use audiosetinfo(), which properly initializes
the block size and whatnot. Use this in both audioattach() and the
/dev/audio case of audio_open().
* Do not force a reinitialization when /dev/sound is opened.
* Do all of the block size sanity checks in auto_init_ringbuffer(), not in
both audio_calc_blksize() and audiosetinfo().
* Fix a bug in audiosetinfo() that caused the block size to not be recalculated
immediately if we set it to 0.
* For AUDIO_GET[IO]OFFS, modify the deltablks calculation so that it gives us
the number of block boundaries crossed.
2003-10-02 07:15:20 +00:00
itojun
2cc4a6b1a7
need to use m_freem(), not m_free(). from iij seil team
2003-10-02 07:13:57 +00:00
itojun
ea3d98658c
plug mbuf leak due to manual mbuf handling. PR kern/13807.
...
(martti confirmed that it stabilizes the situation described in kren/13807)
2003-10-02 06:01:51 +00:00
itojun
269a200e21
minor KNF
2003-10-02 01:27:20 +00:00
enami
ae9b5cba84
Rewrite uvm_map_findspace() to improve readability and to fix a bug that
...
it may return space already in use as free space under some condition.
The symptom of the bug is that exec fails if stack is unlimited on
topdown VM kernel.
2003-10-02 00:02:10 +00:00
itojun
899b67c09a
correct ip_fragment() wrt ip->ip_off handling.
...
do not send out incomplete fragment due to ENOBUFS (behavior change from 4.4BSD)
2003-10-01 23:54:40 +00:00
matt
3aafdaac96
Make the kernel makefiles pay attention to NOGCCERROR
2003-10-01 23:11:29 +00:00
enami
0ca733e759
Some whitespace fixes.
2003-10-01 23:08:32 +00:00
enami
aa87bee0c5
ansi'fy.
2003-10-01 22:50:15 +00:00
uwe
c313f02140
Whitespace nit.
2003-10-01 21:51:15 +00:00
itojun
d104a1a89a
make debug_sysctl() sysctl MIB check more strict. from smak.
...
attack similar to NetBSD-SA2003-014 can be mounted due to this flaw.
2003-10-01 21:45:14 +00:00
fvdl
7baac02537
Reenable negotiation by default for discovery commands, until I figure out
...
what the issue is.
2003-10-01 18:01:06 +00:00
simonb
457cdc6624
Quieten down lint a little with a /* LONGLONG */ comment.
2003-10-01 15:47:27 +00:00
cl
1453f2ca48
make sa_vp_donate update p_nrlwps when it retires an LWP
2003-10-01 14:50:06 +00:00
itojun
c6eceb7a58
avoid out-of-bounds memory access (array size out of sync). found by
...
openbsd 'bound' attribute.
2003-10-01 08:07:39 +00:00
itojun
f8641ea112
avoid out-of-bound memory access. found by openbsd "bound" C attribute.
2003-10-01 08:03:48 +00:00
mycroft
de16a50404
Enabling caching of the video memory, and preset the modified bits.
2003-10-01 06:14:57 +00:00
itojun
ae7fc0a7d4
fix out-of-bounds access to ifindex2ifnet[]. found by iij seil team.
2003-10-01 04:22:33 +00:00
petrov
0545d82fe3
remove unused fastvec.
2003-10-01 02:01:20 +00:00
christos
ad9b12ae7e
make symlinks for sha1.h md4.h and md5.h and don't install kernel.h
2003-10-01 01:37:13 +00:00
mycroft
e0933f24da
Some small cleanup -- make the base,limit values vaddr_t, not char*.
...
Also add some code that attempts to deal with C16_VIDEO interrupts, though it
does not seem to make my color slabs work again.
2003-10-01 01:25:06 +00:00
mycroft
5f4d907d3f
Add some debugging code to log intrstat history so I can track down stray
...
interrupts.
2003-10-01 00:07:48 +00:00
matt
86b06b2e50
Rearrange and with COMPAT_* properly
2003-09-30 21:45:09 +00:00
martin
1483742f8a
Fix typo (DP83020 -> DP83820) from HITOSHI Osada in PR kern/23023.
2003-09-30 21:21:34 +00:00
manu
2522a3f784
Build PowerPC again with _HAS_SIGINFO. Remove the ifdef on _HAS_SIGINFO
...
in the header file since all platforms supported by COMPAT_DARWIN now have it.
2003-09-30 21:04:54 +00:00
christos
a3fa6a15ef
- Protect clockctl.h consistently with the correct ifdef.
...
- Move the ifdef before we include the world.
2003-09-30 20:38:38 +00:00
christos
f088ebb248
Don't make declarations visible from userland, unless _LIBC is defined,
...
because we don't define semid_t.
XXX: Should we be defining __semid_t instead?
2003-09-30 20:37:36 +00:00
christos
7bd9c302eb
Regen
2003-09-30 20:36:40 +00:00
christos
4420def0dc
#ifdef _LIBC the semid_t syscalls since we don't define semid_t in userland
...
except in the libc case.
XXX: Should we define __semid_t instead and make those visible from userland
again? Only ktrace and syscall() get affected.
2003-09-30 20:36:10 +00:00
christos
a474dc2106
Keep track of which prototypes we declared already so that we don't
...
declare them again.
2003-09-30 20:34:28 +00:00
manu
45fa851e14
Report keyup and keydown events
...
Qhen the event queue is full, sleep so that the process will be able to
consume entries
2003-09-30 19:56:54 +00:00
manu
a61584517b
Attempt to restore colormap after a display server crashed
2003-09-30 19:49:00 +00:00
christos
92767d7de3
#ifdef _KERNEL all of it.
2003-09-30 19:20:05 +00:00
matt
8881697abd
Add -ffreestanding
2003-09-30 18:58:39 +00:00
briggs
701f5ff4ba
Make sure that we don't blow away the enables in ahd_reset() on PCI-X.
2003-09-30 12:34:16 +00:00
tron
9340e9d695
Fix build problem caused by integration of new I2C framework.
2003-09-30 09:35:15 +00:00
mycroft
5e57353b7b
Add P1003_1B_SEMAPHORE.
2003-09-30 03:57:36 +00:00
thorpej
2652188cc4
New generic I2C framework. Supports bit-bang and "intelligent" I2C
...
interface controllers (of varying intelligence levels).
Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford,
with some modification by me.
2003-09-30 00:35:30 +00:00
christos
36b4e0b6e7
Fix off-by-one in PRC_NCMDS check. From FreeBSD via OpenBSD
2003-09-30 00:01:18 +00:00
grant
d2b2b89242
typo in comment
2003-09-29 23:31:04 +00:00
matt
de203a6459
Fix GCC3'ism's
2003-09-29 22:54:28 +00:00
jonathan
ffa9f8f5aa
No copyrignt notice here (caught by Sam Leffler). Add the same two-clause
...
copyright I sent to Sam Leffler for the FreeBSD version.
2003-09-29 22:35:43 +00:00
matt
2298bf0a7a
trap.c: Set ksi.ksi_trap to frame->trap.
...
sig_machdep.c: Use ksi->ksi_addr in compat code to supply the
'code' argument to the old signal routines.
2003-09-29 22:24:53 +00:00
matt
ec1689548e
Set ksi_addr to frame->code.
2003-09-29 22:20:52 +00:00
tls
b911732f2a
Increase default socket-buffer sizes from 16K to 32K. This increases
...
throughput significantly in a wide variety of test cases, including
local gigabit ethernet with both jumbo and standard frames,
transcontinental (U.S.) connections with e2e bandwidths ranging from
10Mbit/sec to 155Mbit/sec, and on a variety of test connections
between the NetBSD Project public servers and machines in Australia.
The impact of this change is less dramatic for high-delay connections
when Path MTU is in use but still measurable.
For optimal performance on local gigabit networks, a higher socket
buffer size (at least 64K) will still yield a substantial improvement
in performance, but 32K gets us most of the way there in my test
cases, with only a cost of _doubling_ memory use per socket rather
than _quadrupling_ it.
N.B. Windows NT, at least since Win2k SP2, uses a default socket buffer
size (or their analogue thereof) of 64K, which is a useful data
point.
2003-09-29 21:39:35 +00:00
matt
050d126a03
Add SA_SIGINFO support for VAX.
2003-09-29 21:04:53 +00:00
dbj
5c09d20130
Declare fs_old_flags and fs_flags as unsigned.
...
This fixes a bug introduced in revision 1.120 of ffs_vfsops dated 2003/09/13
which results in fs_flags having a value of 0x7fffff00 when a superblock
is updated to use the new layout.
Discussed in http://mail-index.netbsd.org/tech-kern/2003/09/28/0003.html
2003-09-29 20:34:23 +00:00
augustss
1aa1d2f8e2
The umass attach can fail in many ways. Print a message about why it
...
failed instead of just being silent about it.
2003-09-29 20:04:25 +00:00
yamt
0dc0c83b61
remove redundant prototypes.
2003-09-29 15:12:08 +00:00
tsutsui
e67b04670b
Remove '#' from if/endif, otherwise it fails on elf64 environment.
...
From Christopher SEKIYA.
2003-09-29 14:34:44 +00:00
scw
5b05921978
Copy our pci_chipset_tag_t into wi_pci_softc instead of a pointer
...
to pci_attach_args. The latter is allocated on the stack during auto-
configuration and so will not be valid after that time.
It's amazing how the old code worked for so long. I guess pci_attach_args
is allocated deep in pid#0's kernel stack on most platforms.
2003-09-29 14:10:35 +00:00
augustss
95b435b7b3
Update URLs. From PR 23004.
2003-09-29 11:54:26 +00:00
cb
93491c15d3
fix O_NOFOLLOW for non-O_CREAT case.
...
Reviewed by: christos@ (some time ago)
2003-09-29 10:04:03 +00:00
wiz
37ac1db454
available, not avaliable. From miod@openbsd.
2003-09-29 09:50:21 +00:00
scw
960dfae23f
Define ELF32_MACHDEP_ENDIANNESS according to target byte order.
2003-09-29 09:08:20 +00:00
simonb
953b5b465b
Add a dependancy on assym.h; helps "make -j N" kernel builds.
2003-09-29 05:14:23 +00:00
junyoung
4c47dc9339
Fix typo in comments.
2003-09-29 04:03:55 +00:00
jdolecek
c82b56d651
constify a little
2003-09-29 03:22:58 +00:00
mrg
0aad2d6101
- convert to new aprint*() autoconfig print mechanism
...
- clean up some magic numbers
- make 1.6 friendly
2003-09-29 01:53:02 +00:00
cl
e1614ccdf9
Cast through (void *) to appease gcc3.
2003-09-29 01:20:41 +00:00
cl
0dcee00de1
add register storage class for gcc3
2003-09-28 23:21:06 +00:00
cl
33c9599295
u_int short -> u_short for gcc3
2003-09-28 23:14:42 +00:00
cl
ce3867fe3b
Cast through (void *) to appease gcc3.
2003-09-28 22:56:58 +00:00
cube
e57b040603
Change the way of setting a port value so that a change too small to
...
fit in the number of bits used for the port still does something.
This fixes PR pkg/18741 for ac97-based hardware. Other audio drivers
might need a similar fix.
2003-09-28 22:24:09 +00:00
cl
212af23c55
Cast to (void *) to appease gcc3.
2003-09-28 22:00:26 +00:00
cl
096e210c5a
always use -traditional-cpp
2003-09-28 21:22:45 +00:00
cl
1ee8b0b19c
x68k has sc_events and not k_events in struct kbd_softc
2003-09-28 21:14:41 +00:00
cl
5701ee6c8e
catch up with const ksiginfo_t and const sigset_t
2003-09-28 21:12:26 +00:00
chs
ec439fca35
avoid hanging during autoconf if no mouse is attached. fixes PR 11111.
...
based on code from Christian Groessler.
2003-09-28 17:25:07 +00:00
kent
1bea39944d
codec id for AD1985
2003-09-28 15:39:09 +00:00
kent
0eb86c3701
Support for 4ch/6ch audio playback.
2003-09-28 13:37:19 +00:00
dsl
eed203ed54
Simod has persuaded me to remove the 'sizeof (struct kinfo_drivers)' field.
2003-09-28 13:24:48 +00:00
dsl
2a6d948efc
Simon has persuaded me to remove the 'sizeof kinfo_drivers' field.
2003-09-28 13:02:19 +00:00
tsutsui
1d11374304
Cast through (void *) to appease gcc3.
2003-09-28 13:02:18 +00:00
tsutsui
7f019aacfd
- Remove (commented out) options COMPAT_ULTRIX, which is not usable on mipseb.
...
- Fix (commented out) obsolete options MINIROOTSIZE.
- space/TAB cosmetics
2003-09-28 12:56:09 +00:00
martin
d15431449a
Include <compat/netbsd32/netbsd32_exec.h> to get the proper 32bit
...
sendsig etc. prototypes.
2003-09-28 10:27:25 +00:00
martin
a498dbd6b4
constify
2003-09-28 10:24:47 +00:00
martin
b4f2a7e0a0
const poisioning.
2003-09-28 10:22:21 +00:00
martin
220f7552d7
Ansify and add missing include.
2003-09-28 10:16:41 +00:00
tsutsui
6ca112843e
- Add MIPS_KSEG2_TO_PHYS() and MIPS_PHYS_TO_KSEG2() macro.
...
- Add definitions of the MIPS4 config register.
From Christopher SEKIYA.
2003-09-28 08:43:29 +00:00
tsutsui
026b6946bd
Fix typo. From Christopher SEKIYA.
2003-09-28 08:21:08 +00:00
tsutsui
e7500ac4b0
Add another R4000 CPU revision ID. From Christopher SEKIYA.
2003-09-28 08:16:51 +00:00
tsutsui
f9acb25560
Catch up with const sigset_t. From Christopher SEKIYA.
2003-09-28 08:11:47 +00:00
tsutsui
992acd3aab
Add options COMPAT_16.
2003-09-28 07:39:48 +00:00
jdolecek
6c6463370e
add entry for Lava Quattro-PCI (4 port serial)
...
contributed in PR kern/22977 by Heison Chak
2003-09-28 07:22:01 +00:00
jdolecek
330360f6a6
regen: ROLAND MIDI devices and Piengineering Xkeys entry
2003-09-28 07:15:47 +00:00
jdolecek
eb3ff4c555
add usbdevs entries and umidi quirks for Roland USB MIDI devices
...
contributed in PR kern/18096 by Clemens Ladisch
2003-09-28 07:14:56 +00:00
jdolecek
b2122d6d98
add Piengineering Xkeys 58 entry, from kern/20838
2003-09-28 06:55:57 +00:00
mycroft
ca96c7c4ec
Remove some code that breaks AH tunnels completely. The comment describing
...
the purpose of this code appears to be on crack -- it's talking about
end-to-end authentication, but the purpose of an AH tunnel is NOT end-to-end
authentication; it's authentication of the tunnel endpoints.
NB: This does not fix the fact that IPsec leaks "packet tags."
2003-09-28 04:45:14 +00:00
dyoung
6cac03ae0e
Adapt ieee80211_ioctl.[ch] to suit NetBSD. NetBSD and FreeBSD have
...
the least in common here, so I have not concerned myself with
compatibility.
2003-09-28 02:40:14 +00:00
dyoung
c059ea0028
More NetBSD-FreeBSD compatibility changes in the pattern
...
#ifdef __FreeBSD__
/* FreeBSDism */
#else
/* NetBSDism */
#endif
An important and non-obvious change is in ieee80211_mgmt_output,
#ifdef __FreeBSD__
KASSERT(m->m_pkthdr.rcvif == NULL, ("rcvif not null"));
#endif
Because NetBSD mbufs are not bzero'd like FreeBSD's, we cannot
count on rcvif == NULL.
2003-09-28 02:35:20 +00:00
mrg
52b4a4af1d
from Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>:
...
- if_bcereg.h should only have register definitions, so declarations
of softc structure etc. should be in if_bce.c.
- The types of DMA descriptors should be u_int32_t, not unsigned long.
- netinet headers are not required here.
- Values passed via bce_tx_ring should also be byte-swapped.
- byte-swapping is not needed for bus_space access.
from me:
- KNF
- mark all magic numbers with /* MAGIC */ so they can be identified at
some point. there are 33 in total though many appear to be the same
value, or related (eg, the 6 emac points.)
leaves these issues:
- RX pre-packet headers need to be byte-swapped or not?
- PAGE_SIZE bytes are allocated for both TX and RX DMA ring descriptors,
but they should be 1024 (== sizeof(struct bce_dma_slot) * N[TR]XDESC).
- the mcast filter.
2003-09-28 01:03:07 +00:00
cl
ea7f5f55b4
fix fmovem argument reference
2003-09-28 00:15:13 +00:00
cl
af0728fff5
catch up with const sigset_t
2003-09-28 00:07:50 +00:00
cl
944c9c43ab
catch up with const sigset_t and const ksiginfo_t
2003-09-28 00:04:52 +00:00
mycroft
ad3b20a692
A nit I ran into while copying this code for something else...
2003-09-27 23:10:47 +00:00
is
d774eeb6ea
Bring some stuff up-to-date. To be continued.
2003-09-27 21:32:12 +00:00
he
772b1d9073
Allow kernels without the haltwo driver configured to build, i.e.
...
make the driver optional by adding the haltwo attribute.
2003-09-27 21:11:21 +00:00
is
23074d4396
pregenerate grf_ultms.c, so that gspa isn't needed during kernel build
2003-09-27 20:52:59 +00:00
is
3af256db77
PPC_OEA is in std.amigappc
2003-09-27 20:51:54 +00:00
cl
2f20c17423
make gcc3's `deprecated use of label at end of compound statement' go away
2003-09-27 20:16:59 +00:00
cl
3f16119f55
Cast through (void *) to appease gcc3.
2003-09-27 20:01:58 +00:00
mhitch
28527002f8
Cast through (void *) to appease gcc3.
2003-09-27 19:34:17 +00:00
tsutsui
499f56cda2
sys__sigreturn14 -> compat_16_sys___sigreturn14
2003-09-27 17:51:42 +00:00
tsutsui
2fe24b8c7f
Use strlcpy() rather than strncpy() + `\0' termination.
2003-09-27 17:42:11 +00:00
mycroft
c82b47f9bc
Fix a non-fatal race condition.
2003-09-27 15:56:03 +00:00
mycroft
88dd794c62
Put pfsnode in the #ifdef _KERNEL too, so this actually compiles.
2003-09-27 15:32:50 +00:00
darcy
566d30be44
Changes as discussed with itojun on tech-kern. I have modified the enums
...
to have KFS or PFS differentiators. Further I have wrapped the enum in
procfs in "#ifdef _KERNEL" as it is done in kernfs.
To see the discussion go to http://mail-index.NetBSD.org/tech-kern/2003/09/
and look for "Mismatched enums in include files" in the list.
2003-09-27 13:29:02 +00:00
mrg
3942bb7a51
enable broadcom BCM4401 (bce) driver (as found on recent dell laptops)
2003-09-27 13:16:16 +00:00
mrg
871eae696e
add new driver for broadcom BCM4401 chipset (as seen on recent dell
...
laptops) written by Cliff Wright <cliff@snipe444.org> and tested by
yours truly.
XXX: missing mcast filter support.
thanks cliff!
2003-09-27 13:13:28 +00:00
jdolecek
e257c8b61f
map ERRSRV:ERRbaduid to EAUTH
2003-09-27 12:24:25 +00:00
tsutsui
ddc207b63e
Add options COMPAT_16.
2003-09-27 10:07:57 +00:00
dsl
84577b4fe4
Add kern.root_partition (sysinst needs to know it)
...
Add kern.drivers - reports driver names and major numbers
Remove some redundant caddr_t casts.
2003-09-27 07:58:55 +00:00
dsl
70fa83aaf4
Add kern.root_partition (because sysinst needs to know it).
...
Add kern.drivers - reports installed driver names and major numbers.
2003-09-27 07:52:34 +00:00
matt
a8a3bf5bed
ANSIfy.
2003-09-27 04:44:42 +00:00
matt
827263a8bc
Use ksi_signo instead of _signo.
2003-09-27 03:51:54 +00:00
tls
d0ffab287c
Remove NOSETTLE flag from channel in FibreChannel case. It makes sense that
...
it should be there, but in practice, on some systems an ugly race condition
rears its head: SCSI commands are issued before the FC thread ever runs, and
fail from then on forever. Yuck.
2003-09-27 03:43:08 +00:00
christos
6fc26a7684
add SIGTRAMP_VALID and gc old sigcontext <-> ucontext macros.
2003-09-27 03:14:31 +00:00
matt
60ff688f72
Define SIGTRAMP_VALID properly.
2003-09-27 00:58:32 +00:00
matt
3ce59aebf3
Deal with signal trampoline being const.
2003-09-27 00:57:45 +00:00
matt
2546f51a33
Regen.
2003-09-26 23:11:16 +00:00
matt
ebb8ea4c89
Constify __sigaction_sigtramp argument 'void * tramp'.
2003-09-26 23:08:24 +00:00
nathanw
4d59420344
Move __cpu_simple_lock_t and __SIMPLELOCK_{UN,}LOCKED to machine/types.h
...
so that they can be used in a namespace-friendly way.
2003-09-26 22:45:41 +00:00
wiz
db579612f4
Definition, not defintion. From miod@openbsd.
2003-09-26 22:25:21 +00:00
wiz
cff5e477ad
Process has only one c. From miod@openbsd.
2003-09-26 22:23:58 +00:00
martin
6b0c555300
On physical layer errors, mark deactivated call descriptors correctly.
...
Spotted by Antti Kantee.
2003-09-26 22:20:12 +00:00
matt
6986092cfe
Add a machine-dependent SIGTRAMP_VALID macro which is used to test whether
...
a trampoline version is valid or not.
2003-09-26 22:14:19 +00:00
tsutsui
81d5d9d0f3
TAB/space cleanup.
2003-09-26 21:41:16 +00:00