bouyer
5741c101e5
Clear interrupts at end of attach, in case there is one pending.
...
Avoid "bogus intr" messages when interrupts are enabled later.
Patch tested by myself and Chuck Silvers.
2003-11-15 16:40:46 +00:00
isaki
ae90c838ab
make it compilable even if FDDEBUG was defined.
2003-11-15 15:02:08 +00:00
dsainty
39973c5237
Optimise previous change, using fcntl(F_DUPFD) to locate a free descriptor
...
for us, rather than iterating until satisfied.
Suggested by David Laight.
2003-11-15 14:55:32 +00:00
sekiya
1cc0ebce1f
A few sysinst fixes:
...
* use cd0a rather than cd0[cd] as the CDROM installation device.
This fixes problems with platforms that install from iso9660 images
encapsulated in a partition, and should not affect platforms that
don't.
* add RUN_PROGRESS to the run_prog() flags for ftp installs.
Okay'ed by David Laight.
2003-11-15 12:53:34 +00:00
dsainty
0b16f71074
Avoid corrupting the dd(1) IO streams. This would happen by accidentally
...
outputting to the files being manipulated by opening a file in the standard IO
descriptor space. In particular, an output file unlucky enough to be sitting
on descriptor 2 (stderr) is certain to be corrupted.
Addresses PR bin/8521, and passes the recently committed regression test
"bin/dd".
2003-11-15 12:44:54 +00:00
ragge
ab6a210f76
Use itimerval() instead of alarm() for interval displaying. This increases
...
accuracy on interval stats also on fast machines.
2003-11-15 11:54:34 +00:00
dsainty
4c758a9f41
Descend into bin/dd
2003-11-15 10:50:59 +00:00
dsainty
9adae06087
Regression tests for dd(1). Not currently comprehensive, but tests for the bug reported in PR bin/8521.
2003-11-15 10:48:53 +00:00
sekiya
845cc26789
Add iso-image-md-pre and iso-image-md-post targets. Installation media can
...
now be built with the iso-image target from ${NETBSDSRCDIR}/etc.
2003-11-15 08:58:27 +00:00
jdolecek
67702193cc
explicitly pass MACHINE and MACHINE_ARCH to MAKEDEV.awk via environment,
...
so that this works as expected when not invoked via build.sh
2003-11-15 08:50:26 +00:00
scw
a7533e4cdc
- Add LOCKDEBUG-protected calls to sched_lock_idle() to cpu_switchto and
...
the idle loop. They seem to have gone AWOL sometime in the past.
Fixes port-arm/23390.
- While here, tidy up the idle loop.
- Add a cheap DIAGNOSTIC check for run queue sanity.
2003-11-15 08:44:18 +00:00
petrov
5af3af05f4
Compile GENERIC.MP.
2003-11-15 05:24:51 +00:00
petrov
b1f1e5e073
Add stub for cpu_boot_secondary_processors.
2003-11-15 05:24:03 +00:00
petrov
e6b350b339
Generic SMP configuration.
2003-11-15 04:03:00 +00:00
thorpej
001102c808
Regen: fsync_range(2) system call.
2003-11-15 01:20:48 +00:00
thorpej
857f24339f
Kernel portion of the fsync_range(2) system call. Written by Bill
...
Studenmund, and contributed by Wasabi Systems, Inc.
2003-11-15 01:19:38 +00:00
simonb
bafaeff914
Descend into the randomid directory.
2003-11-14 23:11:20 +00:00
simonb
1fd22c15cc
Add a regression test for randomid(3).
2003-11-14 23:10:48 +00:00
jmcneill
1708376e44
Don't set VR_EECSR_LOAD before reading the MAC address on the VT6102 either.
2003-11-14 22:33:29 +00:00
dsl
eceb7dddfb
Don't create targets if dependant files marked .OPTIONAL are missing.
2003-11-14 22:32:44 +00:00
briggs
dfa839f16b
Make sure that L_SA_PAGEFAULT gets cleared from l_flag if pmap_fault_fixup
...
returns non-zero and we want to shortcut out. This avoids a bogus pagefault
condition being detected in sa_switch().
Many thanks to Christian Limpach for finding this, obviating my band-aid
patch to kern_sa.c (posted on tech-kern).
2003-11-14 21:22:08 +00:00
dsl
296844fe72
Posix requires that 'pwd -P' reset the shells saved cwd value - so a
...
subsequent 'pwd -L' will report the same value.
Update man page to be a closer match to reality.
2003-11-14 20:00:28 +00:00
matt
4e90dd053f
Add kcore and netbsd thread support.
2003-11-14 19:10:00 +00:00
matt
8056b67d49
Add kcore & netbsd thread support
2003-11-14 19:08:49 +00:00
scw
4eeb1be7e4
Check alignment of the fault PC before de-referencing it.
...
Give the process a Illegal Instruction fault if the PC is misaligned.
2003-11-14 19:03:17 +00:00
scw
a590a31135
- In data_abort_handler(), move the fault pc alignment check to before
...
the call to data_abort_fixup() as the fixup routines also try to
de-reference the fault pc.
- If a fault came from kernel mode, and the fault address looks to be in
the kernel's address space, and pcb_onfault is *set*, check the
instruction which caused the fault. If it's LDR{B,}T or STR{B,}T
then one of the copy in/out routines is trying to read/write a
kernel address with the wrong privilege. If that address is actually
mapped, we could end up in an infinite loop because we failed to
notice that it's really a 'user mode' access. Yay for "crashme".
I suspect this also fixes PR port-arm/23052.
Note: This *could* be fixed by adding sanity checks to copyin et al,
but that would add extra overhead to the non-error path...
- Fix a couple of __predict_false cases.
2003-11-14 19:00:03 +00:00
christos
f306da6419
no more frame.h
2003-11-14 17:45:06 +00:00
christos
b7fd779233
We really don't want frame.h...
2003-11-14 17:44:05 +00:00
keihan
baf3076a37
netbsd.org -> NetBSD.org.
2003-11-14 17:18:18 +00:00
scw
571f89c4ad
Slight re-org of the alignment/ast exit macro to better mimic the
...
original behaviour WRT cpsr/I32_bit handling.
2003-11-14 16:57:28 +00:00
tsutsui
b2fe3a3641
- define LIBSA_USE_MEMCPY and LIBSA_USE_MEMSET
...
- set WARNS?=1
2003-11-14 16:53:37 +00:00
tsutsui
212f884f43
Misc cleanup:
...
- KNF
- WARNSfy
- remove __P()
- remove register declarations
- const'ify some variables
- make some local functions/variables static
- bcopy -> memcpy
- bcmp -> memcmp
- bzero -> memset
- space/TAB fix
etc.
2003-11-14 16:52:40 +00:00
keihan
f73b119e04
s/modifed/modified/
...
And while here...
s/NetBSD.ORG/NetBSD.org/
2003-11-14 16:43:57 +00:00
briggs
5e0fd052da
Fix from Ian Lance Taylor to allow building a cross-gdb with arm--netbsdelf
...
target. Patch as seen on tech-toolchain@.
2003-11-14 15:06:15 +00:00
itojun
4b26585bd4
s/in_ifaddr/in_ifaddrhead/. not really tested
2003-11-14 15:04:48 +00:00
christos
6d0baf7772
Remove <frame.h>
2003-11-14 14:13:31 +00:00
tsutsui
306f405de0
Use "" rather than '\0' for null string.
2003-11-14 13:08:45 +00:00
lukem
1710dac7b6
tweak usage message.
...
when performing "sets", highlight that DESTDIR should be
pre-populated. suggested by glen mccready.
2003-11-14 12:38:12 +00:00
lukem
6b429c1c8a
Disable hp300 support (again).
...
This code is not to be reenabled again until it is fixed to my satisfaction
(as a member of core and the person who ends up dealing with most of
the host tool build bugs)
2003-11-14 12:08:59 +00:00
lukem
91441af9b4
Revert previous; it is not the correct solution to the problem of
...
the host tool build in usr.sbin/installboot.
2003-11-14 12:07:42 +00:00
tsutsui
6a20c93bb1
Revert part of previous NULL -> '\0' changes, where actually NULL is required.
2003-11-14 11:39:49 +00:00
dsl
c0cf1d6b30
This seems to need stdlib.h to get a prototype for abort().
2003-11-14 10:46:13 +00:00
dsl
edecd89511
Add '\n' to "fork failed" trace messages.
2003-11-14 10:27:10 +00:00
dsl
438ae29810
Remove the .if !target(dependall) so that 'make dependall' works (again)
...
for the kernel.
2003-11-14 08:33:36 +00:00
dsl
ea669558c6
Only include machine/disklabel.h if MAXPARTITIONS is undefined.
...
With care should allow sys/disklabel.h to be used in MI/host code.
2003-11-14 08:03:16 +00:00
jonathan
ae4accd0de
Use ip_randomid(), dependent on either __NetBSD__ preprocessor
...
token or FreeBSD RANDOM_IP_ID config option.
2003-11-14 07:15:28 +00:00
jonathan
a03a5696d5
include <sys/mbuf.h> before FAST_IPSEC-dependent headers.
2003-11-14 07:13:25 +00:00
matt
9ada790a26
s/awk/${AWK}
2003-11-14 06:00:34 +00:00
matt
fefcf7d025
s/awk/${AWK}/
2003-11-14 05:25:59 +00:00
matt
ac869c13c5
Add a AWK for awk.
2003-11-14 05:22:02 +00:00