Commit Graph

2132 Commits

Author SHA1 Message Date
tsutsui
27c7c429f6 Call zsc_intr_soft() directly on softintr() since spltty()
will be set by each handler (zstty_softint() or kbd_zs_softint()).
2007-03-11 06:20:39 +00:00
tsutsui
9584de92d9 Use (char *) casts.
Umm, vmmap on sun3/sun3x is vaddr_t, not (char *)...
2007-03-04 14:03:03 +00:00
tsutsui
6b6f21d112 Use (char *) on pointer arith. 2007-03-04 14:01:22 +00:00
tsutsui
a6dd0468f5 Use proper casts. 2007-03-04 14:00:54 +00:00
tsutsui
006ca42cab Minor space nits. 2007-03-04 14:00:24 +00:00
tsutsui
bc8b643653 Add (char *) casts on pointer arith. 2007-03-04 13:59:47 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
thorpej
f6d76ae22a TRUE -> true, FALSE -> false 2007-02-22 16:45:48 +00:00
tsutsui
ae63cdb7c0 Fix lossage on bool changes. 2007-02-22 14:39:34 +00:00
thorpej
712239e366 Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
ad
36bb413e0d More spllowersoftclock() fallout. 2007-02-16 13:55:42 +00:00
reinoud
43061c75ae Rename the B_XXX flag to B_DEVPRIVATE flag since it was never used for
debugging and its main use is in device drivers. Its used there to signal
that the flagged buffer has a special meaning or should be handled
differently.

OK'd by Bill Sudenmund on tech-kern.
2007-02-15 18:33:26 +00:00
ad
b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
tsutsui
6e3b5f512c Remove unused dh_addr member from struct si_dma_handle. 2007-02-04 01:38:34 +00:00
tsutsui
e32f083d80 Remove leftover debug stuff which could break si_obio DMA. 2007-02-04 01:37:09 +00:00
tsutsui
f7397aaa8c Make si at obio and si at vme on sun3 use bus_dma(9) for data xfer.
XXX1: Only si at vme on TME is tested.
XXX2: No info about DMA on si at sebuf. (bounce buffer required?)
2007-02-03 18:02:57 +00:00
tsutsui
277e6a5263 Prepare bus_dma(9) structures for sun3 obio devices. 2007-02-03 17:00:37 +00:00
tsutsui
5ec98f218f Add bus_space(9) and bus_dma(9) glue to sun3 MD VME attachment
to test these APIs on TME.

XXX I hope these sun3 MD VME stuff will be replaced by MI VME driver soon.
2007-02-03 16:58:08 +00:00
tsutsui
39bbf3e6c5 Implement bus_dmamap_load(9) and bus_dmamap_unload(9) for sun3. 2007-02-03 16:51:13 +00:00
tsutsui
3c39b23802 Fix botch in #ifdef DIAGNOSTIC. 2007-02-03 05:20:31 +00:00
tsutsui
b19c5b0bc7 Make esp and its dma on 3/80 use bus_dma(9).
XXX: Maybe we should consider to use MI sys/dev/ic/lsi64854.c.
2007-02-03 05:17:30 +00:00
tsutsui
8763f0bf0e Prepare bus_dma(9) structures for sun3x obio devices. 2007-02-03 05:14:38 +00:00
tsutsui
2fce94aa7d Implement bus_dmamap_load(9) and bus_dmamap_unload(9) for sun3x. 2007-02-03 05:13:58 +00:00
tsutsui
4f989cd028 KNF 2007-02-02 15:50:58 +00:00
tsutsui
920dd50438 Use bus_space(9). 2007-01-23 15:58:22 +00:00
elad
1e70d64818 Consistent usage of KAUTH_GENERIC_ISSUSER. 2007-01-04 16:55:29 +00:00
yamt
3f0f3de613 update comments on NFS_V2_ONLY after nqnfs removal. no functional changes.
from Arnaud Lacombe.
2006-12-29 21:49:03 +00:00
wiz
6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
christos
1665d5e960 fix spelling of accommodate; from Zapher. 2006-11-24 19:46:58 +00:00
jmmv
7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
mrg
648bbec934 in cpu_dumpconf(), don't panic() if we can't bdevsw_lookup() the
dumpdev.  this occurs when we try to set the dumpdev to a device
with no driver loaded.  this fixes PR#34872.

in sys_swapctl, if bdevsw_lookup() fails, set dumpdev = NODEV
before calling cpu_dumpconf().  (this also fixes PR#34872.)

XXX: cpu_dumpconf() should probably be changed to take a dumpdev
XXX: and return an error in such cases, but that is a much more
XXX: intrusive change.

XXX2: this is only run-tested on sparc64 and compile tested on a
XXX2: couple of platforms.
2006-10-21 05:54:31 +00:00
tsutsui
85174f3709 Make this compile with FD_DEBUG. 2006-10-14 08:11:16 +00:00
tsutsui
62600ecc57 Replace magic numbers with proper macro. 2006-10-10 17:45:43 +00:00
tsutsui
f7d5502c71 Use IPL_BIO rather than (temporarily defined) IPL_SOFT_LEVEL2.
Both of them share cpu ipl 2, and maybe it's intentional design
since fd.c uses ipl 6 for hardware interrupt.
2006-10-06 12:54:14 +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
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
c207dcd880 - change find_prom_map() to take paddr_t and return vaddr_t rather than
bus_space_handle_t since bus space handle without bus space tag looks weird
- replace old sun3 obio_find_mapping() with new common find_prom_map()
- add bus_space_vaddr(), from hp300
2006-10-03 13:02:32 +00:00
chs
e8295642bd remove MALLOC_NOINLINE, it doesn't do anything anymore. 2006-10-02 03:28:29 +00:00
elad
e8373398dc Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks! 2006-10-01 18:56:21 +00:00
tsutsui
6740d1fc1c Don't forget to initialize obio_space_tag. 2006-10-01 06:26:01 +00:00
tsutsui
d23b794c9e First attempt at bus_space(9) support for sun3 with common sun68k/bus.c:
- make sun3 port use common sun68k files as much as possible
- add temporary options _SUN2_ in std.sun2 until sun3 can share all
  sun68k files (autoconf.c and isr.c are not yet)
- move sun68kvme declaration temporary as well from files.sun68k to files.sun2
- rename and move sun68k_find_prom_map() function to MD sources since it
  can't be shared with sun3
- add bus tag members to struct confargs and initilize them where appropriate

XXX1: MD bus_dma(9) backends are not implemented (yet).
XXX2: more code (obio etc.) should be shared among sun3, sun3x and sun2.
2006-10-01 03:53:27 +00:00
tsutsui
8e1de5f3ab Unmap pmap region in bus_mapout() as well as sun3/sun3/bus_subr.c does. 2006-09-30 15:49:30 +00:00
manu
f309b668fd - Document COMPAT_15 as doing nothing
- Add COMPAT_15 to all the kernel that had COMPAT_14, for the sake of coherency
- Remove the only occurences of #ifdef COMPAT_15 in the tree: for the ARM
ports, COMPAT_15 was always used in conjunction with EXEC_AOUT. Only EXEC_AOUT
matters here.

This address kern/18407
2006-09-27 21:42:04 +00:00
tsutsui
c44c5152c9 - move internal function declarations from pmap_pvt.h to pmap.c itself
- make some local functions static inline
- KNF a bit
2006-09-20 09:35:57 +00:00
tsutsui
32a61d5e54 Make sun68k/stand build without installed ${DESTDIR} files.
Currently "machine" symlink points sys/arch/sun68k/include,
but this means some <machine/foo.h> files are taken from
sys/arch/sun68k/include but others (i.e. files not in sun68k/include)
are taken from ${DESTDIR}/usr/include/machine.

Instead, make "machine" symlink point sys/arch/${MACHINE}/include,
make "sun68k" symlink point sys/arch/sun68k/include (not sys/arch/sun68k),
add sys/arch to include path, and move some files where appropriate.
2006-09-17 06:15:40 +00:00
tsutsui
7af1255b2a Handle unwiring page cases properly in pmap_enter(9) and pmap_remove(9).
Previously sun3x pmap assumed that pmap_unwire(9) was the only interface
which should handle unwiring page, but nowadays apparently it isn't true.
Fixes a longstanding "panic: get_a_table: out of A tables"
(and also B, C tables) problem on my 3/80.

While here, make this compile with PMAP_DEBUG.
2006-09-16 03:35:50 +00:00
gdamore
113dbc3b0d Update sun3 to use timecounters (interrupt clock only) and generic-todr. 2006-09-05 06:45:05 +00:00
matt
aa6c194477 Remove an unneeded volatile. 2006-09-01 03:22:58 +00:00
matt
fc28199c6e Fix a -Wshadow error. 2006-09-01 03:22:26 +00:00
christos
e0df1e4c51 PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
2006-08-26 20:26:43 +00:00