Commit Graph

166041 Commits

Author SHA1 Message Date
msaitoh
899c734b12 Conform to XCU Section 2.8.2 (Exit Status for Commands) 2008-01-21 06:43:03 +00:00
pooka
fdedd21efc Implement dummy bmap which just does 1:1 translation. 2008-01-21 03:40:59 +00:00
dyoung
97fd3f919c Add primitive routines to establish NMI handlers on i386.
TBD: synchronize (dis)establishment of handlers.
2008-01-21 02:56:13 +00:00
rmind
ef582b3c94 Mention implementation processor-sets, affinity, real-time
extensions and import of schedctl(8).
2008-01-21 01:08:02 +00:00
chris
2c030c103e Zero out the whole of the structure, not just the first 4 bytes. IE use
sizeof(*bconfig) not sizeof(bconfig)

Now a small kernel will boot up on my RISC-PC, an install kernel won't
though, it hangs at the switch from RISC-OS to NetBSD.
2008-01-21 00:41:13 +00:00
rmind
0bc5ae744b Move the cpuid_t type-defintion out of the _NETBSD_SOURCE condition. Should
fix the compilation of various applications.  Discussed with <martin>.
2008-01-21 00:27:24 +00:00
yamt
569f933f28 pmap_enter:
- when overwriting an existing mapping for the same page,
  inherit R/M bits so that they won't be lost.
- xen: don't leave ptp on error.
2008-01-20 22:41:55 +00:00
yamt
f093a1dc3b pmap_write_protect: remove an unnecessary volatile. 2008-01-20 21:56:11 +00:00
dyoung
f21e6a3c1a Do not reserve ISA bus space for npx@isa unless we hook IRQ 13,
which we ought to never do.  If we have not hooked IRQ 13, we do
not need any resources in npx_softc to handle numeric coprocessor
exceptions, so let npx@isa detach.
2008-01-20 21:49:57 +00:00
yamt
6db1337305 add x86/pmap_pv.h 2008-01-20 20:23:21 +00:00
bouyer
3d0b4af882 Make first argument of Xen's pmap_pte_cas() volatile, fix a warning
building pmap.c.
2008-01-20 18:41:47 +00:00
joerg
3615cf7715 Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
2008-01-20 18:09:03 +00:00
joerg
eb444c6f85 evbarm was the last platform to be converted to timecounter support. 2008-01-20 17:15:00 +00:00
joerg
4e56cdd20a Convert evbarm to timecounter. Only one of the systems was tested, the
rest of the patch is compile-time tested only.
2008-01-20 16:28:22 +00:00
jdc
19c14b9042 Fix Apple gigabit gem interfaces by restoring some of the code from r1.67,
with some minor alterations to make Sun fibre cards work too.
Tested by aymeric@ and macallan@.
Fixes PR kern/37809.
2008-01-20 15:12:33 +00:00
dsl
76952d779a Describe mbr_com0 and mbr_com0_9600
Include the filenames in the descriptive table entry.
2008-01-20 15:05:15 +00:00
dsl
683572a3a3 Note the existance of mbr_com0 and mbr_com0_9600. 2008-01-20 15:04:09 +00:00
dogcow
2b441c15a9 kill unused variable 2008-01-20 14:18:05 +00:00
he
78d5b85f20 Remove two now-unused local variables. 2008-01-20 14:14:11 +00:00
dogcow
46537ac345 kill unused variables 2008-01-20 13:44:19 +00:00
yamt
ecf338e548 - rewrite P->V tracking.
- use a hash rather than SPLAY trees.
	  SPLAY tree is a wrong algorithm to use here.
	  will be revisited if it slows down anything other than
	  micro-benchmarks.
	- optimize the single mapping case (it's a common case) by
	  embedding an entry into mdpage.
	- don't keep a pmap pointer as it can be obtained from ptp.
	  (discussed on port-i386 some years ago.)
	  ideally, a single paddr_t should be enough to describe a pte.
	  but it needs some more thoughts as it can increase computational
	  costs.
- pmap_enter: simplify and fix races with pmap_sync_pv.
- don't bother to lock pm_obj[i] where i > 0, unless DIAGNOSTIC.
- kill mp_link to save space.
- add many KASSERTs.
2008-01-20 13:43:37 +00:00
yamt
5f9a41e037 pmap_write_protect: fix an assumption in the previous.
a pte can have PG_M even if it currently doesn't have PG_RW.
2008-01-20 13:16:57 +00:00
yamt
b8530828ff pmap_write_protect: remove a redundant tlb shootdown. 2008-01-20 12:58:00 +00:00
skrll
fb6e9dca10 Do the dumpsys/dodumpsys thing on i386...
dumpsys() now mimics cpu_switchto() (pushes a switchframe onto the stack)
for postmortem debugging.

From simonb.
2008-01-20 12:43:00 +00:00
jmmv
7660ca07d8 Now that the driver goes through the mii_ifmedia_change indirection
instead of directly calling the pcn_79c970_mediachange function, we
must initialize sc->sc_mii.mii_ifp so that this last function is
passed a valid parameter.

Fixes a panic in pcn_79c970_mediachange that arose immediately when
trying to use this interface due to a NULL pointer dereference.
Hi dyoung@!
2008-01-20 11:28:12 +00:00
wiz
bfcf8df19c gdb-6.7.1 out. 2008-01-20 11:22:20 +00:00
dsl
46e566819b Don't allocated the stackgap during exec (but do allocate 32 bytes
for 'stack grows up' systems for the _rtld interface).
2008-01-20 10:15:50 +00:00
dsl
56cba2eaaa Remove stackgap functions externs. 2008-01-20 09:37:58 +00:00
msaitoh
fae0af7902 mii_physubr.c::mii_phy_reset() has gphyter and nsphyter specific delay(500).
This delay cause 500us loops under splnet() per linkdown port per mii_tick.
It causes periodically drop packets. It's not acceptable for other devices.

Move gphyter and nsphyter specific delay(500) into the drivers from
mii_physubr.c.
2008-01-20 07:58:19 +00:00
tsutsui
aa7cb7b8f0 - add a sanity check to avoid possible division by zero
- adjust sector numbers _after_ "Sanity check the data against all zeroes"

Should close PR bin/37656.
2008-01-20 06:39:31 +00:00
christos
8c03790350 remove redundant check. 2008-01-20 04:56:08 +00:00
weinem
0b27d36fa7 Fixes the wrong reference to s_time(1), which should be openssl(1). Closes PR misc/29998. Fix proposed by Igor Sobrado 2008-01-20 03:19:49 +00:00
dyoung
05e738a7c8 Add /usr/mdec/mbr_com0{,_9600}. Sort. 2008-01-19 23:30:08 +00:00
dyoung
1db95ef542 Sort. 2008-01-19 23:29:29 +00:00
dyoung
ebc5b3612c Use C99 array initializers for bridge_control_table[]. 2008-01-19 23:17:47 +00:00
dholland
bf86e75394 Improve an error message. Was buried in PR 6594 from Greg A. Woods. 2008-01-19 23:01:35 +00:00
aymeric
59e6a9a3d5 bump the default data size to 256MB (i.e. double it) because compiling
gcc during a standard native system build doesn't pass with 128MB.
2008-01-19 22:32:47 +00:00
dsl
da6834a7bc Regen for netbsd32_mremap 2008-01-19 22:25:36 +00:00
dsl
e7cd2030cf Add netbsd32 wrapper for sys_mremap(), compiles, and assuming the mmap()
wrapper is ok, it should work!
I presume the kernel knows not to map above 4GB though....
2008-01-19 22:25:12 +00:00
dyoung
da15c1a71e Let ether_ioctl() handle default SIOCSIFMEDIA/SIOCGIFMEDIA actions. 2008-01-19 22:23:35 +00:00
dyoung
5e35e05775 In wdcdetach(), if config_detach() fails, get out early. 2008-01-19 22:22:14 +00:00
dyoung
f049e8f385 Remove unused sc_media #define. 2008-01-19 22:20:42 +00:00
dyoung
df18183c3c There is really no use for switch when there is no case labels
except for the default, so remove the enclosing switch and the
default label.
2008-01-19 22:20:10 +00:00
dyoung
b480b62270 Make many ethernet drivers share the common code for MII media
handling, ether_mediastatus() and ether_mediachange().  Check for
a non-ENXIO error return from mii_mediachg().  (ENXIO indicates
that a PHY is suspended.)

This patch shrinks the source code size by 979 lines.  There was
a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.

I have made a few miscellaneous changes, too:

gem(4): use LIST_EMPTY(), LIST_FOREACH().
mtd(4): handle media ioctls, for a change!
axe(4): do not track link status in sc->axe_link any longer
nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
        on a change of media

Except for the change to mtd(4), no functional changes are intended.

XXX This patch affects more architectures than I can feasibly
XXX compile and run.  I have compiled macppc, sparc64, i386.  I
XXX have run the patches on i386 boxen with bnx(4) and sip(4).
XXX Compiling and running on evbmips (MERAKI, ADM5120) is in
XXX progress.
2008-01-19 22:10:14 +00:00
pooka
f7455b20d9 portal_advlock: badop -> eopnotsupp. I guess advlock can be called
for the root vnode and badop panics.

fix in PR kern/25393 by Laurent Sartran
2008-01-19 21:54:47 +00:00
dsl
3305a48bee Add two new versions of the mbr code that directly access a serial port.
'mbr_com0' assumes the BIOS has initialised the baud rate (etc)
'mbr_com0_9600' initialises the rate to 9600
Both have the functionality from 'mbr_ext' (ie they can boot from an
  extended partition).
As compiled, the io_address for the serial port is taken from BIOS data.
(this should keep tls@ happy!)
2008-01-19 21:01:34 +00:00
dsl
55433fb5ee Add an extra flag to indicate that the bootselect code wants an ascii
keypress for the 'default action' not a PS/2 keycode.
2008-01-19 20:53:49 +00:00
dyoung
ad45c434e8 Use the common code for ethernet media handling. Compiles on i386. 2008-01-19 20:25:44 +00:00
dyoung
d338f6b0ba Add default handling of SIOCSIFMEDIA/SIOCGIFMEDIA. 2008-01-19 20:11:52 +00:00
pooka
13e4604edb improve readdir, abortop and bmap description
PR kern/15062 by Love
2008-01-19 19:56:47 +00:00