pooka
360af828c1
Rename i386 and amd64 {cpu,spl}.c to rump{cpu,spl}.c to avoid
...
name collisions with other source files in the kernel tree.
2009-01-01 16:50:30 +00:00
pooka
0e983d35cf
* unexpose kprintf locking internals
...
* migrate from simplelock to kmutex
Don't bother to bump kernel version, since nothing outside of subr_prf
used KPRINTF_MUTEX_ENXIT()
2009-01-01 15:10:20 +00:00
jdc
79efdbb4ff
Back out previous and clear the screen directly.
...
Pointed out by macallan@.
2009-01-01 13:53:07 +00:00
ad
a190625ad7
softint_disestablish: don't pass softint_lock to kpause, it's not held.
2009-01-01 12:26:46 +00:00
tsutsui
21ac960f24
Remove declarations of CADDR1, CADDR2, and vmmap.
...
These variables have been moved into pmap_bootstrap.c
and <m68k/pmap_motorola.h> has extern decls for them.
2009-01-01 08:11:45 +00:00
tsutsui
8e2bef0189
Pull the following amiga's pmap changes to atari:
...
arch/amiga/amiga/amiga_init.c 1.95-1.97, 1.100-1.102
arch/amiga/amiga/pmap.c 1.123, 1.126-1.131, 1.142, 1.145
arch/amiga/amiga/pmap_bootstrap.c 1.1, 1.2, 1.3, 1.4
arch/amiga/conf/files.amiga 1.137
arch/amiga/include/pcb.h 1.16
arch/amiga/include/pmap.h 1.44
arch/amiga/include/pte.h 1.19
arch/amiga/include/vmparam.h 1.35
- change kernel address space layout (i.e. move Sysmap to the end of KVA)
to match other m68k ports, which should be done on yamt-km merge
- rework pmap_zero_page(), pmap_copy_page() and some more other functions
to make them compatible with m68k/pmap_motorola.c
- move pmap_bootstrap() into a separate file to allow using either
the atari pmap.c or the m68k common pmap_motorola.c
- use common m68k include files, pcb.h, pmap_motorola.h, and pte_motorola.h
- misc style and cosmetic changes
Most merge work is done by Tuomo Makinen, and
miscellaneous fixes and cleanups are done by me.
Tested on Falcon with both 68030 and 68060 by Tuomo, and
also tested on TT030 by David Ross on port-atari.
Should be pulled up to netbsd-4 (it requires at least Sysmap changes)
and netbsd-5.
2009-01-01 04:10:25 +00:00
tsutsui
d38ce2ebbc
Pull a change from amiga/pmap.c rev 1.124 for yamt-idlelwp merge.
2009-01-01 03:43:30 +00:00
kenh
9b6f36d652
If the default watchdog timer period is used, use a timer value
...
of 8 seconds. Otherwise wdogctl will return an error.
2009-01-01 03:34:42 +00:00
salo
e47eff8181
MUHAHAHA, FIRST POST!!!!111!1!!ONE!!1
...
(also, "welcome to 2009 and don't forget to update copyright notices
when you add new code" and all that stuff)
2009-01-01 00:00:01 +00:00
agc
287120139a
Might as well install the dm devmapper module when we install the
...
other parts of the LVM tools - use the same MKLVM switch, though.
2008-12-31 21:22:02 +00:00
tsutsui
2502831068
Use proper variable types and names in start_c() function for readability.
...
No binary changes. (wow, so clever gcc)
2008-12-31 19:54:40 +00:00
tsutsui
06eb11c451
- remove assigned but unused `pt' variable (gcc generates the same binary)
...
- remove obsolete Sysmap comments
2008-12-31 18:48:14 +00:00
christos
d1018e8baf
KNF.
...
NB: These were not imported properly. The Id RCS keyword lines were not
cleaned up, and there were no NetBSD keywords added. Perhaps Re-import
correctly?
2008-12-31 14:08:46 +00:00
pooka
c26a0d893f
update description of include
2008-12-31 13:18:06 +00:00
pooka
94dc15e204
Include rb.c instead of relying on it being in libc.
2008-12-31 13:08:57 +00:00
tsutsui
cdf1b88ca6
- remove extern decls for unused msgbufaddr and msgbufpa
...
- remove noncontig_enable which has been moved into pmap_bootstrap.c
2008-12-31 11:43:26 +00:00
tsutsui
d14403f116
Make kernel_pmap_store static as well as other m68k ports.
2008-12-31 11:37:20 +00:00
tsutsui
2e525a342c
Some minor cosmetics, to sync with atari.
2008-12-31 11:34:39 +00:00
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
phil
806ddf688c
Add a return HAL_OK in the AR_EEP_MACADDR case. Without this
...
it falls through to the next case and returns a register value.
Found by Aran Clauson.
2008-12-31 07:24:01 +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
cb118e551d
yank debug printf from previous
2008-12-31 00:57:45 +00:00
pooka
e8b4276abd
Reset proc0 cwdi after unmount. Makes is possible to mount/unmount/mount
...
in one process.
(XXX: this code is still horrible)
problem reported by stacktic
2008-12-31 00:57:15 +00:00
pooka
3427000fad
Build kernel modules the same time as the rest of the system libraries.
2008-12-30 22:18:11 +00:00
pooka
dfa6b36e0e
Move list of rump-uses-kmod archs to bsd.own.mk for wider consumption.
2008-12-30 21:31:10 +00:00
reinoud
339f5c5772
Add ISO partition detection enabling auto-detection of iso9660 and UDF
...
partitions on optical media like CD/DVD/BD but also on all other media if
there is no NetBSD disklabel or MBR label.
Also fix cd's readdisklabel arguments so the ioctl's arrive at the right
device (!) and update its default label to make more sense.
2008-12-30 19:38:36 +00:00
pooka
3b189207d8
Switch amd64 rumps to the kernel ABI.
2008-12-30 19:05:40 +00:00
he
a7f7726d50
Change va_fsid from long to u_long, so that we can store a dev_t
...
there without incurring warnings (which turns into build errors)
about conversions from unsigned int to long.
OK'ed by christos@.
2008-12-30 15:08:09 +00:00
pooka
0531e32a05
!defined(_LKM) -> defined(_KERNEL_OPT)
2008-12-30 13:15:49 +00:00
pooka
f9f4344f37
#ifdef _LKM -> #ifndef _KERNEL_OPT
2008-12-30 12:56:12 +00:00
pooka
d218bdeeff
_LKM -> _MODULE
2008-12-30 12:35:23 +00:00
jmcneill
9f9ac957a5
Silence printf in common "device not found" error path.
2008-12-30 10:44:30 +00:00
pooka
593f6357c6
-I${RUMPTOP}/librump/rumpkern so that build from src/lib works.
...
noted by Geoff Wing on current-users
2008-12-30 09:49:21 +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
9c5307acaa
properly handle kthread_exit()
2008-12-30 00:36:38 +00:00
pooka
9fd33357b3
Provide ifunit stub in the same place as others.
2008-12-29 23:18:35 +00:00
pooka
8a1a1e1e27
* make features match those of the nfs module just to have them in-sync
...
* remove stubs.c since all are now provided by rumpnet
2008-12-29 23:17:42 +00:00
pooka
14d6fd5a0b
__weak_alias some more networking symbols for the benefit of the
...
nfs boot code in case not using the full networking stack.
2008-12-29 23:12:11 +00:00
njoly
e85166daa8
Fix stime(2) inverted copyin arguments.
2008-12-29 22:21:49 +00:00
pooka
f8829b7dcb
Switch i386 away from rump/include/machine. This means that rump
...
on i386 now uses the native kernel ABI. This in turn means that
rump modules and kernel modules are binary equivalent and can be
used interchangeably.
2008-12-29 22:16:15 +00:00
pooka
d19a006d1c
Register a dummy block device for rump, since some file systems do
...
a sanity check to see if the block device exists. This dummy block
device should eventually replace rump specfs.
2008-12-29 20:39:49 +00:00
pooka
2c52214ded
_LKM -> _MODULE
2008-12-29 19:59:09 +00:00
pooka
b03bd9bf49
We are conseptually a module, so -D_MODULE. Group CPPFLAGS better.
2008-12-29 18:53:57 +00:00
pooka
13de128f76
Actually, revert previous - I doubt it would work with a non-rump kernel.
...
The filthy #ifdef _MODULE lives to stink another day.
2008-12-29 17:52:43 +00:00
pooka
7b9ae626a8
die filthy #ifdef _MODULE, die!
2008-12-29 17:47:08 +00:00
pooka
614c33507f
include subr_devsw in rumpkern
2008-12-29 17:45:55 +00:00
pooka
8583cae233
Rename specfs_lock as device_lock and move it from specfs to devsw.
...
Relaxes kernel dependency on vfs.
2008-12-29 17:41:18 +00:00
pooka
3cf15d2f4e
Librate sysctl_setup_func typedef from the clutches of _MODULE and
...
stuff it in kern_sysctl.c where its only sensible use is.
2008-12-29 15:35:02 +00:00
jdc
eebd19f78d
On old chip revisions, clear the screen using rasops when attaching.
2008-12-29 14:42:15 +00:00
pooka
841fb873aa
sprinkle static
2008-12-29 14:35:05 +00:00
njoly
f22af7d53f
s/syscallcarg/syscallarg/ in comments.
2008-12-29 14:33:40 +00:00
jdc
e3fc2b7c4b
Clear the screen (via rasops) when attaching.
...
Pointed out by Bill Green on port-sparc.
2008-12-29 14:27:59 +00:00
ad
ab21fd5c10
Don't need to hold kernel_lock for most of this (and not into the swapper!).
2008-12-29 13:40:11 +00:00
ad
ed25a64ddf
Don't do KM_NOSLEEP allocations.
2008-12-29 12:52:50 +00:00
mlelstv
0f2eef0070
fdcintr1 requires the mutex to be held.
2008-12-29 12:16:52 +00:00
tsutsui
7d8d4998c1
Fix broken RCS Id.
2008-12-28 23:00:39 +00:00
reinoud
2b4d7aaa9a
When reusing a directory free space slot and thus finding it on the free space
...
list, do free it back into the pool!
2008-12-28 17:11:26 +00:00
christos
437cf02e63
Don't try to ffs_update VT_NON vnodes
2008-12-28 16:27:00 +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
jmcneill
63b42fed50
PR# port-i386/40284: add AMD Geode CS5536 audio driver; written by
...
SHIMIZU Ryo <ryo@nerv.org>
2008-12-28 15:16:24 +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
christos
55d90fae57
- Don't autounload modules loaded during boot. In my case, ffs got unloaded
...
because my cdrom takes too long to initialize.
- Consistently print error messages in all error cases.
2008-12-28 03:21:02 +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
tsutsui
d88429017d
Regen from miidevs rev 1.80:
...
> Fix a botched comment.
2008-12-27 10:39:04 +00:00
tsutsui
aa50416355
Fix a botched comment.
2008-12-27 10:38:15 +00:00
tsutsui
ff822508cf
Regen from pcidevs rev 1.971:
...
> Fix tyop in previous.
2008-12-27 10:36:09 +00:00
tsutsui
62631acb1a
Fix tyop in previous.
2008-12-27 10:35:08 +00:00
he
556cce3113
Follow up on the removal of MALLOC(), use malloc() instead.
2008-12-27 10:23:54 +00:00
jnemeth
5805e53b1d
regen for et (Agere) driver
2008-12-27 09:05:22 +00:00
jnemeth
8cb5cf0f62
PR/39094 - Kaspar Brand -- Add et (Agere ET1310/ET1301) netowrk driver
2008-12-27 09:03:32 +00:00
jnemeth
7436f169a9
regen for et (Agere) driver
2008-12-27 08:56:50 +00:00
jnemeth
5b59b2b26d
PR/39094 - Kaspar Brand -- Add et (Agere ET1310/ET1301) netowrk driver
2008-12-27 08:55:35 +00:00
he
ecff12ce83
Sprinkle #if NTCTRL > 0 so that this builds again without
...
warning that some static function is defined but never used.
2008-12-26 22:37:29 +00:00
macallan
efb62a12dd
move callout_init(sc->sc_tick_ch) before we're trying to callout_stop()
...
the ticker.
2008-12-26 18:51:19 +00:00
jmcneill
4fcf0eb13c
Remove pm_Heads check in msdosfs_mountfs; this value isn't really used,
...
FreeBSD and OpenBSD both removed this check years ago, and this makes an
8GB Memory Stick Pro Duo formatted with a PSP work.
2008-12-26 03:38:52 +00:00
tsutsui
3cf9bfd3aa
Set all default geometry parameters (not only secpercyl and secsize)
...
before readdisklabel(9) on DIOCGDINFO so that we can get correct
media size via the ioctl. (usually floppy doesn't have a real disklabel)
Tested on i386 with 1.44M floppy.
2008-12-24 16:56:28 +00:00
christos
7c095a5af7
provide an snprintb(3) format for status
2008-12-23 20:52:07 +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
cegger
f1b926ed8b
ffs_update: sprinkle KASSERTs
2008-12-23 11:32:08 +00:00
jmorse
b400d28c38
Fix UVC webcam output by:
...
- Storing updated video format after user changes format
- Round up number of xfers queued to multiple of 8, due to ehci inefficiencies
- Remove random debugging line I slipped in earlier
2008-12-23 03:22:29 +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
macallan
698f27a0ae
make this compile again with NWSDISPLAY==0
2008-12-22 23:46:22 +00:00