Brooks Davis
0f2f39c865
ifp->if_name can't be null when we just assigned a static string to it.
2003-10-30 23:05:31 +00:00
Sam Leffler
9c63e9dbd7
Overhaul routing table entry cleanup by introducing a new rtexpunge
...
routine that takes a locked routing table reference and removes all
references to the entry in the various data structures. This
eliminates instances of recursive locking and also closes races
where the lock on the entry had to be dropped prior to calling
rtrequest(RTM_DELETE). This also cleans up confusion where the
caller held a reference to an entry that might have been reclaimed
(and in some cases used that reference).
Supported by: FreeBSD Foundation
2003-10-30 23:02:51 +00:00
Brooks Davis
52820ec247
style: strcmp() does not return a bool.
2003-10-30 23:00:15 +00:00
Peter Wemm
482e283b1e
Use -D to rename the log() function (extensively used) rather than
...
using the gcc-specific -fno-builtin-log switch.
2003-10-30 22:59:41 +00:00
Peter Wemm
c903443a2c
Rename the 'log' variable rather than -fno-builtin-log
2003-10-30 22:57:43 +00:00
Peter Wemm
e2c617744f
Rather than use the gcc -fno-builtin-log flag, just rename the 'int log'
...
variable.
2003-10-30 22:56:44 +00:00
Sam Leffler
457fc53d28
use a local variable to avoid holding a lock across a call out of view
...
Supported by: FreeBSD Foundation
2003-10-30 22:56:13 +00:00
Peter Wemm
4a4c2efa6a
Replace -fno-builtin-logf with a -D argument to change the function name.
2003-10-30 22:53:56 +00:00
Peter Wemm
d49aa1354b
Change the pmap_invalidate_xxx() functions so they test against
...
pmap == kernel_pmap rather than pmap->pm_active == -1. gcc's inliner
can remove more code that way. Only kernel_pmap has a pm_active of -1.
2003-10-30 22:15:22 +00:00
John Baldwin
555639e062
Fixup the sorting of some of the options. DISABLE_P* are still out of
...
order to keep all of the opt_pmap.h options together.
2003-10-30 21:45:34 +00:00
John Baldwin
e57ea233d9
Ensure that mp_ncpus is set to 1 if mp_cpu_probe() fails.
2003-10-30 21:44:01 +00:00
John Baldwin
1ab9ea3059
Include "opt_pmap.h" so that the DISABLE_P* options are honored.
2003-10-30 21:42:44 +00:00
John Baldwin
63239aa581
Always export r_gdt and r_idt and give them extern declarations in
...
machine/segments.h.
2003-10-30 21:42:17 +00:00
Max Khon
c4a13d2d78
Remove /usr/libdata/msdosfs description.
...
Noticed by: ru
2003-10-30 21:25:37 +00:00
Brooks Davis
c020a92f9f
There is no way to enter the attach routine twice with the same softc
...
without a detach call in between so don't try to deal with that
possiability.
This is a diff-reduction commit for the upcoming if_xname conversion.
2003-10-30 19:45:58 +00:00
Peter Wemm
fbd00896e2
MFi386: thread specific fpu state optimizations
2003-10-30 19:04:58 +00:00
Hajimu UMEMOTO
349b668aab
- unlock on error.
...
- don't call malloc with M_WAITOK within lock context.
2003-10-30 18:42:25 +00:00
Hajimu UMEMOTO
2fa02b748e
install address selection policy into kernel when there is
...
/etc/ip6addrctl.conf.
following sample of ip6addrctl.conf is a good default:
#Prefix Precedence Label
::1/128 50 0
::/0 40 1
2002::/16 30 2
::/96 20 3
::ffff:0:0/96 10 4
2003-10-30 17:55:52 +00:00
Hajimu UMEMOTO
f71d0e1192
add ip6addrctl(8) which is a command to configure address
...
selection policy for IPv6 and IPv4 described in RFC3484.
source address selection part of RFC3484 is not merged
from KAME, yet.
Obtained from: KAME
2003-10-30 17:46:40 +00:00
Hajimu UMEMOTO
4c6867a867
add destination address selection described in RFC3484.
...
in KAME implementation, even when no policy is installed
into kernel, getaddrinfo(3) sorts addresses. Since it
causes POLA violation, I modified to don't sort addresses
when no policy is installed into kernel,
Obtained from: KAME
2003-10-30 17:36:53 +00:00
Mitsuru IWASAKI
edc4d47f55
Cosmetic fix on some TIME related columns.
2003-10-30 16:52:14 +00:00
Alexander Kabaev
0823d2996c
Relock mntvnode_mtx if vget fails in vfs_stdsync. The loop is
...
always shoould entered with mutex locked.
2003-10-30 16:22:51 +00:00
Hartmut Brandt
cc3f6cb9fd
Explain why the lock-free allocation algorithm is safe in our case
...
while beeing not safe in the general case. Thanks to David Schultz
<das@freebsd.org> for help.
2003-10-30 16:19:50 +00:00
Mitsuru IWASAKI
fbbdf7c7d2
Add sysctl MIB and loader tunable `hw.acpi.no_reset_video' as
...
the same effect as ACPI_NO_RESET_VIDEO kernel option.
2003-10-30 16:14:55 +00:00
Hajimu UMEMOTO
7fc91b3f1d
add management part of address selection policy described in
...
RFC3484.
Obtained from: KAME
2003-10-30 15:29:17 +00:00
Hartmut Brandt
7ff34dc884
Use (char *)NULL to terminated to argument list for execl().
...
Without this cast the compiler cannot know that it has to convert
the null pointer constant NULL to a null pointer.
2003-10-30 15:14:34 +00:00
Hartmut Brandt
14ecc3c0f0
Use (char *)NULL to terminate the argument list for execlp().
...
Without this cast the compiler cannot know that it has to convert the
null pointer constant NULL to a null pointer.
2003-10-30 15:04:37 +00:00
Søren Schmidt
f969ea6912
Add support for the VIA 8237 (both PATA and SATA part).
...
Cleanup the SATA support a bit now we are here anyways.
2003-10-30 13:16:21 +00:00
Poul-Henning Kamp
b778a32374
Add '#' to the characters VIS_GLOB encodes. This fixes a bug in mtree.
2003-10-30 12:41:50 +00:00
Poul-Henning Kamp
b585dc87cc
Update test-case to also fail on filenames containing '#'
2003-10-30 12:40:54 +00:00
Tim J. Robbins
e4b4ed071b
Remove MD bits for unsupported architectures.
2003-10-30 12:21:31 +00:00
Poul-Henning Kamp
5d9f6ca65c
Use vis(3) to encode/decode the target for symlinks.
...
Make vis(3) decode errors fatal for both symlink targets and fienames.
2003-10-30 12:03:25 +00:00
Poul-Henning Kamp
13b31fb0d8
Add another test-script for mtree(8): Check symlinks with space in them.
2003-10-30 12:01:32 +00:00
Tim J. Robbins
33c50f26da
Add regression tests for sgetrune() and sputrune().
2003-10-30 11:51:36 +00:00
Poul-Henning Kamp
d474d12b52
Fix bug in mtree(8)'s create mode where files or directories with had
...
names containing glob(3) expressions would appear verbatim in the
output.
If such an mtree file were used by mtree in update mode, wrong things
would happen.
2003-10-30 10:48:43 +00:00
Poul-Henning Kamp
92817d311f
Add a test script which Mtree fails.
2003-10-30 10:46:23 +00:00
Hartmut Brandt
62b93d9b12
Reinvent the used-flag for external mbufs. This and the on-card flag
...
are now in the header of the external buffer itself which allows us
to manipulate them in the free routine without having to lock the softc
structure or the free list. To get space for these flags the chunk number
is reduced to 8 bit which amounts to a maximum of 256 chunks per allocated
page. This restriction is now enforced by a CTASSERT.
2003-10-30 10:43:52 +00:00
Poul-Henning Kamp
347fb1d46e
Add a new flag to vis(3): VIS_GLOB which encodes the glob(3) magic
...
characters '*', '?' and '['.
2003-10-30 10:40:49 +00:00
Alan Cox
7645e88596
- Synchronize access to the swdevt's sw_blist with sw_dev_mtx.
...
- Remove several instances of GIANT_REQUIRED.
2003-10-30 09:12:43 +00:00
Tom Rhodes
565e3e6567
In check.c:
...
Avoid shadowing declarations.
Avoid compairing signed and unsigned types.
2003-10-30 09:08:09 +00:00
Alan Cox
d05bc12976
- Synchronize access to swdevhd using sw_dev_mtx.
...
- Use swp_sizecheck() rather than assignment to swap_pager_full in
swaponsomething().
2003-10-30 07:11:06 +00:00
Tom Rhodes
654c287479
Remove a few unused variables.
2003-10-30 05:43:56 +00:00
Peter Wemm
3f378ea44a
MFi386: rev 1.451 (jhb): call pmap_kremove() rather than duplicate it
2003-10-30 04:08:22 +00:00
Peter Wemm
10d9b64384
MFi386: trap.c rev 1.259: fetch thread mailbox address in page fault trap
2003-10-30 04:06:28 +00:00
David Xu
7eeaaf9b97
Try to fetch thread mailbox address in page fault trap, so when thread
...
blocks in page fault hanlder, and upcall thread can be scheduled. It is
useful if process is doing lots of mmap based I/O.
2003-10-30 02:55:43 +00:00
Peter Wemm
40bb965382
Oops, forgot to save these in the editor. Add CTASSERTS for signal and
...
context related things.
2003-10-30 02:43:19 +00:00
Peter Wemm
60a8c422cd
Add CTASSERT()'s to check that the sizes of our replicas of the 32 bit
...
structures come out the right size.
Fix the ones that broke. stat32 had some missing fields from the end
and statfs32 was broken due to the strange definition of MNAMELEN
(which is dependent on sizeof(long))
I'm not sure if this fixes any actual problems or not.
2003-10-30 02:40:30 +00:00
Sam Leffler
319de71e19
avoid recursive lock panic by unlocking before calling rtrequest;
...
this is consistent with other places but will be replaced
shortly by a "proper fix"
Supported by: FreeBSD Foundation
Pain felt by: Jiri Mikulas
2003-10-29 23:01:37 +00:00
Sam Leffler
2657cae39a
correct LOR by using a local variable to hold result
...
instead of holding a lock while calling out of view
Supported by: FreeBSD Foundation
2003-10-29 22:59:12 +00:00
Daniel Eischen
ec49974ac2
Don't attempt to destroy the driver mutex when it hasn't yet
...
been created. This has been sitting in my local tree for
far too long; I can't believe noone else has come across this
yet.
2003-10-29 21:54:37 +00:00