Commit Graph

151917 Commits

Author SHA1 Message Date
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
christos f2e38a9477 prevent empty body in if. 2006-10-04 15:36:23 +00:00
tsutsui 5194905263 Make sun3 port use MI mk48txx(4) and intersil7170(4) TOD clock drivers
with bus_space(9) support.
Note clock device name in obio.sun3 is renamed to oclock to use the same
MI attribute (intersil7170) with sun3x.

Tested on 3/80 and TME emulating 3/120 (but not on 3/4xx VME monsters).
2006-10-04 15:14:49 +00:00
tsutsui 76bdb56136 Update descriptions for API changes. 2006-10-04 15:07:03 +00:00
tsutsui 2f49bc32a3 Reorganize MI intersil7170(4) TOD clock driver:
- make intersil7170_softc more generic and allocate it during autoconf(9)
  rather than MALLOC(9) in attachment
- put todr_chip_handle_t, year0 value, and the century adjustment flag
  into the intersil7170_softc
- change the attachment function to just take the softc like mk48txx(4)
- split sys/dev/ic/intersil7170.h into intersil7170reg.h and intersil7170var.h
- cleanup some macro

Untested on real sun4 machines, but no objection on port-sparc
(and port-sun3) in three days.
2006-10-04 15:04:43 +00:00
christos 2f0f18be71 prevent empty if. 2006-10-04 15:03:25 +00:00
christos ab28bede4c Prefix "Syntax Error" with the program name, if the command name is not
available. At least this way we get an idea of what program gives us the
message.
2006-10-04 15:00:38 +00:00
christos ee4546d741 unbreak gcc-3 builds. 2006-10-04 14:31:55 +00:00
christos a9fc92da63 PR/34681: Scott Ellis: Explicitly include <sys/socket.h> 2006-10-04 14:30:35 +00:00
christos 1eafb02344 put back ignorerootrhosts 2006-10-04 14:26:31 +00:00
christos 49aa2a2d1d Add rounddown from <sys/gmon.h> 2006-10-04 14:23:28 +00:00