Commit Graph

48976 Commits

Author SHA1 Message Date
tsutsui baffe80103 Remove quite obsolete pcb_cmap2. 2008-12-31 11:11:05 +00:00
tsutsui 99a3dabf8e Remove a declaration of Sysmap. It's in <m68k/pmap_motorola.h>.
XXX: maybe we should also have declarations for Sysseg, Sysptmap,
XXX: and Sysptsize etc. in <m68/pmap_motorola.h>.
2008-12-31 10:33:13 +00:00
tsutsui a0746e5741 Add avail_start and avail_end for debug printf,
to sync with m68k/pmap_motorola.c.

XXX: virtual_avail (VA of first avail page) is not initialized?
2008-12-31 10:02:30 +00:00
isaki aea81d8a0f struct device * -> device_t. 2008-12-31 09:50:21 +00:00
tsutsui fa7554982f Misc cleanup:
- use proper types on variable declarations
- allocate Sysseg_pa in pmap_bootstrap.c where it's actually used
  rather than in atari/pmap.c
- remove comments in pmap_bootstrap.c which were duplicated from pmap.c
- add explicit `extern' keywords for variables allocated elsewhere
- update comment for pmap_bootstrap() to sync with reality

No functional changes.
2008-12-31 09:45:11 +00:00
isaki 40e63cb237 Remove a meaningless "*" @ mainbus. 2008-12-31 08:33:20 +00:00
isaki 7563f448e7 Search all of mfp(4)'s children automatically, instead of
attaching hard-coded children.  mfp(4) was trying to attach
pow(4) though pow(4) was a pseudo-device for a long time.
2008-12-31 08:00:31 +00:00
tsutsui 64fa2cd5cc Adjust comments (which were added by me) to sync with m68k/pmap_motorola.c. 2008-12-31 06:54:33 +00:00
pooka 0531e32a05 !defined(_LKM) -> defined(_KERNEL_OPT) 2008-12-30 13:15:49 +00:00
pooka d218bdeeff _LKM -> _MODULE 2008-12-30 12:35:23 +00:00
matt 8f704298aa Reclaim PVF_KNC in VIPT to be PVF_MULTCLR (page has multiple colors).
Track when a page is mapping in multiple colors and deal with the ramifications.
When a page's MOD attribute is cleared, clean it from the cache.
Fix a logic inversion.

With these changes, the TI SDP2420 H4 board can successfully natively build a
TISDP2420 kernel.
2008-12-30 05:51:19 +00:00
matt a7cf4e5ecd Use atomic ops to manipulate the bitmasks. 2008-12-30 05:43:14 +00:00
pooka 2c52214ded _LKM -> _MODULE 2008-12-29 19:59:09 +00:00
tsutsui 7d8d4998c1 Fix broken RCS Id. 2008-12-28 23:00:39 +00:00
jmcneill b00a79bf8f PR# port-i386/40284: add AMD Geode CS5536 audio driver; add gcscaudio(4)
to i386 GENERIC and ALL kernels
2008-12-28 15:18:21 +00:00
he e7afb03eca Wrap #include "opt_ppcarch.h" in #ifdef _KERNEL_OPT, to allow
lib/librump to build for evbppc.
2008-12-28 10:23:11 +00:00
tsutsui 970121f868 Use the global kernel_pmap_ptr pointer in each MD pmap_bootstrap.c
(where MMU is not enabled yet) and make kernel_pmap_store static again.
Also consistently use uintptr_t on address conversion in RELOC() macro.

Tested on hp300 (PA != VA) and news68k (PA == VA).
2008-12-28 05:15:59 +00:00
tsutsui fd6ad22aed Clear bp->b_oflags (introduced on vmlocking2 merge) before read
rather than calling brelse(9) after read.
Tested by Tuomo Makinen on port-atari.

Should fix pool panics during installation reported by David Ross
on port-atari:
http://mail-index.NetBSD.org/port-atari/2008/11/13/msg000113.html
and actually close PR port-atari/39850.
2008-12-28 03:13:59 +00:00
cegger 074ef1779e add stub for sendsig_sigcontext().
I leave this to our vax guys to implement it.
Implementing it is another step to make vax kernels build again.
2008-12-27 16:26:06 +00:00
tsutsui 8a0754e5d7 Account idepth in all interrupt handlers in locore.s. 2008-12-27 16:17:24 +00:00
tsutsui d79dc17147 Sprinkle volatile to bus_space(9) access functions. 2008-12-27 16:14:12 +00:00
cegger 269bf411e8 catch up with x86/x86/cpu.c: move from malloc to kmem 2008-12-23 20:06:16 +00:00
christos 7d7f0ed270 make this actually work. 2008-12-23 16:34:44 +00:00
christos 738294fb85 Add a convenience config file to build non-modular kernels for testing purposes. 2008-12-23 16:29:53 +00:00
cegger deb772b2e1 move from malloc to kmem 2008-12-23 15:41:21 +00:00
cegger 713413c736 move from malloc to kmem 2008-12-23 15:31:20 +00:00
jmcneill db842c7394 add pseudo-device drvctl 2008-12-23 13:14:22 +00:00
tsutsui 59f24f5fbc Remove obsolete options SYSTRACE. 2008-12-23 13:04:56 +00:00
matt a97f53109f Baby steps to a working driver. transmit works. receive sometimes works
but the h/w is doing really weird shit.
2008-12-23 02:15:10 +00:00
macallan 02142ba757 convert to wscons, while there add some missing wsdisplay drivers 2008-12-22 23:47:16 +00:00
tsutsui b33bc5602e __inline -> inline 2008-12-21 17:43:49 +00:00
tsutsui ba2bffa213 Tweak some comments and labels to sync with hp300. 2008-12-21 17:43:32 +00:00
tsutsui 6a29394250 Remove obsolete code for old software interrupt emulation.
The MI softint(9) handles it in the kernel threads nowadays.

Note "Emulation of VAX REI instruction" is still there to handle ASTs.
2008-12-21 17:42:05 +00:00
tsutsui 6882959c9b Account idepth in locore.s. 2008-12-21 15:52:16 +00:00
ad 12e4db0e90 Update flags to match reality. 2008-12-21 11:48:30 +00:00
ad 68c33f6d28 Fix a comment. 2008-12-21 11:18:19 +00:00
isaki 1c83836352 Clean up a header file and a prototype. 2008-12-21 09:35:49 +00:00
isaki 9df38ebbda par(4) is a child of intio(4) (since 2000). 2008-12-21 09:24:27 +00:00
isaki 0256607d6d Take out mainbus(4)-related code from autoconf.c and make it mainbus.c. 2008-12-21 09:20:40 +00:00
isaki 06cefe4345 Make sram(4) a hardware device.
# I wrote this in 2001 :-)
2008-12-21 09:01:19 +00:00
isaki cf93dcf794 Remove an old comment (about amiga?). 2008-12-21 06:16:06 +00:00
isaki ba2a85174a - Split idepth from INTERRUPT_*REG macros to avoid confusing.
- timertrap: add idepth stuff, and use INTERRUPT_*REG macros.
- lev7intr: add idepth stuff.
2008-12-21 06:13:06 +00:00
isaki 4588c4222e Remove extiobase. x68k does not use it. 2008-12-21 06:04:49 +00:00
taca f238b44a94 Change max retry time to 90 seconds from 5 seconds.
It is processed in background to detect ipmi.

Now my ML115 G1 detects ipmi as NetBSD 4_STABLE.

Discussed with Matthias Scheler (tron) with private mail
and approved by him.
2008-12-20 16:52:41 +00:00
tsutsui a2ae506662 Sync comments about the last segment of KVA space with current implementation.
XXX other m68k ports should be updated as well.
2008-12-20 14:35:53 +00:00
isaki cf59801230 x68k pow(4) now uses MI sysmon_pswitch framework. suggested by tsutsui@.
- Make MD poffd(8) retire, and use MI powerd(8) instead of it.
- Make /dev/pow1 retire, because nobody holds /dev/pow0 any longer.
  Use /dev/pow0 for pow(4) ioctl.
- POWIOCSSIGNAL ioctl which is for poffd(8) is also obsoleted.
2008-12-20 13:20:58 +00:00
ad 6ad4a3fdd5 Remove stray opt_redzone.h 2008-12-20 13:09:44 +00:00
ad 9a5c311632 Revert part of previous. 2008-12-20 13:07:36 +00:00
ad 0e83efcacb opt_noredzone.h is gone. 2008-12-20 13:06:25 +00:00
cegger 42f4c567d4 catch up with latest changes: sendsig -> sendsig_siginfo 2008-12-20 12:50:24 +00:00