Commit Graph

151927 Commits

Author SHA1 Message Date
plunky
c2f3e8c67b Override the lex rules after <bsd.prog.mk> to prevent the reachover build
from trying to build arlex.c in a readonly filesystem
2006-10-05 20:40:12 +00:00
christos
d1c132b639 add disklabel_gpt.h 2006-10-05 18:17:04 +00:00
christos
be6f616394 Install disklabel_gpt.h needed by the gpt partitioning tool (which is coming
soon)
2006-10-05 18:14:11 +00:00
oster
2992626c96 Revert previous change: Remove an unused variable declaration that was
(likely accidentally) added as the only change in the last commit.
2006-10-05 17:59:36 +00:00
tls
8cc016b4bc Protect calls to pool_put/pool_get that may occur in interrupt context
with spl used to protect other allocations and frees, or datastructure
element insertion and removal, in adjacent code.

It is almost unquestionably the case that some of the spl()/splx() calls
added here are superfluous, but it really seems wrong to see:

	s=splfoo();
	/* frob data structure */
	splx(s);
	pool_put(x);

and if we think we need to protect the first operation, then it is hard
to see why we should not think we need to protect the next.  "Better
safe than sorry".

It is also almost unquestionably the case that I missed some pool
gets/puts from interrupt context with my strategy for finding these
calls; use of PR_NOWAIT is a strong hint that a pool may be used from
interrupt context but many callers in the kernel pass a "can wait/can't
wait" flag down such that my searches might not have found them.  One
notable area that needs to be looked at is pf.

See also:

http://mail-index.netbsd.org/tech-kern/2006/07/19/0003.html
http://mail-index.netbsd.org/tech-kern/2006/07/19/0009.html
2006-10-05 17:35:19 +00:00
he
47f7700709 We now need <sys/param.h> to bring roundup() into scope. 2006-10-05 16:25:38 +00:00
chs
768e5cc89e in cpu_reboot(), only halt the other CPUs after we've done the powerdown stuff.
the ACPI code may end up removing some pmap entries, which wants the other
CPUs to still be running to handle TLB invalidations.
2006-10-05 15:10:31 +00:00
tsutsui
95f15ab375 Note sun3 MI softintr(9). 2006-10-05 14:58:41 +00:00
chs
33c1fd1917 add support for O_DIRECT (I/O directly to application memory,
bypassing any kernel caching for file data).
2006-10-05 14:48:32 +00:00
tsutsui
0b2c7040b5 Make sun3 use common sun68k/sun68k/isr.c, sun68k/include/cpu.h and
sun68k/include/intr.h.

This also means now sun3 has GENERIC_SOFT_INTERRUPTS support,
so also adapt fd.c and zs.c to MI softintr(9) APIs.

(I'll also update related sources in yamt-splraiseipl branch later)
2006-10-05 14:46:11 +00:00
tsutsui
f2ea89d23a Minor cleanups before isr.c merge with sun3:
- include <m68k/cpu.h> rather than <m68k/m68k.h> in <sun68k/cpu.h>
- wrap M68K_VAC definition with #ifndef _SUN3X_ in <sun68k/cpu.h>
- move setsoftnet() macro from <sun68k/cpu.h> to <sun68k/intr.h>
- move declarations for isr_soft_request() and isr_soft_clear() from
  sun2/include/intr.h to <sun68k/intr.h>
- remove extern keyword from function declarations
2006-10-05 14:24:09 +00:00
tsutsui
956c3ee3f1 Remove incorrect comment. 2006-10-05 14:12:36 +00:00
tsutsui
861b9568df Don't call wdc_init_shadow_regs() before struct ata_channel is
properly initilized in wdc_obio_attach().
Fixes NULL pointer deref during boot.
2006-10-05 09:34:52 +00:00
tron
886853e55b Ensure alignment of the structure used for RPC requests. This stop
"ypbind" from segfaulting under NetBSD-sparc64 when "ypwhich" is
used to display the current NIS server.
2006-10-05 09:18:11 +00:00
jnemeth
eae4b7db79 more typos and spacing 2006-10-05 08:24:32 +00:00
skrll
3974fd04a1 Remove an unnecessary goto 2006-10-05 07:04:31 +00:00
skrll
7b79ef2734 typo 2006-10-05 07:02:21 +00:00
jnemeth
89484508a4 PR/34712 -- Kibum Han -- remove mention of MKSENDMAIL as sendmail is no longer 2006-10-05 02:49:06 +00:00
bjh21
1bef3c4ceb Use top-down VM on acorn26 and increase the maximum data size to take
advantage of this.  I can run GCC on my A540 now.
2006-10-05 00:25:50 +00:00
dogcow
52ba9f7bb5 add braces for if-else statement, in the event that DPRINTF is an
empty statement; shuts gcc up about 'empty statement in if-else'.
2006-10-04 23:55:22 +00:00
bjh21
578a81db96 Timecounter support for acorn26, using IOC timer 0 and a bit of trickery. 2006-10-04 23:40:00 +00:00
dogcow
aaaf91526d add braces for if-else statement, in the event that SCHED_ASSERT_LOCKED is an
empty statement; shuts gcc up about 'empty statement in if-else'.
2006-10-04 23:10:42 +00:00
dogcow
b7a0575ffb add missing initializer element 2006-10-04 22:44:50 +00:00
apb
4ba048923b Nitpicking. You won't see a difference in the text output, but there is
a difference in the postscript output.
2006-10-04 22:28:24 +00:00
salo
0c26015e92 Fix ypo. (hi abs!)
Noticed at #NetBSD-code.
2006-10-04 22:27:21 +00:00
cube
11b4b910d2 Make pn_family static. 2006-10-04 21:47:56 +00:00
cube
818a5cb153 Re-arrange probing to match the new way. I apologise for forgetting about
the LKM.

While there, rename 'rval' as 'pn_family', and make it a global variable.
The k[78]_powernow_destroy() functions have never been called because of
that...
2006-10-04 21:47:29 +00:00
christos
828820606f lowercase roundup/down 2006-10-04 21:34:15 +00:00
christos
15ccdb2172 don't use home-grown round macros 2006-10-04 21:30:05 +00:00
christos
85c2327ad4 remove home-brewd rounding macros. 2006-10-04 21:27:27 +00:00
christos
cc20633139 don't include <sys/param.h> twice. 2006-10-04 21:23:56 +00:00
oster
75642ab7ae It is not sufficient for MINDEX to just 'return 0' if the MINDEX macro
is going to be used from within m_xhalf() and m_xword().  In using
MINDEX in those cases, we must set *err to '1' *before* calling MINDEX
just in case MINDEX does decide to 'return', and causes the function
to return 0 with an un-set err value.  A consequence of this fix is
that we can cleanup a couple of (now) unneeded goto's.  Problem found
by inspection whilst searching for the cause of a different panic.

Also: pavel@ noted the following:
				if (merr != 0)
 					return 0;
was missing from after a call to m_xhalf(), so fix that too.

src/regress/sys/net/bpf/out-of-bounds now passes the regression test.

Ok'ed by pavel@.
2006-10-04 20:47:43 +00:00
dsl
342d35797b Instead of trying to check the return value of every fprintf() and fputs()
call - which makes the code completely impossibly to follow, call fflush()
and ferror() just prior to calling fclose().
This has the advantage of actually detecting the any write errors, since
the output is block bufferred and will typically not happen during fprintf()
but only during the fclose() - where it is difficult to report.
I also singlilarly refuse to add (void) casts to every printf call in the
system - since it almost never makes any sense to look at the return value
(unless you want to know how many bytes were actually writtem).
2006-10-04 20:34:48 +00:00
bjh21
14d2868d44 The IOC datasheet makes it clear that the period of an IOC counter is
(latch + 1) cycles.  Take this into account when programming the latches.
2006-10-04 20:29:51 +00:00
dogcow
7f1fcf02d3 use rownddown/rowndup in sys/param.h instead of their now-deleted UC equivs
formerly in sys/gmon.h.
2006-10-04 20:22:14 +00:00
bjh21
742da1ffcd Add RCSID(). 2006-10-04 20:14:44 +00:00
wiz
920f5030b8 Bump date for previous. 2006-10-04 19:29:25 +00:00
plunky
c1ad03adbe Internally, use the service name as the identifier for matching 2006-10-04 19:23:59 +00:00
wiz
9cc84bfcb4 Remove unnecessary line. 2006-10-04 17:55:54 +00:00
bouyer
fa40004157 Fix typo, PR port-xen/34713 by César Catrián Carreño 2006-10-04 17:34:40 +00:00
wiz
ec15e07b4a Switch from 4-clause to 2-clause BSD license.
Ok dillo@, board@.
2006-10-04 17:29:42 +00:00
christos
6565c53658 Add -Wextra -Wno-unused for i386. Portmasters, please check your ports
and make sure they compile with these flags.
2006-10-04 16:03:01 +00:00
christos
b64edcaded fix empty if 2006-10-04 15:53:24 +00:00
christos
1f689bbab1 fix empty if. 2006-10-04 15:52:35 +00:00
christos
82e1169df4 fix empty if 2006-10-04 15:49:59 +00:00
christos
12288ce635 Fix empty if 2006-10-04 15:48:47 +00:00
christos
ff685a253e we have rounddown in <sys/param.h> now 2006-10-04 15:48:36 +00:00
christos
888446efb0 fix empty if 2006-10-04 15:41:25 +00:00
christos
53dabe0e36 fix empty if body. 2006-10-04 15:39:24 +00:00
christos
a40b878b67 fix incomplete initializer 2006-10-04 15:38:14 +00:00