Commit Graph

164849 Commits

Author SHA1 Message Date
ad
5b42fe1209 KM_NOSLEEP -> KM_SLEEP for clarity. 2007-12-21 12:05:39 +00:00
ad
6ef6e00632 KM_NOSLEEP -> KM_SLEEP 2007-12-21 12:04:19 +00:00
ad
7162fade9b Use new style memory barriers. 2007-12-21 10:40:12 +00:00
dyoung
041c1b3f89 Get rid of sc_suspended, it is redundant because the device_t
contains the same state.
2007-12-21 07:31:44 +00:00
dogcow
a9d4845398 It doesn't seem worth it to keep pathnames.h around (especially when it has
non-static data)
2007-12-21 06:46:31 +00:00
yamt
c7bc0cd0aa don't cast 64bit values to u_long. 2007-12-21 06:43:26 +00:00
simonb
75727a9ea5 Fix some whitespace nits. 2007-12-21 06:25:19 +00:00
dogcow
001d16ba01 newsyslog.conf flag 'J' will bzip2 logfiles. 2007-12-21 05:45:13 +00:00
dogcow
37f3200b59 add new flag to newsyslog(5): J to bzip2 files.
There are no longer any hardcoded gzip-specific args, yay.
And while I was at it, compiles with -Wsigned, too.
2007-12-21 05:40:59 +00:00
macallan
48d017a9d1 only enable the fb mapping at offset 0 after attempting to mmap page 0
This way we avoid a conflict with PCI resources on some Sun graphics cards
which have firmware that likes to put memory resources at low addresses.
For instance, if we have 1MB framebuffer and registers at 0x30000 we'll
get the registers when mmap()ing 0x30000 until someone tries to mmap(0),
then we'll get framebuffer memory for the entire 1st MB.
This needs an ioctl() to switch between fb-at-0 and PCI ranges.
2007-12-21 05:32:09 +00:00
dyoung
833d439935 Get the rtentry from forwro in one less step. 2007-12-21 02:46:37 +00:00
matt
39a278be7e Make this compile again. 2007-12-21 02:27:57 +00:00
matt
15c4637507 Add fix for ip_id information leakage. Since the leakage information is
primarily used with TCP SYN and RST packets and such packets are less than
the smallest sized packet that an IP stack is allowed to fragment, we simply
set ip_id to 0 for all packets 68 bytes or less.
2007-12-21 02:07:54 +00:00
dyoung
d8654d5866 Bump __NetBSD_Version__ for ifnet changes. 2007-12-21 02:01:52 +00:00
xtraeme
8870106a7d Do not append the device name into the sensor's description, that's
useless and redundant.
2007-12-21 01:23:41 +00:00
xtraeme
314d6f22a8 cpuN -> coreN 2007-12-21 01:16:30 +00:00
xtraeme
6f9427240c Change the description to 'coreN' rather than 'cpuN', which seems to
be more correct.
2007-12-21 01:10:54 +00:00
tnn
e9e5abe68c fix typo in comment 2007-12-21 01:03:58 +00:00
ad
9aef0fdbce Specify PR_LARGECACHE for anon_cache (which is insanely busy). 2007-12-20 23:50:00 +00:00
ad
73157b0e11 - Support two different sizes of pool_cache group. The default has 14 or 15
items, and the new large groups (for busy caches) have 62 or 63 items.
- Add PR_LARGECACHE flag as a hint that a pool_cache should use large groups.
  This should be eventually be tuned at runtime.
- Report group size for vmstat -C.
2007-12-20 23:49:10 +00:00
ad
e16a661bf3 - Make __cpu_simple_lock and similar real functions and patch at runtime.
- Remove old x86 atomic ops.
- Drop text alignment back to 16 on i386 (really, this time).
- Minor cleanup.
2007-12-20 23:46:10 +00:00
ad
f28895c808 Remove GENERIC.MP config and enable SMP by default on amd64. 2007-12-20 23:32:24 +00:00
xtraeme
b59ab94c46 - Use intel_family_new_probe() for CPUCLASS_686/family 6, so that we can
show 'features3' in the Core 2 Duo CPUs.
- Use __arraycount() in two lines.

Ok by ad@ (the new x86 portmaster).
2007-12-20 23:28:08 +00:00
agc
7683937c60 Peter Eisch: CentOS lacks strlcat(3), so use snprintf(3) to crack the
nut.
2007-12-20 23:17:05 +00:00
dsl
9b6e62c6a8 Reinstate some code I commented out. 2007-12-20 23:16:13 +00:00
dsl
6fb2884c3a regen 2007-12-20 23:07:25 +00:00
dsl
7e2790cf6f Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
2007-12-20 23:02:38 +00:00
garbled
e7da798e38 Add bebox mkbootimage stuff to the unified mkbootimage. It should work
in theory, assuming:

a) I didn't mess up
b) The original code in bebox/stand actually works
2007-12-20 22:59:59 +00:00
phx
d2a9b2ff83 VT8231 IDE workaround for native mode with "compatibility" interrupts 14/15.
This time done right by calling pciide_machdep_compat_intr_establish() to
get a MD interrupt handler.
Verified that it compiles for XEN again.
2007-12-20 22:24:40 +00:00
dsl
0acba075bd Kill syscall fancy.
Optimise matching native code.
2007-12-20 22:16:50 +00:00
ad
8134491688 Use new style memory barriers. 2007-12-20 21:09:00 +00:00
dyoung
6f3852fab4 Constify struct ifnet->if_sadl and every use throughout the tree.
Add if_set_sadl() that both sets the link-layer address length and
replaces the current link-layer address with a new one, and use it
throughout the tree.
2007-12-20 21:08:17 +00:00
dyoung
d0630858ad Add IEEE80211_NODE_UNLOCK() to match the IEEE80211_NODE_LOCK() . 2007-12-20 20:56:18 +00:00
dyoung
9f5c1f09f7 Use LIST_FOREACH(). 2007-12-20 20:48:24 +00:00
dyoung
396e67c2e6 Add definitions for several more registers on the AMD Elan SC520
System Controller.
2007-12-20 20:44:58 +00:00
christos
14002ac9c8 make sup-0.2 2007-12-20 20:25:08 +00:00
martin
7080c9db1e A few missing ifdefs to make non-INET6 kernels build again. 2007-12-20 20:24:49 +00:00
skrll
f4ce2b2831 Fix typo that broke bt /a with curlwp 2007-12-20 20:24:47 +00:00
christos
8f6e6d108f include libc.h and c.h after all the headers, so that __unused is not defined
until the headers have been included.
2007-12-20 20:17:52 +00:00
christos
fc5737cefd use setproctitle, so that we know which host we are serving. 2007-12-20 20:17:15 +00:00
christos
3791e7cc61 - add setproctitle
- add commented out DEFS for the layout I use.
2007-12-20 20:16:34 +00:00
christos
d5abced1d5 If the filesystem where the scan file resides got full while the scanner is
running, you can end up with an incomplete scan file because there was no
error checking done. Then sup will happily delete all the files that are
missing from the scan file. Make sure we have written a good scan file before
renaming.
2007-12-20 20:15:59 +00:00
christos
55dfe21e44 more EE_XXX stuff for different layout. 2007-12-20 20:14:24 +00:00
christos
92376661d1 __unused for those who don't have it [linux] 2007-12-20 20:12:12 +00:00
pooka
ce8249d73f Don't allocate DEV_BSIZE from the stack, use kmem instead. 2007-12-20 20:12:01 +00:00
christos
6ec6ec5548 setproctitle for those who don't have it [linux] 2007-12-20 20:11:24 +00:00
ad
4f4f294aa3 Decode cmpxchg8b correctly. 2007-12-20 19:53:47 +00:00
dyoung
72fa642a86 Poison struct route->ro_rt uses in the kernel by changing the name
to _ro_rt.  Use rtcache_getrt() to access a route cache's struct
rtentry *.

Introduce struct ifnet->if_dl that always points at the interface
identifier/link-layer address.  Make code that treated the first
ifaddr on struct ifnet->if_addrlist as the interface address use
if_dl, instead.

Remove stale debugging code from net/route.c.  Move the rtflush()
code into rtcache_clear() and delete rtflush().  Delete rtalloc(),
because nothing uses it any more.

Make ND6_HINT an inline, lowercase subroutine, nd6_hint.

I've done my best to convert IP Filter, the ISO stack, and the
AppleTalk stack to rtcache_getrt().  They compile, but I have not
tested them.  I have given the changes to PF, GRE, IPv4 and IPv6
stacks a lot of exercise.
2007-12-20 19:53:29 +00:00
dyoung
241d11997f Remove shutdown hooks. Use KASSERT(). 2007-12-20 18:47:23 +00:00
dyoung
f2a1e06d0a Use __arraycount(). 2007-12-20 18:45:32 +00:00