Commit Graph

22946 Commits

Author SHA1 Message Date
matt 58ca6aac15 Add netbsd.alpha & netbsd.alpha.gz for installation cds. 2000-06-12 23:38:03 +00:00
sommerfeld 4a9abf779e Fix this so it compiles again with DEBUG 2000-06-12 23:35:11 +00:00
eeh fb0404cc75 Start reorganizing the kernel for MULTIPROCESSOR support. 2000-06-12 23:32:46 +00:00
eeh 65bca8bde2 Fix OF_val2sym and OF_sym2val. 2000-06-12 23:26:38 +00:00
eeh 3dfb9ee7ac More debugging support. 2000-06-12 23:20:54 +00:00
eeh 0146a569d2 Comment describing the IOMMU DVMA address space layout. 2000-06-12 23:19:05 +00:00
eeh cc29e9b22c ebus_ca needs to specify enough memory to hold an ebus_softc, not a struct device. 2000-06-12 22:36:59 +00:00
soda 564faec22a shut up gcc warning: suggest explicit braces to avoid ambiguous `else'
from Izumi TSUTSUI <tsutsui@netbsd.org> and Shuichiro URATA <ur@a-r.org>.
2000-06-12 17:04:52 +00:00
soda 4412ca8455 <machine/cpuregs.h> was removed on March 30,
from Shuichiro URATA <ur@a-r.org>.
2000-06-12 17:01:05 +00:00
ragge 2df63a9cc1 Evil bug: sizeof(struct cpu_info) -> sizeof(struct ka820_softc). 2000-06-12 11:26:26 +00:00
ragge 8ea974e809 Put all cputype definitions in one file instead of separate files.
This was becoming unmaintainable.
2000-06-12 11:13:14 +00:00
mrg 69d1f5db9d clean up cruft. 2000-06-12 05:31:30 +00:00
mrg fdfb59b4b9 ih_map & ih_clr are volatile. 2000-06-12 05:29:43 +00:00
mrg 9918c00a61 formatting nit. 2000-06-12 05:27:27 +00:00
soren 824923164c Attach to CS4610 with CS4236 codec in, well, CS4236 compatibility mode. 2000-06-12 03:43:54 +00:00
matt e4a7ab9905 Add latent entry for ochi usb devices on NEC MobilePro 800. 2000-06-11 23:34:31 +00:00
matt 7f40194cbc Make spl0 & spllowersoftclock return void. 2000-06-11 23:33:37 +00:00
matt 0dc4d9cf90 export bus.h 2000-06-11 23:32:55 +00:00
matt e910b71c73 Comment out asc0 for vs4000/90. remove slip/ppp. 2000-06-11 23:32:10 +00:00
matt 3dfb96fa8f Add local symlink so that machine & vax refer ../../include instead of the
system ones.
2000-06-11 23:30:35 +00:00
matt 232461e6be Add TLP_MATCH_*. Remove gm*. 2000-06-11 23:29:29 +00:00
matt 1881f3c3d2 Make this compilable on other than pmax. 2000-06-11 23:28:38 +00:00
thorpej 75975dd6c5 G/c some unneeded prototypes (functions don't exist). 2000-06-11 22:47:00 +00:00
thorpej 0531d2ddcb jensenio gets isadma_bounce attribute. 2000-06-11 22:45:44 +00:00
thorpej 91ed0189e8 Add Jensen files glue. 2000-06-11 21:25:23 +00:00
thorpej 99079f93c0 Add init glue for the DEC 2000/300 (Jensen). 2000-06-11 21:19:23 +00:00
fredb 1c3835d907 Enable "rnd" pseudo-device. It's no longer experimental, and works just
fine on mac68k.
2000-06-11 18:09:34 +00:00
scottr 50cde82828 Since interrupts are now enabled during ADB autoconfig, it's possible
to get a mouse event before wsmouse is attached. Make sure we've done
that before passing an event to wsmouse_input().
2000-06-11 17:26:47 +00:00
tsubai 1bfa0fc6b6 Add cpu_counter(). 2000-06-11 16:32:42 +00:00
minoura 04dbfaae5b G/C of unused interrupt stubs, and other cleanups. 2000-06-11 14:20:45 +00:00
tsubai 94db0b8a37 Enable DMA transfer on obio IDE. 2000-06-11 10:56:16 +00:00
ragge 11b7c895aa Remove some unneeded code. 2000-06-11 10:40:06 +00:00
ragge fdc27c43a1 Fix booting from BI-based disks. 2000-06-11 10:39:26 +00:00
tsubai abc5d88356 Make this compile again. 2000-06-11 10:02:15 +00:00
ragge e7aefcd7ae Allow printf's from slave CPUs by stealing the v_putc function.
Easier than expected because the printout lock is hold in the higher levels.
2000-06-11 07:50:11 +00:00
mycroft 9884ae5ff6 Remove pcvt tentacles. 2000-06-11 02:41:10 +00:00
mycroft 6e7ce465e9 After almost 5 years, it is now time to decommission pcvt. Bon voyage. 2000-06-11 02:34:23 +00:00
sommerfeld 82b38059d6 Let this build again after the pckbc_cnattach change 2000-06-11 01:59:26 +00:00
augustss ead295db1b Alphabetize. 2000-06-11 00:21:01 +00:00
eeh d26027dd5b Only use 32-bit addresses for all accesses that don't bypass the MMU.
Makes SBus work again.
2000-06-10 20:51:43 +00:00
frueauf 3be3d75487 recently findroot() was changed to get no arguments, so remove the
arguments in the findroot() call withing cpu_rootconf().
2000-06-10 19:34:46 +00:00
ragge b826825917 Code to spin up other CPUs on a VAX 8200 system.
Haven't solved the printf() problem yet, though.
2000-06-10 14:59:38 +00:00
soda ef22daefd0 move address to resolve conflict with firmware working memory
of NEC RISCstation 2250, from Shuichiro URATA <ur@a-r.org>.
2000-06-10 12:56:45 +00:00
matt 50dff37fd9 fix botch by me. 2000-06-10 05:24:46 +00:00
tsutsui 4c191e1d58 We cannot specify root on md0a because md is pseudo-device.
"options MEMORY_DISK_IS_ROOT" is enough for this.
2000-06-10 04:29:41 +00:00
tsutsui fca0f6760b Fix printf message on attachment. 2000-06-10 04:15:59 +00:00
soren 9f0da0dd16 Post a SIGFPE rather than SIGILL on floating point exceptions. 2000-06-10 02:43:49 +00:00
scottr 162689f352 We don't need ADB debugging enabled any longer. 2000-06-10 02:33:59 +00:00
tsubai 521233859b Add cy* at pci. 2000-06-09 17:14:06 +00:00
tsubai dd703bc6f8 Add cy. 2000-06-09 17:11:30 +00:00
wrstuden 3d410a6c74 Add commented-out entry for Cyclades-Z pci serial ports. 2000-06-09 16:57:37 +00:00
wrstuden a7bea09941 Add support for Cyclades-Z PCI tty's. 2000-06-09 16:56:51 +00:00
thorpej 71cd989b8f Only include <machine/intr.h> if _KERNEL. Noted by enami tsugutomo. 2000-06-09 16:03:04 +00:00
eeh c69e701de8 Separate COPTS from CFLAGS to fix problems w/unoptimized files, and add
lfs_loop.c to the list that breaks optimization.
2000-06-09 15:28:21 +00:00
scottr a91ead9a5d From Hauke Fath: clean up disklabel support, particularly for
native NetBSD labels.
2000-06-09 15:27:35 +00:00
kleink 2a258cd5c8 Pull in missing DDB headers. 2000-06-09 14:09:45 +00:00
kleink 4d8e50f1ce Need <sys/syscallargs.h> for declaration of sys_sysarch(). 2000-06-09 14:08:45 +00:00
kleink bcd7f512f5 Pull in missing headers for declarations, and add missing local function
declarations.
2000-06-09 14:07:13 +00:00
kleink 080f786189 Need <sys/systm.h> for declaration, and make argument declarations match. 2000-06-09 14:05:47 +00:00
kleink 4d6a384b1b Need <sys/ptrace.h> for declarations. 2000-06-09 14:05:04 +00:00
tsutsui bb4112fd6f - Sync MINIROOTSIZE with etc/disktab.
- Remove ppp. (ramdisk does not have pppd, anyway)
2000-06-09 13:30:42 +00:00
tsutsui e793d98661 Add (commented out) stf. (sync with GENERIC) 2000-06-09 13:18:14 +00:00
tsutsui 5514958c9c Enable vnd. 2000-06-09 13:16:00 +00:00
tsubai a29bb9db7b Add all RAM regions to battable.
This should support > 512MB memory.  (untested, though)
2000-06-09 10:54:48 +00:00
pk f9cf3305c3 No need to cast return value of spl0(). 2000-06-09 10:47:25 +00:00
pk 9bf0d228f0 spl0() and spllowersoftclock() return void. 2000-06-09 10:43:52 +00:00
haya fb24119c70 Do not use memory space close to system memory (PR #10318). 2000-06-09 10:31:07 +00:00
soda 1c2aa78d6b rename
vad_to_pfn() -> mips_paddr_to_tlbpfn()
	pfn_to_vad() -> mips_tlbpfn_to_paddr()
as suggested by thorpej on port-mips Mar 27.
2000-06-09 06:30:35 +00:00
soda 2047c95e49 Decrease MIPS3_TLB_WIRED_ENTRIES from 8 to 2,
and rename it to MIPS3_TLB_WIRED_UPAGES.
The value of wired register becomes variable on arc port,
and arc is the only mips3 port which uses the wired TLB entries 2..7.
2000-06-09 06:06:57 +00:00
soda 26c2cf79c0 rename
vad_to_pfn() -> mips_paddr_to_tlbpfn()
	pfn_to_vad() -> mips_tlbpfn_to_paddr()
as suggested by thorpej on port-mips Mar 27.
2000-06-09 05:51:42 +00:00
soda e5b560a385 - NEC RISCstation 2250 (RD-94) PCI bus support,
contributed by Shuichiro URATA <ur@a-r.org>.
 - Experimental coding for NEC RISCserver 2200 and RISCstation 2200.
   (doesn't really work)
2000-06-09 05:41:56 +00:00
soda f626d8a91c repair algor support a bit. 2000-06-09 05:38:13 +00:00
soda 1258a24612 NEC RISCstation 2250 (RD-94) PCI bus support,
contributed by Shuichiro URATA <ur@a-r.org>
2000-06-09 05:33:02 +00:00
soda e802a7df62 add NetBSD Id of original bt driver 2000-06-09 05:30:51 +00:00
soda fca8b826e6 bus_dma implementation for jazz dma tlb,
contributed by Shuichiro URATA <ur@a-r.org>
2000-06-09 05:28:47 +00:00
mrg ed15212269 myetheraddr(): don't lose badly when the clock hasn't been attached yet. 2000-06-09 05:27:40 +00:00
soda 31a9a256f4 bus_dma implementation for jazz dma tlb,
contributed by Shuichiro URATA <ur@a-r.org>
2000-06-09 05:22:22 +00:00
soda 23db111368 wired TLB manager, contributed by Shuichiro URATA <ur@a-r.org>. 2000-06-09 05:17:26 +00:00
soda 861ce3dca7 bus_space/bus_dma implementation for arc port, based on i386 port, pmax port,
hpcmips port, and the version contributed by Shuichiro URATA <ur@a-r.org>.
2000-06-09 05:14:42 +00:00
soda 8f3951870b save/restore MIPS_COP_0_TLB_PG_MASK. 2000-06-09 05:07:32 +00:00
soda 4df7e64d56 update 2000-06-09 05:06:25 +00:00
soda 0f76c56f2d increase number of parameters of pckbc_cnattach(), since offset of command port
is not 4 (KBCMDP), but 1 on jazz based platforms of arc port.
2000-06-09 04:58:32 +00:00
soda b1438dd751 make paddr_t 64bit on arc port by introducing _MIPS_PADDR_T_64BIT. 2000-06-09 04:36:43 +00:00
soda f587c1c5bf typo in comment 2000-06-09 04:28:17 +00:00
soda 44769378c9 this header don't have to include <machine/locore.h>,
include <mips/locore.h> instead.
2000-06-09 04:24:22 +00:00
soda 9fee25ddfa USRIOSIZE had to be changed from 32 to 128,
when MAXBSIZE was changed from 16KB to 64KB(MAXPHYS)
on <sys/param.h> revision 1.28.
2000-06-09 04:18:19 +00:00
cgd c2ebb05a74 make spl0() and spllowersoftclock() return void. Also, move spl0()
prototype from param.h to intr.h.  (there were some big XXXs in param.h
that said to do that, and intr.h is included by param.h, so...)
2000-06-09 01:40:12 +00:00
bjh21 47b7204c67 Bring spl stuff closer to specs 2000-06-08 23:26:10 +00:00
bjh21 249785dfa4 rename mcount functions out of user namespace 2000-06-08 23:25:05 +00:00
bjh21 7a14c4b4f1 sys/dev/ic/i82586var.h needs bus_dmamap_t 2000-06-08 23:23:41 +00:00
eeh 7539c8d1ce Turn on PCI MEM and DMA. 2000-06-08 23:03:17 +00:00
cgd a11660da22 make spl-lowering functions return void. 2000-06-08 23:03:13 +00:00
eeh 6c144faa4c Allow multiple drivers to share one interrupt vector. 2000-06-08 23:01:22 +00:00
eeh 1b31fdcbb7 Fix uninitialized variable bug. 2000-06-08 22:58:42 +00:00
bjh21 6af016fc7d Remove spurious includes 2000-06-08 22:33:53 +00:00
tsubai 649f6d3838 Sync with mac68k. 2000-06-08 22:10:45 +00:00
fvdl b5cca46229 Make siop the default instead of ncr. The siop driver has proven to
be reliable, and, although it does not do tagged queueing yet, this
makes it a better choice.
2000-06-08 21:42:14 +00:00
pk 1610381d13 GC unused `autoconf_nzs'. 2000-06-08 21:37:43 +00:00
eeh 1dfab2070a Override optimization for files that break gcc. 2000-06-08 21:25:18 +00:00
eeh 94ffeedb49 Allow for cacheable device maps (in case there's some RAM out there). 2000-06-08 17:59:32 +00:00
eeh 00e45ca869 Print all 64-bits of TTE data in db_pmap_kernel(). 2000-06-08 17:45:29 +00:00
eeh 6baca0c1ad Fixup signed/unsigned issues so 32-bit addresses are not sign extended. 2000-06-08 17:43:24 +00:00
eeh 860feb4e74 Fix ordering of sync operations depending on whether it's PRE- or POST-. 2000-06-08 17:41:46 +00:00
matt d3336b64a1 Squeeze a few more bytes so the INSTALL kernel will fit on a floppy.
Use tlp instead of de.  Add in gm[ac].  Remove slip and Gallant 22x12 font.
Compile ofwboot.elf -Os.
2000-06-08 17:35:47 +00:00
eeh a273b333a3 Support large (>1 page) DVMA maps so UltraSPARC IIi will work. 2000-06-08 16:17:29 +00:00
eeh 08af61208e Fix DVMA base address calculations. 2000-06-08 15:23:44 +00:00
pk 12db2d5991 viking_pcache_flush_page: use entire PA tag field. 2000-06-08 14:45:18 +00:00
jhawk 3c6d754bbb Rename "stack" to "stacktrace" and have "stack" call "stacktrace $ebp $eip"
(saves typing).

Use sizeof(long) instead of "4".
2000-06-08 14:42:11 +00:00
nonaka 25e58c2dc7 Added USB devices. 2000-06-08 13:16:55 +00:00
nonaka 48966cc65c USB support 2000-06-08 13:16:23 +00:00
bjh21 ece024b6cf Un-__Pify. 2000-06-08 10:49:19 +00:00
kleink 18495b9efa Need <sys/systm.h> for declaration of bzero(). 2000-06-08 07:30:47 +00:00
kleink c2715f98ce Need <sys/systm.h> for declaration, and make argument declarations match. 2000-06-08 07:29:22 +00:00
mrg ee41ef7a04 ensure an ebus really does exist in ebus_match; fixes spurious attachments with the ebus on a hme pci card. 2000-06-08 06:52:25 +00:00
kleink 78009a319f Need <netinet/in.h> for declaration. 2000-06-08 06:50:46 +00:00
kleink 149050ce7b Need <sys/systm.h> for panic() declaration. 2000-06-08 06:48:45 +00:00
kleink 186d2ccb7f Need <sys/systm.h> for declaration, and make argument declarations match. 2000-06-08 06:47:17 +00:00
scottr d220ba7dc4 Make this compile with GRF_COMPAT. Problem pointed out by Hauke Fath. 2000-06-08 06:01:27 +00:00
mhitch afce867d15 Fix loadfpregs(): the register used to access the floating point registers
was not getting loaded, and the floating point registers were being loaded
from the proc structure rather than the FP registers in the pcb.
2000-06-08 04:47:13 +00:00
jhawk f9b0e0c4eb gdb script for backtracing an i386 kernel stack.
Useful when "where" in gdb fails to cross trap()s,
e.g. port-i386/10313
2000-06-08 03:15:40 +00:00
thorpej 81afcb3940 And more ANSI'ification! 2000-06-08 03:10:06 +00:00
thorpej 966b3da402 ANSI'ify. 2000-06-08 02:53:47 +00:00
thorpej 8355a216eb Add the `rnd' driver. 2000-06-08 02:20:50 +00:00
thorpej 0bf91362b9 Add cpu_counter() for rnd(4), using the rpcc insn. 2000-06-08 02:19:20 +00:00
matt 2dde4ce0c9 Slight stylistic changes. Add KAME checksum routine. 2000-06-07 19:31:33 +00:00
thorpej 733a6e059b Increase the miniroot size to 3072 (to match INSTALL and INSTALL_TINY).
This is needed due to TI-RPC being larger.
2000-06-07 19:29:45 +00:00
tsubai 4c15219d3b * Access hardware directly in zscn* instead of calling OF.
* Clean up.
2000-06-07 17:37:07 +00:00
leo 30bae800ae Mark 'n' explicitely as output of the 'mulul' instruction. 2000-06-07 14:26:11 +00:00
tsutsui b3a25bd8a5 Config root on md0a, not md0. 2000-06-07 13:26:25 +00:00
tsubai 5afb55f9cd child_return() should take void *arg. 2000-06-07 11:34:17 +00:00
tsubai bebb7b9aee Remove child_return prototype; it is now in sys/proc.h. 2000-06-07 11:23:17 +00:00
nisimura 4250cdde36 - Take care of dm_segs[].dm_len value whenever the offset is adjusted.
Known not working well for 4MAX+ this moment.
- White spacing.
2000-06-07 10:09:19 +00:00
pk 9a8d03d6bd Add a couple of missing semi-colons. 2000-06-07 09:16:41 +00:00
msaitoh 61d02add45 remove extra NOPs because "bf" and "bt" instruction have no delayed slot. 2000-06-07 05:28:17 +00:00
matt d3649351f1 Add support for machdep.console_device, machdep.booted_device,
and machdep.booted_kernel sysctl variables on arm32.  (booted_kernel
only currently available on Sharks)
2000-06-07 04:59:28 +00:00
matt e1ac3df8a4 sharks can now figure out what they booted from so only a single kernel is
needed.
2000-06-07 04:36:06 +00:00
perseant f032b9f500 px requires rasops8 to compile 2000-06-07 04:14:55 +00:00
gmcgarry adb2efef6b Autonegotiation with xi driver is reported to work. Use it on the
install media.
2000-06-07 02:16:06 +00:00
simonb e59356ecdd In __cpu_simple_lock_try(), use "return (v0 != 0);" instead of
"return (v0);" where v0 is an unsigned long and the function return
type is int.  Stops lint warnings when this file is included.

Fix from Jason Thorpe.
2000-06-07 01:49:13 +00:00
gmcgarry 6de3467b52 - Clean up use of AUDIO_C_HANDLER.
- Copy bus_space handles into auio for fast handler.
2000-06-06 22:34:34 +00:00
matt 2b0f10e384 Needs to look at different stuff depending if the scsipi bus is SCSI or ATAPI 2000-06-06 20:26:19 +00:00
matt ea16c1ada3 Enable __HAVE_DEVICE_REGISTER and add a ofw_device_register to shark_machdep.c
This works for booting diskless.  It should work for booting off ide but that
is untested for the moment.
2000-06-06 20:17:34 +00:00
pk c7d426f2b5 viking_cache_flush_page: spell bitmasks in hex, not octal. 2000-06-06 20:08:29 +00:00
soren a9aa2abf94 defopt SYSCALL_DEBUG. 2000-06-06 18:52:30 +00:00
soren 476374bf63 Fix unused device declaration. 2000-06-06 18:00:57 +00:00
soren e060a1c021 Fix pasto. 2000-06-06 18:00:23 +00:00
soren fbfc073a95 findroot() is static. 2000-06-06 18:00:13 +00:00
soren a2bda06df5 Typo. 2000-06-06 17:41:58 +00:00
soren 5e4ca4defb Rename RM5200 cache ops to mips3_*_2way in anticipation of using them
for other CPUs with 2-way set associative L1 caches as well.
2000-06-06 17:41:07 +00:00
soren 113f160717 R12K has 64 TLBs too. 2000-06-06 17:36:12 +00:00
leo 0118b9d71e _qs -> _sched_qs 2000-06-06 13:44:30 +00:00
leo 45c84d3f9c Fix prototype definition of findroot(). 2000-06-06 11:09:46 +00:00
pk 8a0d25a707 Oops, type confusion.. 2000-06-06 09:20:31 +00:00
haya d1421ab5ac Remove unnecessary function arguments. 2000-06-06 08:20:06 +00:00
haya c93ef01fbf Use entire extent region when PCIBIOS_ADDR_FIXUP is set. PCIBIOS
provides PCI-dedicated memory and io extent.
2000-06-06 08:17:37 +00:00
pk b5321a5a5c Make the address argument of pcache_flush_page() a `paddr_t'. 2000-06-06 07:56:40 +00:00
thorpej c791fe193f Give the `sio' and `pceb' drivers the `82c693' attribute. 2000-06-06 03:10:55 +00:00
thorpej f3d9d1ac8a Use the common 82c693 access functions to read/write the ELCR. 2000-06-06 03:10:13 +00:00
soren d8e5d1fa7d Add rnd(4) glue for the MIPS3 cycle counter. 2000-06-06 02:24:00 +00:00
sommerfeld bbca3924cd Replace "timestamp" with "counter" in previous change, to avoid any
possible confusion that it has anything to do with accurate
measurement of time.

New names:
	__HAVE_CPU_COUNTER
	cpu_counter()
	cpu_hascounter()
2000-06-06 01:33:15 +00:00
thorpej f65502fc36 Report which compatibility IRQ the PCI IDE gets. 2000-06-06 00:50:15 +00:00
nisimura 3ca4913346 One more fix escaped from iointr() change. 2000-06-06 00:47:21 +00:00
nisimura 72f372eca2 Add a missing parenthesis and correct the function return value declaration. 2000-06-06 00:27:58 +00:00
nisimura 8c8d3119f0 Make sure model specific cpu_intr() routines call _splset() as the last
action.
2000-06-06 00:08:24 +00:00
nisimura 2f3e73fe03 Withdraw this configuration. NetBSD/pmax GENERIC is now switched to
MI SCSI.
2000-06-06 00:02:24 +00:00
jhawk c063b64a2b Do not clear msgbufenabled in dumpsys(). Dump messages will now go to
the message buffer. This can be invaluable in debugging if the dump
fails (assuming a persistant message buffer)
2000-06-05 23:44:55 +00:00
cgd 489af6e337 fix pasto pointed in the evcnt changes pointed out by Robert Swindells 2000-06-05 23:28:20 +00:00
gmcgarry d0241b393f Replace references to xe with xi. Clarify description to avoid
confusion with the Xircom tlp-based cards.
2000-06-05 23:18:50 +00:00
sommerfeld bcf02ec8ff If rnd is configured into the kernel, do rnd(4) entropy collection
from devices connected to pckbc:
 - Do actual sample collection in pckbc.
 - Add rndsource_element_t to the slot data.
 - Change pckbc_set_inputhandler() to take an additional argument,
the name of the device, which is (eventually) passed into
rnd_attach_source() to identify the source.
 - Change callers of pckbc_set_inputhander() appropriately.
2000-06-05 22:20:54 +00:00
thorpej b0ce38fd8a Switch to the new `evcnt' mechanism for counting interrupts. Maintain
a per-CPU interrupt counter for clock, device, and interprocessor
interrupts.
2000-06-05 21:47:26 +00:00
thorpej 2668e3b213 Switch to the new `evcnt' mechanism for counting interrupts. Maintain
a per-CPU interrupt counter for clock, device, and interprocessor
interrupts.
2000-06-05 21:47:10 +00:00
is c7767f7b58 This was committed accidentally. 2000-06-05 21:40:34 +00:00
is 2b2e526525 This is amigappc, not amiga. 2000-06-05 21:37:33 +00:00
sommerfeld fae21c7be1 Let rnd(4) know how to read the (pentium and higher) cycle counter:
If __HAVE_CPU_TIMESTAMP is defined, <machine/rnd.h> exists and defines
two functions:
  1) 	u_int32_t cpu_timestamp(void);
returns the 32 low order bits of a reasonably high frequency counter.
  2)	int cpu_havetimestamp(void);
returns non-zero if cpu_timestamp() actually works.

The timestamp counter should run at a frequency greater than 1 MHz
(otherwise, microtime would be sufficient); other than that, the exact
frequency and origin of the counter are unspecified.
2000-06-05 21:15:22 +00:00
thorpej 814826fdda Fix typo. kern/10291. 2000-06-05 20:47:47 +00:00
pk 862a955e34 Re-arrange code to flush physically indexed caches:
* replace `flush by line' function with a `flush by page' funtion, which
  also takes an argument to indicate that write-back caches need not
  validate its backing memory.

* use this function when allocating page table memory to flush the cache
  before mapping it into kernel virtual space.

* also use it in pmap_{zero,copy}_page(), so we can safely use non-cacheable
  access in there.
2000-06-05 20:38:24 +00:00
tsutsui 8c4d1bf1f9 Adapt MI ncr53c9x changes. 2000-06-05 15:08:00 +00:00
joda 9e1f399ada fix `#scsibus at siop?' line 2000-06-05 13:34:13 +00:00
nisimura 4371d91433 Have MI ncr53c9x_attach() the 2nd and 3rd arguments for scsipi_adater
and scsipi_device respectively, with size reduction of ncr53c9x_softc.
Specifying NULL instructs the driver to use default adapter and default
device codes. Every target port has ncr53c9x_attach(sc, NULL, NULL) anyway.
2000-06-05 07:59:50 +00:00
matt 661884208a add support for counting soft interrupts 2000-06-05 03:45:23 +00:00
matt 2f85fe7adb Adjust to new evcnt stuff. 2000-06-05 00:09:17 +00:00
gmcgarry 11382b8021 Add APM_ALLOW_BOGUS_SEGMENTS - allow the use of data segments which
are in unexpected locations.
2000-06-04 22:36:27 +00:00
mycroft 43a543fa88 Implement CLKF_INTR(), to count interrupt time separately. 2000-06-04 21:27:38 +00:00
matt ac621687a3 Add coff_machdep.h (now need due to the recent exec_coff changes). 2000-06-04 21:06:18 +00:00
ragge 1320a4106c Adopt to latest mba/hp changes. 2000-06-04 20:04:21 +00:00
ragge 79e7f9966d Adapt to mba changes. Fix assembler buf (EDIV uses 64-bit arg, not 32). 2000-06-04 19:58:17 +00:00
matt a8a863d4ea more cleanup. use __builtin_frame_address(0) instead of our funky
FRAMEOFFSET macro.  define an interrupt call frame and use that directly
instead of some magic offsets.  Make boot autoconf.o use the current
reality.
2000-06-04 19:30:14 +00:00
cgd cffb580806 Implement the more flexiable `evcnt' interface as discussed (briefly) on
tech-kern and now documented in evcnt(9).
2000-06-04 19:14:14 +00:00
matt e2293f4ad0 Add a comment 2000-06-04 19:03:27 +00:00
ragge c46119030a Forward declaration of `struct proc'. 2000-06-04 18:27:39 +00:00
matt f08ff1ad2d use PR_IPL instead of 0x12.
align entries of various symbols.
2000-06-04 18:13:06 +00:00
thorpej 1c8cd252f9 ANSI'ify. 2000-06-04 18:09:36 +00:00
ragge db7db1456e Remove home-grown interrupt vector handler.
Bus_space'ify; needed to get RH11 working. Still much more to do, though.
2000-06-04 18:04:38 +00:00
ragge d7a5a63645 Changes to sbi_attach_args. (and some cleanup) 2000-06-04 18:02:35 +00:00
ragge 1838716f7b Remove some unneeded code. (and cleanup). 2000-06-04 18:00:48 +00:00
ragge 82e0b5f7db Changes of sbi_attach_args. (and cleanup) 2000-06-04 17:59:50 +00:00
ragge 1e19df4bfd Clean up the sbi_attach_args struct and put in tag/handle.
Move a nice macro to scb.h.
2000-06-04 17:58:19 +00:00
thorpej 6addd3ac42 Nuke a couple of unnecessary IMBs. In these cases, the mappings weren't
hanging, only perhaps the permissions being lowered, in which case the
I-stream does not need to be sync'd.
2000-06-04 17:39:12 +00:00
thorpej a39439b400 ANSI'ify. 2000-06-04 16:55:57 +00:00
mycroft 9dcdff8f25 Add stubs for PE/COFF. 2000-06-04 16:26:11 +00:00
mycroft e9deffe0bf Move a bunch of the COFF definitions into exec_coff.h, so they can be used by
other code.   XXX Not tested on SH3 yet.
2000-06-04 16:23:59 +00:00
tsubai 0552fd6de2 Dump fp regs into core file. 2000-06-04 12:12:13 +00:00
tsubai 5257d23759 Add fpreg area in struct md_coredump. 2000-06-04 11:57:17 +00:00
tsubai 86ac32df3d Add PT_GETFPREGS and PT_SETFPREGS support. 2000-06-04 09:30:43 +00:00
matt 0bd304e528 More event counter stuff. Plus a little cruft cleanup while doing it. 2000-06-04 06:16:53 +00:00
thorpej e8d65fec30 ANSI'ify function declarations. 2000-06-04 05:27:45 +00:00
thorpej 70dc4d8718 Un-__P'ify kernel prototypes. 2000-06-04 05:23:18 +00:00
matt 713121e8c4 Nuke it. It's in dev/qbus now... 2000-06-04 04:48:34 +00:00
takemura 1a710b9899 Bugfix and a little improvement for trouble shooting.
- BUGFIX: pbsdboot1 ignores Yes for 'Are you sure ?' dialog box.
  - display status which indicate how much loading sequence progress.
  - add debugging log function.
2000-06-04 04:30:48 +00:00
matt 078c7563c2 newer version exists in dev/qbus. nuke this one. 2000-06-04 04:19:57 +00:00
matt 061896a992 now in dev/qbus so nuke this version. 2000-06-04 04:16:58 +00:00
thorpej df4a5a7f43 Increment an interrupt depth counter in non-clock interrupt cases
so that we can get time spent in interrupt statistics.
2000-06-04 03:40:03 +00:00
matt 7c24069048 Add extra argument to scb_vecalloc (a struct evcnt *)
Move ivec_dsp from trap.h to scb.h
Add interrupt counting to asc, le, ze, ncr, dz interrupts.
add common support for counting interrupts to cnm_idisp so
it can be done very efficiently.
2000-06-04 02:19:24 +00:00
thorpej cd423732b8 - Clean up clock interrupt code a bit, and provide a CPU_IS_PRIMARY()
macro in the MULTIPROCESSOR case (hardclock() wants it).
- Implement __GENERIC_SOFT_INTERRUPTS, and redefine the legacy
  software interrupts in terms of it.  Garbage-collect setsoftserial().
2000-06-03 20:47:36 +00:00
thorpej 0e2f894851 Provide a CPU_IS_PRIMARY() macro in the MULTIPROCESSOR case. 2000-06-03 20:43:28 +00:00
fvdl d1d025652d Revert previous change until the problem it has has been analyzed. 2000-06-03 17:33:25 +00:00
matt 547f87cded fix arguments to get_device. 2000-06-03 16:48:59 +00:00
thorpej be636036f8 Err, actually, print "21264A", not "EV67". 2000-06-03 14:13:42 +00:00
thorpej d42ef058b5 Recognize PCA57 and EV67. 2000-06-03 14:12:54 +00:00
thorpej 392948ced8 Add EV57 and EV67 processor variants.
cvs: ----------------------------------------------------------------------
2000-06-03 14:12:28 +00:00
shin 4a71a2a50f delete unnecessary 'extern ...' line. 2000-06-03 13:16:02 +00:00
pk 630ec72e5d Make sure to have the cache info before allocating the global cpu_info
virtual addresses.
2000-06-03 09:56:35 +00:00
takemura f0e427d05a Add platid, VADEM CLIO C-1000 and C1050.
Note: CLIO C-1000 is identical with SHARP Tripad PV6000.
2000-06-03 08:00:42 +00:00
nisimura de01642cac Use bus_dma(9) to instruct IOASIC DMA to load transferring addresses,
eliminating MIPS cache machinary exposure here.
2000-06-03 07:55:17 +00:00
eeh 03228642f7 Use all 64 address bits in ld*a()/st*a() macros so physical device addresses
work.  (Also add some bus_space_*() debug hooks).
2000-06-02 22:56:32 +00:00
matt baaa1154d5 no need to raise ipl since the definition of softintr_schedule is that
it's from at or above softipl.
2000-06-02 22:14:10 +00:00
cgd 0b270a9dfb booted_partition, not booted_parition... 2000-06-02 22:09:02 +00:00
matt 34a96c661b replace spl4 with splconsmedia 2000-06-02 21:51:46 +00:00
matt d278b1da45 Add IPL_* codes.
Add other codes for struct references.
Add softintr framework for IPL_SOFTNET and IPL_SOFTSERIAL.
General cleanup of .s files replacing hardcoded structure offsets with
symbolic ones.
2000-06-02 21:51:15 +00:00
matt 83a385c230 use splsoftddb() instead of hardcoding the ipl. 2000-06-02 21:49:06 +00:00
matt b8cccfafd8 Move spl macros from <machine/param.h> to <machine/intr.h>
Fix botch on my part and make the IPL_* match reality on VAX.
Redefine spl macro using the symbolic IPL_ instead of being hardcoded.
Move schedsoftnet, schedsoftclock from <machine/cpu.h> to <machine/intr.h>
Add a _setsirr macro for schedsoft*.
Add softintr function and framework.
2000-06-02 21:47:02 +00:00
matt fb6a3dfb64 Include offsets in vs_cpu register in comments. 2000-06-02 21:39:54 +00:00
mhitch 0e88f603fa Allow sii driver to be compiled with MI SCSI support. Now DS3100 users
can use MI SCSI!
2000-06-02 20:24:20 +00:00
mhitch 51ebf74f71 Add commented out entry for SII driver using MI SCSI.
Remove DS500-only comment for MI SCSI configuration include.
2000-06-02 20:23:13 +00:00
mhitch ccb1131a2d SII driver goes MI SCSI: add a scsibus at xsii. 2000-06-02 20:22:00 +00:00
mhitch ee0ecb0855 Coerce the SII driver into working with MI SCSI; convert scsipi_xfer info
into a ScsiCmd structure.
2000-06-02 20:20:29 +00:00
mhitch 44d42ae28b Add some glue so let the SII driver work with MI SCSI. 2000-06-02 20:16:51 +00:00
mhitch 61ec2107d7 Clear lun field in ScsiCmd (SII driver change to work with MI SCSI). 2000-06-02 20:15:40 +00:00
mhitch 8e72d1b6c4 Adjust to allow SII driver to work with MI SCSI. 2000-06-02 20:12:57 +00:00
thorpej 42e4f5279b Rearrange the code that loads pages into the VM system somewhat, and
use the ACPI memory map if provided by the boot program.
2000-06-02 18:33:16 +00:00
thorpej 90ef824c6d Actually define the ACPI memory map entry (bi_memmap_entry). 2000-06-02 18:27:47 +00:00
thorpej 7f1c64b910 Enable the code that passes the ACPI memory map to the kernel. 2000-06-02 18:26:10 +00:00
thorpej 7a5ce477cb When allocating new PT pages during early bootstrap (i.e. before
pmap_init() has finished), make sure to zero them.
2000-06-02 17:46:37 +00:00
eeh f2ab1eb70c db_stack_trace_cmd -> db_stack_trace_print 2000-06-02 15:38:32 +00:00
eeh 94084a33f8 New softintr interface. 2000-06-02 15:36:53 +00:00
shin 5d883bf68e make it compile with 'options SOFTFLOAT'. 2000-06-02 12:57:22 +00:00
pk aae0ef4cc1 In pmap_cpu_alloc(), allocate memory for the PTE tables in one sweep. 2000-06-02 10:43:59 +00:00
haya 7bb941e63d KNFied. 2000-06-02 08:41:13 +00:00
pk 65e4bcd9df Re-initialize `proc0.p_cpu' after allocating the global `cpu_info'
address for the boot cpu (XXX)
2000-06-02 08:12:29 +00:00
nisimura b52ffbdbe9 Make clarified SCSI transfer direction flag. sc_ispullup == pullup
data from SCSI device == DMA into main memory == datain.
2000-06-02 04:35:06 +00:00