jmc
867ec2f3a6
Just use the default field separator
2003-12-12 06:51:47 +00:00
jmc
fde398f9ce
Regen (picks up PNP8389 after devlist2h.awk changes
2003-12-12 06:51:36 +00:00
jmc
6125716f79
Fix from PR#23177. Pass lint and while here use a regular field separator
...
and shift off the first entry to get the description. This fixes one that
was getting missed and prevents future errors
2003-12-12 06:50:54 +00:00
jmc
3ac305c74a
Add a stub for the majors (which just includes amiga's majors file).
2003-12-12 04:12:09 +00:00
atatat
74b1767b3c
The machdep.debug node is an int, not a struct
2003-12-12 03:52:56 +00:00
scw
6222bc14b8
Fix a typo in bswr2rb() which resulted in an 8-bit load instead 16-bit.
...
Pointed out by Derek Godfrey.
2003-12-11 23:52:25 +00:00
matt
0ecc4c35b5
Copy ksi->ksi_info, not all of ksi, to user stack.
2003-12-11 18:33:52 +00:00
matt
567c7f35d1
Use KSI_TRAP_P in KSI_TRAPCODE. Add some missing (..) for macro arguments.
2003-12-11 18:33:03 +00:00
christos
165834b297
make this compile again.
2003-12-11 17:46:23 +00:00
matt
786b602bd3
Rework things to move common stuff into Makefile.inc.
2003-12-11 17:34:09 +00:00
uch
f948356718
Update for new world of indirect wdc registers.
2003-12-11 09:53:15 +00:00
martin
8198b105e1
Bump SYMTAB_SPACE, we need more nowadays.
2003-12-11 08:42:20 +00:00
matt
98c902b471
Convert fixcoff into a true host tool by making it under tools.
2003-12-11 00:27:42 +00:00
itojun
235e090dea
gi_len is ip_len, so it has to be network byteorder. markus friedl
2003-12-11 00:22:29 +00:00
itojun
b37e7ce6ef
do not touch sav->xx after key_freesav(). from hajimu umemoto
2003-12-10 23:46:42 +00:00
matt
cd3cb31917
Make sure to pick up nbcompat definitions
2003-12-10 23:45:25 +00:00
matt
b1865b274e
Use be16toh/htobe16 instead of ntohs/htons.
2003-12-10 23:36:07 +00:00
matt
104c58abbf
s/u_int16_t/uint16_t/ for more portability
2003-12-10 23:08:14 +00:00
itojun
d8ac1c6007
fix cases where pktinfo specifies outgoing interface of "0".
2003-12-10 22:35:35 +00:00
petrov
90efe83bb9
Fix strict-aliasing compiler warning.
2003-12-10 20:09:05 +00:00
drochner
bfae4c94ef
if the code segment is not enlarged, return 0 in pmap_exec_fixup
...
so that the trap is not retried
(fixes cases where a program traps for good reasons)
2003-12-10 18:13:32 +00:00
tsutsui
556423a6ac
Bump SYMTAB_SPACE to 204800.
2003-12-10 18:08:50 +00:00
jdolecek
d5bf86dcf4
Modify the licences of code written by Theo De Raadt from a 4-clause
...
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt.
2003-12-10 16:35:20 +00:00
drochner
a33b8b088c
a little bit more namespace sanity
2003-12-10 14:19:02 +00:00
atatat
e3796202c5
Make kern.dump_on_panic writeable again, too
2003-12-10 14:16:12 +00:00
drochner
e74e4d19cb
Just checking a global marker (pm_hiexec) for the highest executable
...
address currently in effect does not always work: There might be more
instances of the code segment selector in other threads, on other CPUs
and in *jmp_bufs.
So always check whether the CS needs updating, if it is not already
set to the "BIG" value.
This code needs more cleanup, this is considered a stopgap fix only.
2003-12-10 13:59:48 +00:00
agc
7db1d33cba
Modify the licences of code written by Theo De Raadt from a 4-clause
...
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
2003-12-10 12:06:25 +00:00
itojun
aa8a6718f0
use if_indexlim (instead of if_index) and ifindex2ifnet[x] != NULL
...
to check if interface exists, as (1) if_index has different meaning
(2) ifindex2ifnet could become NULL when interface gets destroyed,
since when we have introduced dynamically-created interfaces. from kame
2003-12-10 11:46:33 +00:00
hannken
fbae381aaa
The file system snapshot pseudo driver.
...
Uses a hook in spec_strategy() to save data written from a mounted
file system to its block device and a hook in dounmount().
Not enabled by default in any kernel config.
Approved by: Frank van der Linden <fvdl@netbsd.org>
2003-12-10 11:40:11 +00:00
tsutsui
4949a9ae53
Add WSDISPLAYIO_VIDEO_{ON,OFF} support for WSDISPLAYIO_SVIDEO ioctl.
...
Patch from Yasushi Oshima.
2003-12-10 10:36:02 +00:00
tsutsui
4aa0d301de
Invert Y-axis value for mms(4). From Yasushi Oshima on port-dreamcast.
2003-12-10 10:30:45 +00:00
itojun
561720b19b
validate set/getsockopt arg more strictly. with previous code privileged
...
user can cause kernel crash.
2003-12-10 09:28:38 +00:00
itojun
c81f32fe6c
comment from niels provos;
...
- seed2 is necessary, but use it as "seed2 + x" not "seed2 ^ x".
- skipping number is not needed, so disable it for 16bit generator (makes
the repetition period to 30000)
2003-12-10 05:22:18 +00:00
simonb
fa8e22ca2d
Make unimpl_emul.o depend on assym.h so that "make -j N" kernel builds
...
work.
2003-12-10 04:59:35 +00:00
briggs
3c06a40b83
Power up the card without OE enabled to avoid letting SanDisks enter
...
True IDE mode. Hinted at by Charles Hannum a while back. This lets
my PCI-Cardbus adapter read SanDisk CF cards much more reliably.
Also bring in a few defines from FreeBSD for some more TI registers and such.
2003-12-10 02:55:48 +00:00
jmc
695a2a2f9f
Change reference at bottom from sys/dev/majors to sys/conf/majors to match
...
reality
2003-12-10 02:04:00 +00:00
jmc
66a3e546ff
Oops. _KERNEL, not KERNEL
2003-12-10 01:26:24 +00:00
lonewolf
49e806d166
sgimips lives in the new-style wscons land.
2003-12-10 00:24:21 +00:00
lonewolf
b57c3a57f9
Make this compile and apparently work (it generates interrupts properly, at
...
least).
XXX The is_console test is horribly ugly but necessary for the pckbc_cnattach
XXX coming soon.
2003-12-10 00:22:29 +00:00
lonewolf
3fe422af98
Garbage collect unused file.
2003-12-10 00:18:07 +00:00
lonewolf
8d097bc535
Remove the extra call to consinit().
2003-12-10 00:00:51 +00:00
manu
780bd92b51
Catch signals in clock_sleep, so that sleeping processes can be interupted.
2003-12-09 22:04:25 +00:00
ad
ae788c30d0
Mirror change made in FreeBSD, rev 1.39 of aac.c. May address PR 23574.
...
bzero out the sync command buffer when sending commands. This was causing
problems when enumerating multiple arrays.
2003-12-09 20:12:14 +00:00
manu
d34fcf6a3b
One more property needed by WindowServer
2003-12-09 19:51:51 +00:00
briggs
500fd35ba0
Use aprint_*()
2003-12-09 19:51:39 +00:00
ad
243b868f65
Grab the configuration lock when handling I2ORESCANCMD.
2003-12-09 19:51:23 +00:00
ad
ee5a33f5aa
Match Promise controllers.
2003-12-09 19:43:53 +00:00
augustss
e58307e458
Fix spelling mistake in a comment.
2003-12-09 19:33:22 +00:00
ad
e4cbd13089
Regen.
2003-12-09 18:58:49 +00:00
ad
237307078f
Add second ID for Intel i960 RM.
2003-12-09 18:58:16 +00:00
he
9d5ca63b31
Bump SYMTAB_SPACE so that the symbol table fits again.
2003-12-09 18:00:22 +00:00
manu
10f0bf745b
Fix various broken sanity checks in iokit emulation.
...
Add some methods to IOFramebuffer (DARWIN_IOFBSETBOUNDS,
DARWIN_IOFBSETCURSORVISIBLE) and to IOHIDSystem (DARWIN_IOHIDPOSTEVENT),
all are unimplemented empty shells.
2003-12-09 17:13:18 +00:00
manu
98c34875d4
In mach_msg_error, don't display error message when the error
...
is 0 (no error). This function is often used as a shortcut to
return a short message with retval = 0.
Add error codes to the debug display
2003-12-09 17:10:02 +00:00
jmc
2608098ab2
Wrap sys root'd includes with #ifdef KERNEL so this will compile for things
...
including machine/cpu.h (which includes this)
2003-12-09 15:47:17 +00:00
jmc
9a398a5661
Make libsa build first as other items depend on it (for -j builds)
2003-12-09 15:46:01 +00:00
pooka
34f5b5e378
The highest 16 bits of chipid identify the ASIC, so print only them.
2003-12-09 15:19:33 +00:00
ad
e296f9bf6e
Catch break for cn_check_magic() and remove the pmax-specific hack.
2003-12-09 14:30:55 +00:00
manu
b50934fc19
Move exception related code to a dedicated file
2003-12-09 12:13:44 +00:00
manu
99ee466dbb
Move most of the code involved into message header, trailer, and descriptor
...
construction to inline functions. This removes a lot of redundent code
from Mach services
2003-12-09 11:29:01 +00:00
simonb
8b18b565b8
Make some comments line up.
2003-12-09 09:49:01 +00:00
matt
031990a547
Make sure to include <bsd.own.mk> to pick up the definition of HAVE_GCC3
2003-12-09 04:54:54 +00:00
atatat
38f213672c
Make kern.sbmax writeable again as well.
...
From a follow-on to PR kern/23695 by a Mr. Davis, which I missed at a
quick glance.
2003-12-09 01:52:07 +00:00
atatat
a5d6d5ebfd
Make kern.logsigexit writeable again.
...
Fixes PR kern/23695.
2003-12-09 01:25:33 +00:00
christos
9c81f1b787
make this compile again.
2003-12-09 00:48:54 +00:00
manu
98f233296d
Factor the code for OOL data movement into mach_ool_copyin and
...
mach_ool_copyout.
Handle port namespace and address space translations when OOL
data moves between different processes (untested)
2003-12-08 19:27:38 +00:00
christos
5c9b8df403
remove error(1) comment.
2003-12-08 17:51:53 +00:00
pooka
3c0925818d
Match 5703 ASIC A3.
...
Also, when printing the ASIC ID, print the revision in hex in all
cases to avoid extra confusion if only the "superclass" of the ASIC
is recognized.
2003-12-08 17:09:39 +00:00
pooka
a17096b1a3
regen for broadcom 5703a3
2003-12-08 17:05:27 +00:00
pooka
9747421fda
Broadcom 5703 A3
2003-12-08 17:00:48 +00:00
scw
6e97fad006
Set up a temporary 1MB mapping to cover the SDRAM controller's registers.
2003-12-08 16:15:31 +00:00
scw
2107fae815
Scoot the SDRAM controller's mapping forward to the next 1MB boundary
...
so it can be mapped easily at startup.
2003-12-08 16:14:16 +00:00
chs
6ca2b78b74
enable com console.
2003-12-08 14:59:26 +00:00
scw
ec226f1150
Don't hard-code SDRAM size. Let ixp425_sdram_size() figure it out
...
at runtime.
2003-12-08 14:44:03 +00:00
scw
40db825e26
Add support for picking up the size of SDRAM by reading the memory
...
controller's config register.
2003-12-08 14:41:11 +00:00
hannken
37efcf9045
Fix the last commit(s). On machines with sizeof(long) != sizeof(int)
...
the hash compare would fail.
2003-12-08 14:23:33 +00:00
hannken
10654a5c0a
Fix last commit. The current spl was an implicit argument to the ACQUIRE
...
macro. With help and approval from YAMAMOTO Takashi <yamt@netbsd.org>
2003-12-08 14:21:25 +00:00
scw
c2415a0dc3
Oops, map PCI memory space at VA 0xf8000000 instead of in the middle
...
of user VM space at 0x48000000.
2003-12-08 13:40:33 +00:00
manu
9046478856
Use appropriate macro definitions when filling complex messages
...
descriptor. This changes nothing but it removes a lot of XXX
2003-12-08 12:03:16 +00:00
manu
df54a7fcc7
When handling complex messages, uses mach_msg_type_descriptor_t until we
...
know what type a descriptor really is.
2003-12-08 12:02:24 +00:00
scw
0695d77aa5
Regen
2003-12-08 11:07:27 +00:00
scw
5379b99913
Add an entry for Intersil's Prism-54 (ISL3890) WLAN mini-PCI card.
2003-12-08 11:06:36 +00:00
matt
48b7ea2255
Strings (even ifdef'ed out) can't run past the end of the line. Use
...
ANSI string concatenation.
2003-12-08 09:29:30 +00:00
matt
840a2d6df7
Make -mno-asm-pic dependend on HAVE_GCC3 == no
2003-12-08 09:28:36 +00:00
jdolecek
f76cf6a9ea
need cast to (long long) for %llx format when compiling 64bit kernel
2003-12-08 08:08:40 +00:00
matt
52f58bd42a
Suppress a gcc3 type-punning warning.
2003-12-08 07:33:12 +00:00
matt
31ba84cb6a
Move common CFLAGS/AFLAGS to Makefile.inc.
...
For now, only suppy -mno-asm-pic when not using gcc3.
2003-12-08 07:32:19 +00:00
dyoung
1131c0f5f6
Forget the tcpdump $Header$.
2003-12-08 04:48:58 +00:00
jonathan
626b230d59
Add new field ipq_nfrags to struct ipq. Maintain count of fragments
...
(fragments, not fragmented packets) in each queue entry.
Use ipq_nfrags to maintain a count of total fragments in reassembly queue.
2003-12-08 02:23:27 +00:00
petrov
20dfeedb2e
Remove prototypes of non-existant functions, ansify and knf.
2003-12-08 00:52:48 +00:00
manu
4e9539e452
When a task to task message carries ports, translate the port names into the
...
receiver namespace.
While we are there, refactor mach_msg_overwrite by splitting it into
several smaller functions. It had grown too big to be easily maintainable.
2003-12-07 23:44:14 +00:00
mrg
a777988c2a
ofwboot.net is gone. from hannken@
2003-12-07 23:16:03 +00:00
fvdl
b916f59963
Unix semantics dictate that access checks for files are done when it
...
is opened. An open file can always be read from and/or written to,
depending on how it was opened.
Therefore, the read/write/commit RPCs should never return EACCESS,
as they are only performed on files that have been successfully opened
already.
This change improves the current situation and works in most cases.
It simply always uses the most recently known owner/group of the file,
iff the authentication mechanism is AUTH_UNIX (in other cases, the
creds for a succesful open are used, but note that no other cases
are currently implemented).
A retry mechanism can be used to catch a few more cases, but this is
a good improvement for now.
2003-12-07 21:15:46 +00:00
is
3419480b86
2nd half of new wdc register mapping
2003-12-07 20:59:00 +00:00
dsl
b31c4f649a
Fix speling mistake in commennt.
2003-12-07 20:11:11 +00:00
is
f15cf5f5b3
adapt to the new world of wdc register mappings
2003-12-07 20:05:03 +00:00
scw
f8506c0dbb
Ditch some cruft which crept in with the last commit.
2003-12-07 20:03:47 +00:00
scw
081b7696ba
Simplify the round/trunc page, and btop/ptob macroes.
2003-12-07 20:03:04 +00:00
scw
c70112f9ae
Quell a bunch of compiler warnings by avoiding using 'long long'.
2003-12-07 20:01:58 +00:00
scw
4d1e9c4846
De-lint.
...
(hey, these have never been linted before anyway ;)
2003-12-07 20:00:38 +00:00
christos
5173151e16
add altq
2003-12-07 19:12:56 +00:00
christos
489763f22c
whitespace fixes.
2003-12-07 19:12:31 +00:00
thorpej
fbc2b3fcd3
Fix a couple of small whitespace errors.
2003-12-07 18:58:11 +00:00
simonb
89101363de
Don't install <machine/intr.h>.
2003-12-07 14:16:03 +00:00
simonb
af535ef8a2
Add a.out weak-symbol support (new in binutils 2.14).
2003-12-07 12:58:56 +00:00
ichiro
d0ab1c6564
regen.
2003-12-07 10:37:28 +00:00
ichiro
21b20ac54f
add bluetooth products
...
Anycom BlueCard LSE041 R1B
Anycom Bluetooth CF Card LSE039
2003-12-07 10:37:11 +00:00
martin
8c36f2238a
Add missing break.
2003-12-07 10:33:03 +00:00
he
073a54fdfa
Also make declaration of sysctl_kern_maxptys() depend on NPTY > 0.
...
Makes the mvme68k RAMDISK kernel compile again.
2003-12-07 10:31:32 +00:00
manu
bb9ea468f8
Remove useless and verbose debug message
2003-12-07 10:25:38 +00:00
manu
c29e7d5f16
Added SCHED_INFO flavor in host_info
2003-12-07 10:17:09 +00:00
mrg
8ae92b7455
merge ultrasparc ofwboot / ofwboot.net.
2003-12-07 09:05:18 +00:00
dyoung
609617af90
Enable RSSI-based rate-adaptation for wi(4). This enables wi(4)-based
...
APs to run at "full speed" where before they ran at just 1 or 2Mb/s.
The AP will adapt the data rate for each client based on packet
losses and the received signal strength.
I have also enabled rate adaptation for STA mode and for IBSS mode,
but the hardware gives us less control over the data rate in those
modes.
2003-12-07 05:44:49 +00:00
dyoung
4232da0fda
Diagnostics: complain if packet decapsulation fails.
2003-12-07 05:34:22 +00:00
dyoung
97ea67538a
Add the RSSI-based rate-adaptation library to the build.
2003-12-07 05:30:22 +00:00
dyoung
2e4c586701
Oops. Make it compile with 'options IEEE80211_DEBUG'.
2003-12-07 05:29:39 +00:00
dyoung
00c2f586dc
Get/set fragmentation threshold. DTRT when the RTS threshold is
...
set.
2003-12-07 05:23:12 +00:00
dyoung
d942dc3968
In _STA mode, don't panic when a stray beacon-miss interrupt is
...
received. Instead, ignore it. It's normal for a stray to come
during the transition to monitor mode.
2003-12-07 05:09:02 +00:00
dyoung
9270de9dc4
Updates to 802.11 radiotap. The _DB_ flags were used everywhere to
...
denote a signed dBm Rx power, so rename them to _DBM_ and change
the signedness. Add new _DB_ flags for unsigned Rx power measured
from an arbitrary reference.
Try to synchronize net80211/ieee80211_radiotap.h with my tcpdump
sources (which public tcpdump has not seen, yet) and with FreeBSD.
2003-12-07 04:49:17 +00:00
dyoung
78b6786442
Make the MASK_TO_SHIFT expression less "tall." Hopefully helps
...
work-around the gcc bug reported by Erik Osheim.
2003-12-07 04:22:57 +00:00
dyoung
69ed3fa879
Cosmetic: add some whitespace for readability.
2003-12-07 04:19:27 +00:00
chs
291c877a9c
add support for more than 2 PT_LOAD sections. from OpenBSD.
2003-12-07 02:18:53 +00:00
chs
961d62cfa5
add console support, based on other platforms. from Jochen Kunz.
2003-12-07 02:17:22 +00:00
dmcmahill
3bff1bb631
fix style. Thanks Simon!
2003-12-07 02:01:25 +00:00
dmcmahill
a243add09b
regen after schedctl addition.
2003-12-07 01:50:10 +00:00
dmcmahill
82d69cf8b8
Add a dummy entry for syscall #206 , schedctl, that simply returns zero.
...
This lets FlexLM clients run under compat_svr4_32 on sparc64. Patch
checked by Matt Green.
2003-12-07 01:36:58 +00:00
jonathan
27171efb6d
KNF: s/unsigned/u_int/, in a couple of places I missed.
2003-12-07 01:18:26 +00:00
tsutsui
082caf94ca
Allow sysctl(8) to update vm.{anon,exec,file}{min,max}.
...
XXX needs sysctl(9) man page to confirm this change..
2003-12-07 00:40:43 +00:00
jonathan
c56097abb8
Replace the single global IP reassembly list/listhead, with a
...
hashtable of list-heads. Independently re-invented, then reworked to
match similar code in FreeBSD.
2003-12-06 23:56:10 +00:00
bouyer
464de24c0e
Clone artisea_chip_map() for use by the ICH5 SATA controllers.
...
The 31244 is really different from the ICH5, and one day the map function
could be incompatibles. Suggested by thorpej@
2003-12-06 22:40:03 +00:00
bjh21
df8ccd8d1b
Undo last change: The "iomd" driver has its own bus_space tag, so it didn't
...
rely on the brokenness of the mainbus one.
2003-12-06 22:31:16 +00:00
bjh21
ed4b80b144
Fix the ARM mainbus version of bus_space_subregion() to correctly shift the
...
base offset before using it. This makes it work the same as every other
implementation, and makes wdc at pioc on acorn32 work again. Fix the only
caller I found which depended on the old behaviour.
2003-12-06 22:05:33 +00:00
martin
c70b2edfae
Fix kern.cp_time for MULTIPROCESSOR kernels: calculate size of result
...
correctly, free original instead of incremented pointer, copy results for
n = -2 case too, so top shows correct stats.
Additionaly, rearange code for better readability (from Andrew).
2003-12-06 21:33:51 +00:00
fvdl
150a6bd869
Include opt_posix.h for the P1003_1B_SEMAPHORE define.
...
Include <machine/cpu.h> just to be sure.
2003-12-06 20:06:11 +00:00
bjh21
b5479325d6
Correct typo in last.
2003-12-06 20:00:12 +00:00
bjh21
3f1dc2b013
Don't complain if we're asked for != 8 channels. There's no actual support
...
for fewer channels yet, but this is necessary just to avoid a boot-time panic.
2003-12-06 19:59:32 +00:00
manu
dc728f311c
Don't allow mappings at address zero in vm_allocate: first page is a
...
red zone in Darwin, and nothing should be mapped there.
While we are here, ifdef DEBUG_MACH_VM all the VM-related debug messages
2003-12-06 19:34:21 +00:00
bjh21
cdfcb25142
Fix tiny formatting glitches.
2003-12-06 17:39:30 +00:00
fvdl
e16473e240
Segment registers are only 16 bits wide, so only check 16 bits worth of
...
them for validity in check_mcontext.
2003-12-06 17:35:44 +00:00
yamt
8e92859632
rev.1.55 didn't handle BUFQ_SORT_CYLINDER case correctly.
...
pointed by Juergen Hannken-Illjes. patch provided by him.
2003-12-06 17:23:22 +00:00
manu
0951833f2e
Remove the reference to struct proc in kernel and host port once the
...
process terminate, so that no stale pointer can be used if the port is
still referenced
2003-12-06 17:04:50 +00:00
simonb
c26ed27f0c
Only compile in sysctl_machdep_booted_kernel() if __HAVE_BOOTINFO_H
...
is defined.
2003-12-06 15:20:04 +00:00
manu
0105d58e0a
Don't send Mach exceptions to dying processes
2003-12-06 15:16:38 +00:00
manu
174b751317
In task_terminate, unstop the process so that we can really terminate it now
2003-12-06 15:16:10 +00:00
manu
8f3ee36470
Fix some panics caused by incorrect Mach exceptions reference counts
2003-12-06 15:15:19 +00:00
yamt
88046c4ce5
fix a debug code to follow recent change about tailing slashes.
2003-12-06 14:17:13 +00:00
yamt
e5d5094296
- turn non-verbose parts of NAMEI_DIAGNOSTIC into normal DEBUG.
...
- comments on #endif.
2003-12-06 14:16:11 +00:00
simonb
c8ee7b6dd7
Add a WEAK_ALIAS macro.
...
While here, use #if instead of #ifdef for __STDC__ check.
2003-12-06 14:06:28 +00:00
simonb
5fc19197d5
Use crosscompile-friendly ${BINUTILSPROGRAMNAMES}.
...
Enable WARNS=2.
Don't use -z and update start address for binutils 2.14 ld.
2003-12-06 14:04:33 +00:00
simonb
b3d9f58082
Make WARNS=2 friendly.
2003-12-06 14:02:40 +00:00
simonb
717bd17cec
KNF, ANSIfy, de-__P.
2003-12-06 13:09:01 +00:00
manu
8019168c34
Remove a useless debug printf
2003-12-06 11:43:56 +00:00
yamt
3b65e1745b
- disable ipv4 checksum offloading as it seems to have a problem.
...
- add comments to describe it.
2003-12-06 11:27:28 +00:00
jdolecek
d9c37aa325
regen:
...
add NetMos NM9805 and NM9815
2003-12-06 11:20:55 +00:00
jdolecek
89d301d92d
add NetMos NM9805 and NM9815
2003-12-06 11:19:17 +00:00
jdolecek
d8065a9e15
add entry for another NetMos card - NetMos NM9815 Dual 1284 Printer port
2003-12-06 11:18:08 +00:00
martin
fb5bbc3d78
We can not count CPUs at sysctl initialization time - so don't make
...
hw.ncpu an immediate value.
2003-12-06 09:36:34 +00:00
itohy
315a88c214
Back out the following commit and apply the real fix.
...
A variable was actually used in a wrong way.
> revision 1.20
> date: 2003/10/25 21:31:43; author: christos; state: Exp; lines: +3 -3
> Fix uninitialized variable warnings.
2003-12-06 09:32:22 +00:00
atatat
936b72608c
Don't need those any more
2003-12-06 04:25:57 +00:00
atatat
44f5f6b89b
The missing pieces of PROC_PID_STOPEXIT/P_STOPEXIT, a sysctl tweakable
...
flag that makes a process stop as it exits.
2003-12-06 04:16:33 +00:00
atatat
23293f9bae
Pick off a couple of cpu_sysctl() stragglers.
2003-12-06 03:16:48 +00:00
atatat
4673a65de6
#include "opt_multiprocessor.h"
...
This makes hw.ncpu and kern.cp_time work better on those platforms.
2003-12-06 02:52:29 +00:00
jonathan
47eb5abfab
Commit message for previous revision to sys/nfs/nfs.h:
...
Increase NFS_MAXRAHEAD to 32. With 32k read or write requests, that
amounts to 1 Mbyte of read-ahead, enough to cover about 10 ms latency
at gigabit Ethernet speeds. Increase the table of nfsiod kthreads
(NFS_MAXASYNCDAEMON) from 20 to 128, to match the raised value of
NFS_MAXRAHEAD. (Making the limit dynamic requires replacing the
compile-time array with a dynamic structure.)
Add a comment explaining that each read-ahead requires an I/O thread.
Wrap both parameters with an #ifdef <parameter>/#endif, to allow
hand-tuned values or (later) a kernel config-file option override.
2003-12-06 02:48:35 +00:00
jonathan
8f814572a8
*** empty log message ***
2003-12-06 02:43:17 +00:00
simonb
efee714557
Wrap long line.
2003-12-06 01:53:14 +00:00
he
b2518d1259
Make sure buf_inorder() returns a value under all conditions.
2003-12-06 01:21:23 +00:00
he
b4d0601326
Follow through with the removal of cpu_sysctl() here as well,
...
on the tail of the dynamic sysctl reorganization.
2003-12-05 23:56:20 +00:00
bouyer
b42d959140
Add support for the Intel 82801ER Serial ATA/Raid Controller.
...
From Simas Mockevicius on current-users@.
2003-12-05 23:12:41 +00:00
cube
d8aa4bc899
Remove bitbang code that was taken from FreeBSD to support recent SiS
...
chipsets and use mii_bitbang interface instead. Reflect sip dependency in
the config file.
Support for SiS96x needs broader testing.
2003-12-05 22:34:44 +00:00
christos
0cc29b2a89
darwin_sysctl is no more.
2003-12-05 22:17:47 +00:00
jdolecek
43dfb7e7a8
add #ifdef DEBUG segnum sanity check in shm_delete_mapping()
2003-12-05 22:09:56 +00:00
petrov
bd2319422e
Don't convert syscall args for tracing 32bit binaries on 64bit
...
kernel. Found and suggested by David Light. Fixes port-sparc64/23473.
2003-12-05 21:49:00 +00:00
jdolecek
cbff3c76c3
fix IPRINTF() code to compile if the printf()s are enabled; also print
...
lwp pointers rather than proc pointer
2003-12-05 21:24:57 +00:00
jdolecek
0e253cf5f5
back the sigfilter emulation hook change off
2003-12-05 21:12:42 +00:00
christos
f7e4c22afc
Add a dummy darwin_slock
2003-12-05 20:34:45 +00:00
manu
c79cdf6650
struct darwin_slock is not undefined, it's just machine dependent.
2003-12-05 19:57:44 +00:00
scw
a9760a89e4
To cater for VLAN-aware layer 2 ethernet switches which may need to strip
...
the tag before forwarding the packet, make sure the packet+tag is at least
68 bytes long.
This is necessary because our parent will only pad to 64 bytes (ETHER_MIN_LEN)
and some switches will not pad by themselves after deleting a tag.
2003-12-05 19:35:43 +00:00
christos
6b364b0d7f
Do the song and dance for the new indirect register mappings.
...
XXX: This driver's attach routine does not free resources on allocation
failure.
2003-12-05 19:00:07 +00:00
christos
91fec5ebba
Make this compile.
...
- does darwin_sysctl() need to be gc'ed?
- does the darwin root node need to be in struct emul?
- does struct emul need a root sysctl node?
2003-12-05 17:34:56 +00:00
fvdl
9038f863f4
Resurrect include of opt_insecure.h to get the INSECURE definition.
...
From Kouichirou Hiratsuka on current-users.
2003-12-05 16:19:09 +00:00
hannken
8e29a1a664
Make it compile without PPC_OEA.
2003-12-05 11:00:57 +00:00
pk
5255e234b9
cac_cmd:
...
* don't let cac_ccb_alloc() sleep since it regularly runs in an
interrupt context
* return EAGAIN instead EBUSY (or -1), which is what the upper ld
layer expects to get on transient resource shortages.
* ignore error from cac_ccb_start(), since a `fifo full' condition is
handled internally in the lower layer, i.e. the transaction started
from ldstart() has been queued at the lower layer and must be taken
off ld's disk queue.
2003-12-05 10:23:00 +00:00
yamt
a9133ee855
buf_inorder: deal with 64-bit daddr_t correctly.
2003-12-05 10:16:16 +00:00
gson
9798a7bc46
Make the chars in the umidi_endpoint buffer unsigned; this fixes at
...
least one sign extension bug which caused umidi input to not work.
2003-12-05 06:05:53 +00:00
gson
07bb045f57
Opening umidi read-only failed to increment ep->num_open because
...
open_in_jack() treated USBD_IN_PROGRESS as a failure return.
2003-12-05 06:01:59 +00:00
grant
0a49c48fe4
remove some extraneous \'s to shut up warning from gawk.
2003-12-05 04:33:27 +00:00
grant
a586448d86
regen
2003-12-05 04:28:47 +00:00
grant
efde88a60f
add Adaptec AAR-1210SA Serial ATA RAID controller.
2003-12-05 04:28:04 +00:00
bjh21
a42f9e3038
Include <sys/sysctl.h> for sysctl stuff.
...
Also, create the vfs.filecore subtree, rather than vfs.union.
2003-12-05 00:51:08 +00:00
manu
6d6c56a0dc
Add the kdebug_trace system call. It does nothing but dumping anything it
...
gets. dyd uses that feature when DYLD_TRACE is set.
2003-12-04 23:59:50 +00:00
manu
632ce64965
When wakeing up a process that was sleeping for a signal when we have a Mach
...
exception, don't temper with ps_sigwaited.
2003-12-04 22:00:03 +00:00
manu
8a670a0018
Fix newer compiler warning
2003-12-04 21:48:15 +00:00
atatat
2ad42c8121
Not a published interface...yet
2003-12-04 20:06:58 +00:00
atatat
ab1350caca
Dynamic sysctl makes 1.6ZF into 1.6ZG
2003-12-04 19:39:57 +00:00
atatat
13f8d2ce5f
Dynamic sysctl.
...
Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.
Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded. Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.
All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.
PS - I'm sorry, but there's a distinct lack of documentation at the
moment. I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.
2003-12-04 19:38:21 +00:00
drochner
0b653612f0
fix typo in comment
2003-12-04 19:23:00 +00:00
christos
0aac876eae
fix unused variable warnings when LARGE_NAT is defined.
2003-12-04 15:32:01 +00:00
yamt
f4112c3e60
- shuffle members of struct buf to distinguish buffer cache only ones.
...
- put b_private and b_dcookie into a union as they're never used
simultaneously.
- note who can use b_private.
2003-12-04 15:00:32 +00:00
yamt
3ea6756a92
use b_private rather than b_saveaddr.
...
XXX LFS_USE_B_INVAL
2003-12-04 14:57:47 +00:00
keihan
b8702f530b
netbsd.org -> NetBSD.org
...
This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean". Thanks for the patiance, and sorry for all the commits.
2003-12-04 13:57:30 +00:00
keihan
29c72c57f0
netbsd.org -> NetBSD.org
...
All "netbsd.org" is now gone from src/sys/arch.
2003-12-04 13:05:15 +00:00
keihan
8476e6755a
NetBSD.ORG -> NetBSD.org
...
Now all "NetBSD.ORG" are gone from src/sys.
2003-12-04 12:42:54 +00:00
scw
7ef39665ff
ipflow (IP fast forwarding) is not compatible with FAST_IPSEC either.
...
XXX: The decision whether or not to fast forward should be made
XXX: dynamically. Using the current approach seriously reduces
XXX: routing performance on gateways with IPsec enabled.
2003-12-04 10:02:35 +00:00
he
afc065b0f9
Catch up with the recent changes in wdcvar.h, patterned after wdc_isa.c.
2003-12-04 09:32:37 +00:00
briggs
5513f6b2e8
Make PCI host/slave detection work for the iq31244 as well as the iq80321.
2003-12-04 07:02:18 +00:00
thorpej
c0ddd8220b
Bump the Tx DMA segment count to 40. Apparently, it's common to have
...
DMA segment counts in this ballpark when using jumbo frames (so says
the "ti" driver).
2003-12-04 06:57:37 +00:00
thorpej
ca75be9eb7
When performing command pass-through for management tools, don't poll
...
for CCB completion. Instead, sleep, and use a CCB callback to wake the
sleeper.
2003-12-04 05:46:47 +00:00
lonewolf
803a8479e6
Replace some magic numbers by symbolic constants.
2003-12-04 05:31:27 +00:00
lukem
4404046b3f
fix the MAKEVERBOSE messages to be consistent with the standard ones
2003-12-04 02:33:41 +00:00
christos
f1a738c8b7
add stub file so that the kernel compiles.
2003-12-04 01:17:19 +00:00
bjh21
9ec6a8db4d
Synchronise with <ftp://ftp.t10.org/t10/drafts/spc3/asc-num.txt>:
...
SCSI ASC/ASCQ Assignments
Numeric Sorted Listing
as of 9/12/03
2003-12-03 23:20:53 +00:00
manu
ac7838e90f
In the basic thread info, suspend count is the suspend sempahore. Just return
...
0 for now. This is plain wrong, but at least it allows gdb to startup a
program.
2003-12-03 22:25:46 +00:00
cube
a00292cf94
o Add support for accessing the PHY through MDIO for recent SiS chips
...
o Add support for the recent SiS96x chipsets that have a new revision.
That includes a new bit of code to access the EEPROM, since it is
shared with the ieee1394 controller on those chipsets.
Mostly taken from FreeBSD (rev. 1.62 and 1.64 of sys/pci/if_sip.c). I
tried to make the code look less ugly, but couldn't invent documentation.
Fix PR #23481 . Thanks to Stephane ENGEL <sengel AT melshake DOT com> for
the report and the cheerful testing.
2003-12-03 21:58:49 +00:00
manu
18e13eee35
Add a sigfilter emulation hook. It is used at the beginning of kpsignal2()
...
so that a specific emulation has the oportunity to filter out some signals.
if sigfilter returns 0, then no signal is sent by kpsignal2().
There is another place where signals can be generated: trapsignal. Since this
function is already an emulation hook, no call to the sigfilter hook was
introduced in trapsignal.
This is needed to emulate the softsignal feature in COMPAT_DARWIN (signals
sent as Mach exception messages)
2003-12-03 20:24:51 +00:00
petrov
f3ac37d795
syscall clean up from ifdeffed out code.
2003-12-03 20:23:41 +00:00
scw
ef87776bdb
As per the recent ixp425 fix (which is based on this code):
...
In the interrupt dispatch loop, make sure to handle any pending interrupts
which came in while we were dealing with the first interrupt(s), and which
are enabled at the current spl.
This fixes a problem where the intr_enabled/hw mask is not updated to
allow pending interrupts through until the next splx(). In some case,
interrupts could be delayed until the next clock tick.
2003-12-03 19:55:37 +00:00
manu
7973f2217b
Rework Mach exceptions and softignals
...
Exceptions coming from a trap are generated from darwin_trapsignal()
softsignals are from darwin_sigfilter(), a function that is called
from darwin_trapsignal() and from kpsignal2() [the latter from a
emulation specific hook which is not yet committed]
Make some sanity checks to avoid sending data to a port with no receiver.
See http://mail-index.netbsd.org/tech-kern/2003/12/01/0008.html and
follow-ups for details.
2003-12-03 18:40:07 +00:00
manu
057381d1b4
Move machine dependent definitions to machine dependent headers.
2003-12-03 18:25:44 +00:00
manu
20fbf8c756
Trace data movement with vm_read and vm_write
2003-12-03 18:19:12 +00:00
manu
eff089cdc0
More santity checks when sending data to a port: is there someone listening
...
on the receive end?
2003-12-03 18:18:43 +00:00
petrov
7731fd90ac
Use pmap_get_page return code instead, remove unused pmap_stats,
...
delete incorrect KASSERT in pmap_kenter_pa.
2003-12-03 17:58:47 +00:00
scw
99df1a0ae1
In the interrupt dispatch loop, make sure to handle any pending interrupts
...
which came in while we were dealing with the first interrupt(s), and which
are enabled at the current spl.
This fixes a problem where the intr_enabled/hw mask is not updated to
allow pending interrupts through until the next splx(). In some case,
interrupts could be delayed until the next clock tick.
2003-12-03 13:20:34 +00:00
bouyer
6db04f6724
Adapt for new wdc regiosters array. Should fix port-macppc/23604.
2003-12-03 12:09:32 +00:00
bouyer
67e9511d69
Move WDC_NREG from wdcreg.h to wdcvar.h. First part of fix for
...
port-macppc/23604.
2003-12-03 12:01:18 +00:00
bjh21
870dad0f43
Update for new world of indirect wdc registers.
2003-12-02 23:47:20 +00:00
martin
9bbe2098c6
Minor cleanup: remove unused code, sync a comment with current reality.
2003-12-02 22:44:17 +00:00
briggs
a4f6bad750
Configure PCI-Cardbus bridges, too.
...
Patch from KIYOHARA Takashi on current-users.
2003-12-02 16:31:06 +00:00
tsutsui
ab60f77a08
Declare sc_regbase as volatile, so that if_sn.c works with gcc3.
...
XXX We should switch to MI SONIC driver.
2003-12-02 13:19:06 +00:00
bouyer
0041177a45
Use a different interrupt routine for the CSB6. The CSB6 doens't
...
assert IDEDMA_CTL_INTR for non-DMA commands.
It would be nice to have a way to know if the interrupt was for us or not at
this point, but for now let wdcintr() deal with it.
Problem reported and patch tested by Martti Kuparinen.
2003-12-02 12:20:06 +00:00
christos
f85ce17392
add stub function, so that kernel links
2003-12-02 04:53:11 +00:00
dbj
d8b416001c
clarify comments, especially since ffs_isfreeblock is non-intuitive:
...
ffs_isblock:
check if a block is available
returns true if all the correponding bits in the free map are 1
returns false if any corresponding bit in the free map is 0
ffs_isfreeblock:
check if a block is completely allocated
returns true if all the corresponding bits in the free map are 0
returns false if any corresponding bit in the free map is 1
2003-12-02 04:40:43 +00:00
dbj
076b9a1a1e
when ifdef DEBUG and debug_verify_freelist != 0
...
then perform an expensive search of the buffer freelists
in brelse and bremfree to verify consistency
2003-12-02 04:18:19 +00:00
dbj
2162bce654
add explanatory comment in bremfree:
...
We break the TAILQ abstraction in order to efficiently remove a
buffer from its freelist without having to know exactly which
freelist it is on.
2003-12-02 03:36:33 +00:00
christos
d16297df4c
PR/23613: Christian Biere: Bogus bounds check in nanosleep.
2003-12-02 01:34:30 +00:00
dbj
f31a623a56
in ffs_unmount, ignore error returned by VOP_CLOSE(devvp)
...
this fixes a problem where device close error would cause
unmount to fail but structures to be left partially deallocated
2003-12-01 18:57:07 +00:00
dbj
37a927564e
In vclean(DOCLOSE), if vinvalbuf fails because of a write error,
...
then redo the vinvalbuf without the V_SAVE which will force
unflushed buffers to be discarded.
2003-12-01 18:53:10 +00:00
dbj
fed63d5ffe
symbolically expand MNT_VISFLAGMASK
2003-12-01 18:42:12 +00:00
rearnsha
e3cb92a81b
Avoid alignment faults in fusword and fuswintr. Also handle big-endian
...
systems in susword and suswintr.
2003-12-01 13:34:44 +00:00
scw
7cf5104b5a
- For consistency, use cpsr_all instead of cpsr.
...
- Make sure IRQs are enabled before handling ASTs.
2003-12-01 08:48:33 +00:00
lukem
4ca8399eb2
prefix ${.TARGET} with "${.CURDIR:T}/" in various _MKSHMSG macros;
...
per similar change to <bsd.own.mk>
2003-12-01 01:12:58 +00:00
atatat
5f01dc8ab2
Revert revision 1.3 "add sysctl support to firmware loader" by
...
"removing sysctl support from firmware loader". It was never
referenced or called from anywhere...
Suggested by augustss@netbsd.org in private email.
2003-12-01 01:09:24 +00:00
fvdl
c7242676d3
Don't use an alternate stack for the trace/breakpoint trap. It can be
...
called from userspace, and that messes things up.
Thanks to Mark Kettenis to pointing out that not using an alt stack
solved the "loop on gdb sig continuation" issue.
2003-12-01 00:00:07 +00:00
fvdl
22bb1f01c7
Reenable interrupts sooner in the idle_exit case.
2003-11-30 23:58:51 +00:00
wiz
03e41d98b7
Typo fixes in comments from jmc@openbsd.
2003-11-30 20:53:48 +00:00
manu
437424d5f6
I forgot to commit this file for vm_machine_attribute to build correctly
2003-11-30 20:42:55 +00:00
manu
ab8a1b7902
Add task_terminate
2003-11-30 20:42:03 +00:00
provos
a0ce863234
fix off by one in find_last_set(); triggered for processes that have no
...
open file descriptors; found by tim robbins from freebsd
2003-11-30 18:16:45 +00:00
yamt
c64b77bad6
add definitions of new feature bits.
2003-11-30 14:05:47 +00:00
yamt
b9bb4e3f05
- rename WDC_CAP_LBA48 to ATA_CMD2_LBA48.
...
- remove WDC_CAP_QUEUE. (there's already ATA_CMD2_RWQ.)
as discussed on tech-kern@.
2003-11-30 13:57:12 +00:00
bjh21
a5bcddc85a
Add pcb_onfault handling to address exception handler so users can't crash
...
the kernel by passing ludicrous addresses to system calls.
2003-11-30 13:22:32 +00:00
fvdl
d8ec3cb507
Keep mxcsr and mxcsr_mask across the fake init in process_read_fpregs.
...
From Mark Kettenis.
2003-11-30 12:59:30 +00:00