168607 Commits

Author SHA1 Message Date
christos
8f949a45b8 undo previous 2008-03-28 21:18:24 +00:00
christos
6bb1f8cf94 Not the right way to fix this. 2008-03-28 21:17:37 +00:00
plunky
5281276341 Use deviter API to search for child devices.
As all identifying information is stored in the device
properties, this removes the need for child devices to
have a reserved area (struct btdev) in the softc, and
bthub(4) does no longer need to have a softc at all.
2008-03-28 21:17:36 +00:00
ad
03489e636c sleepq_block: use callout_halt, as we have to wait for the callout to
stop (it might be running on another CPU). Otherwise, 'curlwp' could
exit before it completes.
2008-03-28 20:48:36 +00:00
ad
e1fe405771 Add a test for callout_halt (and incidentally, fast softints). 2008-03-28 20:44:57 +00:00
ad
c3338aabf1 Enable blocking synchronization for callouts as discussed at length on
tech-kern last year. Instead of modifying callout_stop, add a new
routine (callout_halt) which will sleep if the callout is already in
flight. Note that if a callout can take locks, the caller of callout_halt
must not hold any of those locks - otherwise the two could deadlock.
2008-03-28 20:44:38 +00:00
ad
7b5d104e8d Make these compile again. 2008-03-28 20:28:27 +00:00
manu
fe6642740b Still from Cyrus Rahman: fix file descriptor leak introduced by previous
commit.
2008-03-28 20:28:14 +00:00
tsutsui
03bb6cc822 Split device_t and softc for MI mk48txx(4) and intersil7170(4) clocks,
and other related misc cosmetics.
2008-03-28 20:26:12 +00:00
tsutsui
048fb884fc Split device_t and softc for MI mc146818 clock,
and other related misc cosmetics.
2008-03-28 19:05:49 +00:00
martin
65c31645cb Now that we have per-cpu-contexts, checking the context on the local cpu
to find out if a pmap is on some mmu does not realy work any more.
2008-03-28 18:22:59 +00:00
tsutsui
820a544d88 Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*(). 2008-03-28 18:19:56 +00:00
he
2d72e9e39b Note the build hack for racoon's privsep.c. 2008-03-28 18:14:23 +00:00
he
25a92e43c5 Because privsep.c uses CMSG_SPACE() to size two local arrays, these
ends up as c99 variable-sized local arrays (CMSG_SPACE() uses a function
as part of calculating its result).  This causes the stack protection
code in the compiler to complain, so build this one with -fno-stack-protector
to avoid the problem.

Gets us back to buildability for this program for a number of our ports.
2008-03-28 18:10:53 +00:00
christos
56fd57d26f detect more errors from printf/malloc. 2008-03-28 18:05:39 +00:00
tsutsui
c93c4b87ff Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_normal(9). 2008-03-28 17:51:51 +00:00
drochner
fd0ded75ed split device/softc for USB host controllers and the usb (control)
device,
this is hairy stuff, and I've only tested with uhci/ehci at pci,
please test the rest and report problems
2008-03-28 17:14:45 +00:00
drochner
8e182b07db remove FreeBSD/OpenBSD sections, cross-platform support hasn't been
maintained for a while
2008-03-28 17:10:30 +00:00
tsutsui
71fd55d0c3 Enable warning options. 2008-03-28 16:41:37 +00:00
tsutsui
74d089c227 Adjust boot device detection code to make netboot work properly:
- make a bootloader pass bootpath which includes device path on ARC BIOS
  via BTINFO_BOOTPATH
- make a kernel use BTINFO_BOOTPATH in bootinfo to see boot device first,
  then check argv[0] passed from ARC BIOS if there is no valid bootinfo
- check OSLoadPartition variables in the ARCBIOS environment and whole
  argv[] arguments for IP12
- initialize mach_type before it's referred
- bump boot version

Tested on IP32 with various kernel/bootloader combinations.
2008-03-28 16:40:25 +00:00
ad
13c3856c4c Remove dead code from previous. 2008-03-28 16:23:39 +00:00
martin
e4eb0bc72d Use the passed cpu info for returning the frequency, not the current
cpu
2008-03-28 15:39:31 +00:00
xtraeme
2f62d4cb29 hpet can be attached to ichlpcib, mention that in SYNOPSIS. 2008-03-28 15:00:29 +00:00
he
d7ce7c850c Make racoonctl build again, sockmisc.c needs -DNOUSE_PRIVSEP in order
to not pull in all the rest of the racoon/ipsec code.
2008-03-28 14:37:08 +00:00
yamt
24840272de whitespace. 2008-03-28 14:29:57 +00:00
ad
4bd84ff96a Prevent overlapping calls to bind() and/or connect() on a Unix socket. 2008-03-28 12:14:22 +00:00
ad
c2f3592995 Prevent listen() on a socket that is already connected - we already prevent
connect() on a listening socket.
2008-03-28 12:12:20 +00:00
kiyohara
c65c7603a1 The status buffer must synchronize. If your CPU is cache writeback,
synchronous processing is necessary.  However, the size of a status
buffer will overwrite the memory while synchronously processing it
because it is very small.  We clear the flag SK_Y2_STOPC_OWN at more
late.
2008-03-28 08:46:01 +00:00
kiyohara
2b2915bee1 Fix ugly format in aprint_normal{,_dev}. 2008-03-28 08:35:44 +00:00
dholland
f47dfee9a0 Correct documentation of default value of FILESMODE.
PR bin/38059 from Aleksey Cheusov.
2008-03-28 06:04:40 +00:00
lukem
c63660b4d2 Fix fat-finger in previous.
Use "e.g.," instead of "E.g.,".
Noted by Geoff Wing.
2008-03-28 05:47:27 +00:00
dholland
000424deb2 Assorted updates and clarifications, grammar fixes and wording improvements,
and so on. Significant highlights:
   - mention src/tests and reference atf;
   - provide examples of MACHINE and MACHINE_ARCH;
   - mention that MKOBJ=no is not recommended;
   - correct the description of the default setting of USETOOLS;
   - document the interactions of build.sh -[uo] with various things;
   - document the interactions of build.sh tools and kernel=FOO;
   - use a lot fewer parentheses.
Discussed on netbsd-docs.
2008-03-28 05:23:44 +00:00
dholland
d868f7242f Yet another rename workaround - this time check for . and .. early because
relookup() objects to being asked to handle them.
2008-03-28 05:02:08 +00:00
dholland
fc5b5e6ac9 The phase of the build that -u prevents is "make cleandir", not merely
"make clean"; adjust build.sh's usage message to reflect this.
2008-03-28 04:24:18 +00:00
manu
1d223a6207 From Cyrus Rahman: Allow interface reconfiguration when running in privilege separation mode, document privilege separation 2008-03-28 04:18:52 +00:00
manu
182dbe8881 From Cyrus Rahman <crahman@gmail.com>
Allow interface reconfiguration when running in privilege separation mode,
document privilege separation
2008-03-28 04:18:51 +00:00
kiyohara
b5ce3aaf20 Split device_t/softc. 2008-03-28 02:40:19 +00:00
uwe
5f35af71bf aprint_naive("\n"); 2008-03-28 01:37:25 +00:00
lukem
c4851a8c8e Do not mark "old" major and major.minor shared libraries as
"obsolete"; just remove the entry, as third-party applications
may be linked against the old major shared library, and
that is a symlink to the old major.minor shared library.
E.g., "lib<name>.so.<N>" and "lib<name>.so.<N>.<M>"
Exceptions to this rule may include shared libraries that
are dlopen()ed at run-time, such as extra locales, etc.
2008-03-28 01:22:44 +00:00
uwe
fd8017cbe4 Use aprint_*. 2008-03-28 01:19:12 +00:00
he
c2dbd6e374 Make this build again. 2008-03-28 00:56:54 +00:00
he
4f00010385 Remove <m68k/saframe.h> here as well, patterned after hp300. 2008-03-28 00:35:04 +00:00
uwe
43e743115c Split device_t and softc. 2008-03-28 00:13:15 +00:00
uwe
9694bbc3bd Convert to use CFATTACH_DECL_NEW (no softc). 2008-03-27 23:57:58 +00:00
uwe
e6030fb8a9 Split device_t and softc. 2008-03-27 23:57:21 +00:00
uwe
99111ebac3 Convert to use CFATTACH_DECL_NEW (no softc). 2008-03-27 23:42:34 +00:00
lukem
978f5e87de Remove all entries for obsolete major shlibs ("lib<name>.so.<N>");
third-party applications may be linked against them.
2008-03-27 23:16:33 +00:00
mlelstv
2d66ab6e51 kerberos includes are installed in krb5 subdirectory 2008-03-27 22:01:56 +00:00
christos
23b2e3cd80 Fix another integer overflow issue discovered by Maksymilian Arciemowicz.
On top of this, limit the range of getnumber to 0x00ffffff to make sure
that adding two of them does not cause an integer overflow.
2008-03-27 21:50:30 +00:00
mlelstv
930dfcfc6c The previous versions of kdc got different levels of patches
to make them work like a standard detaching daemon. Now keep
the original and just supply the "work as a daemon" command line
option as a default.
2008-03-27 21:42:22 +00:00