Commit Graph

27894 Commits

Author SHA1 Message Date
bjh21 368f9c15c1 Remove another spurious #ifdef CPU_ARM7500. 2001-07-09 23:35:58 +00:00
reinoud 8ca7d6ec9c Initial commit for merging A7000/NC with the RISCPC in order to get _one_
bootable GENERAL kernel for the 3 machines.

This is done by integrating the ARM7500 in a better way. In various places
the IOMD ID is checked and action is taken at runtime compared to
compiletime.

The small piece of assembler that is changed now uses the flag
`arm7500_ioc_found' that is set up by iomd.c at startup. When this chip
isnt found at startup it will skip reading the ARM7500 extended IRQ
registers and wont clear them either.

The next step will be getting the mode-definition files to the bootloader.
Currently they are compiled in.
2001-07-09 21:46:19 +00:00
reinoud 1f5b07de6a Changed the variable within the ARM6 late abort section from cpu_ctrl to
cpuctrl ...
2001-07-09 19:51:14 +00:00
uch 197743b640 remove unnecessary includes, initialize. 2001-07-09 18:18:25 +00:00
wiz 3aec94a3e1 Fix comments for EXEC_AOUT and EXEC_SCRIPT. 2001-07-09 16:09:02 +00:00
soren ce3293accb ncr(8) is gone from the tree, so remove ^#ncr*. 2001-07-09 15:05:22 +00:00
leo 7a2ca439a7 defopt atari scsi options. 2001-07-09 14:49:49 +00:00
leo 7a68fa7e1d Regen. 2001-07-09 14:01:09 +00:00
leo 3c70de7dc9 Remove Ident. 2001-07-09 13:37:38 +00:00
leo 21315cd1f5 Add SysV Semaphore tunables. 2001-07-09 13:37:06 +00:00
leo 9c4c15292b Nuke some cf_unit abuses. 2001-07-09 12:06:35 +00:00
toshii c90ac4b756 Sync with rev. 1.5 of sa11xx_pcicvar.h. 2001-07-09 06:20:31 +00:00
toshii 57755d7760 sapcic_socket shouldn't use sacc_softc, use opaque data type instead. 2001-07-09 05:19:05 +00:00
thorpej ce8c5df2c6 Count and display the number of CPUs present on the system. 2001-07-09 02:00:19 +00:00
simonb 5d17649545 bcopy -> memcpy 2001-07-09 01:43:26 +00:00
thorpej 8ea809324e Fill in cpu_model[] 2001-07-09 00:30:35 +00:00
thorpej af0e157b66 - Use the identifier strings that are fetched by the MI ARC BIOS
code.
- Garbage-collect some non-useful stuff from the mainbus_attach_args.
2001-07-08 23:59:31 +00:00
rjs 72c860d841 Initial copy of SA11x0 support from hpcarm. 2001-07-08 23:37:52 +00:00
rjs 35dc2ba462 Initial copy of SA11x0 support from hpcarm. 2001-07-08 23:20:04 +00:00
eeh 9481b31f8f Code cleanup. Add block_disable to let you turn on block set/copy routines. 2001-07-08 21:05:11 +00:00
thorpej edeeafe82b bcopy -> memcpy, bzero -> memset 2001-07-08 21:04:50 +00:00
thorpej 2b351e4a6f - If the multicast address list changes, make sure to kick the chip.
- Remove unnecessary includes.
- Slight cosmetic change in sq_start().
2001-07-08 20:57:34 +00:00
thorpej e9fd7a6a2b Use sys/dev/arcbios. 2001-07-08 20:30:13 +00:00
chs b86053cc53 clean up pmap_k{enter_pa,remove}():
a page is allowed to be mapped normally when k-mapped.
use UVM_PGA_ZERO to get zeroed pages rather than zeroing here.
2001-07-08 19:44:43 +00:00
perry 4ae18c882f Since setrunqueue and remrunqueue now have documentation, remove my
obnoxious comments saying they should be documented, and reference
setrunqueue(9) and remrunqueue(9) instead. Thanks Nathan!
2001-07-08 19:33:44 +00:00
wiz cc0b68092e Correct various misspellings of 'transfer' and inflected forms. 2001-07-08 18:06:42 +00:00
uch ebad8fb5d8 when "safety message" check box is not checked, no symbol kernel is
loaded to memory silently. (its MessageBox will bother)
2001-07-08 17:19:02 +00:00
uch 4f4b4d40ed I forgot to commit. std.hpcsh.el -> std.hpcsh 2001-07-08 17:02:36 +00:00
abs 8b9a19cb3d Leave TCP_DEBUG commented out _everywhere_.
Time to replenish clueon charge with caffine...
2001-07-08 16:36:11 +00:00
abs 29dcb5e3f6 (Regenerated atari and amiga)
Standardise TCP_COMPAT_42 as commented out, grouped with other COMPAT options,
and with the comment '4.2BSD TCP/IP bug compat. Not recommended'
Add commented out 'TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG'
(All hail amiga and atari which make some attempt to automate the
multiplicity of config files...)
2001-07-08 16:34:03 +00:00
abs 01b024cd5b Standardise TCP_COMPAT_42 as commented out, grouped with other COMPAT options,
and with the comment '4.2BSD TCP/IP bug compat. Not recommended'
Add commented out 'TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG'
(All hail amiga and atari which make some attempt to automate the
multiplicity of config files...)
2001-07-08 16:32:12 +00:00
mrg 184c606354 modify setpgt4m_va() to clean up (remove) several #ifdef MULTIPROCESSOR points.
catchup pmap_kenter_pa4m() and pmap_kremove4m() with SMP safe PTE updates.
2001-07-08 15:58:42 +00:00
bjh21 260f6ffe33 Remove the old Ether3 and EtherB drivers, since the new ones seem to work fine. 2001-07-08 15:41:55 +00:00
uch 1a5b55dce9 dont' round up physical memory size. 2001-07-08 15:15:25 +00:00
rearnsha 471acbf74f Fix a couple of minor merge botches from the new scsipi merge.
More minor formatting tidyups.
2001-07-08 14:50:05 +00:00
ichiro 89ebce9618 comment out: bus_space_write_2 2001-07-08 14:45:36 +00:00
ichiro ec7a32a628 cosmetic change 2001-07-08 14:45:03 +00:00
ichiro 320adf2df7 comment out: bus_space_write_2 2001-07-08 14:43:52 +00:00
ichiro 0e7c688b67 add definition of EGPIO_LCD_INIT 2001-07-08 14:41:14 +00:00
uch b0b7628145 remove redundunt header include and function declaration.
(pointed by MAEKAWA Masahide.)
2001-07-08 10:42:37 +00:00
ichiro 9e80e9aca3 fix and fill Extended-GPIO 2001-07-08 10:36:31 +00:00
ichiro 9c344c76c8 add LCD register definition 2001-07-08 06:38:59 +00:00
wdk fa993060eb change b*() -> mem*() 2001-07-08 04:25:36 +00:00
ichiro a8696d3a73 Extended GPIO address is 0x49000000. 2001-07-08 03:33:42 +00:00
wdk 962a2e51fb Add typical KGDB settings, and leave commented out. 2001-07-07 23:17:58 +00:00
wdk bda50bcdd4 - Finish off KGDB kernel debugger support for sgimips 2001-07-07 23:13:25 +00:00
perry c3748d9175 b*()->mem*() 2001-07-07 22:57:57 +00:00
mrg 3079cac680 - implement XPMSG_DEMAP_TLB_PAGE, XPMSG_DEMAP_TLB_SEGMENT,
XPMSG_DEMAP_TLB_REGION, XPMSG_DEMAP_TLB_CONTEXT and XPMSG_DEMAP_TLB_ALL
- new setpgt4m_va(), call it when you need to ensure all cpus see the same value
- new smp_tlb_flush_context(), smp_tlb_flush_region(), smp_tlb_flush_segment(),
smp_tlb_flush_page() and smp_tlb_flush_all() functions, if MULTIPROCESSOR
- define the tlb_flush*() routines to the smp_*() versions, if MULTIPROCESSOR
- sun4m safe PTE update updatepte4m() routine, vaguely derived from code posted
by torek@bsdi.com on port-sparc a couple of years ago.
- new nmihard_lock to synchronize other cpus during hard NMI.  (XXX: should be
a bit smarter about which CPU's do/don't check in.)
2001-07-07 21:23:53 +00:00
mrg 0e295568bb lock xpmsg_lock around the safefpu ipi. 2001-07-07 20:12:54 +00:00
mrg eafaa5ffea - replace CPUFLG_STARTUP with new CPUFLG_READY scheme, used after startup has
occured.  cpus now spin waiting for new `go_smp_cpus' variable to go non-zero.
- new xpmsg_lock that must held around all cross call activity.  new macros:
LOCK_XPMSG() and UNLOCK_XPMSG().
- delete delay(1)/cache_flush gone from raise_ipi_wait_and_unlock(), it incurred
a stupid performance penalty.
2001-07-07 20:09:15 +00:00
tsutsui df016928f8 Remove (commented out) ncr* at pci? lines. 2001-07-07 17:09:47 +00:00
uch b92d40fcb6 std.hpcsh.el -> std.hpcsh (no big-endian WindowsCE)
add shl-elf_.x (for LEADING_UNDERSCORE ELF)
bcopy -> memcpy
2001-07-07 16:35:22 +00:00
minoura 7e84e14950 Sync with GENERIC. 2001-07-07 15:59:31 +00:00
ichiro 66a6cc178d pcmcia support of SA1110 2001-07-07 15:53:24 +00:00
ichiro f9d2eac504 Initialization of Extended GPIOs 2001-07-07 15:50:37 +00:00
ichiro 975265e67e add extended GPIOs register 2001-07-07 15:49:41 +00:00
tsutsui d49986b17f Split clock device attachment into interval timer and todclock
since they are actually independent devices.
2001-07-07 15:27:19 +00:00
eeh a2cda80fea Also handle FPU registers. 2001-07-07 15:16:13 +00:00
simonb c23e6dcb90 b{cmp,copy,zero} -> mem{cmp,cpy,set}
Also remove some unnecessary argument casts.
2001-07-07 14:20:59 +00:00
ichiro c65c21e1f7 bcopy -> memcpy
bzero -> memset
2001-07-07 10:43:11 +00:00
scw c1ab2b5460 bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
2001-07-07 09:06:43 +00:00
toshii 5455a9ad87 Use platid based mechanism to select PCMCIA socket voltage. 2001-07-07 08:45:43 +00:00
ichiro 2ee26bb302 s/saip_softc/sa11x0_softc 2001-07-07 08:10:15 +00:00
simonb 6555a67971 Catch up with (2 month old!) changes to dev/scsipi/scsi_all.h so pmax MD
SCSI kernels work.
2001-07-07 07:52:02 +00:00
scw ff267f1e06 bzero -> memset
bcopy -> memcpy
bcmp -> memcmp
2001-07-07 07:51:37 +00:00
ichiro b1a5e525b8 mapping extended GPIOs
iPAQ: Extended GPIOs appears at address 0x41000000
2001-07-07 07:04:56 +00:00
ichiro cd3fb67f14 bzero->memset, bcopy->memcpy 2001-07-07 06:29:13 +00:00
tsutsui fe30b5a627 bzero() -> memset() 2001-07-07 06:24:00 +00:00
perry 0d05392733 bzero->memset, bcopy->memcpy 2001-07-07 05:58:12 +00:00
tsutsui 6005077f81 bcopy() -> memcpy() (I guess there is no overlap here) 2001-07-07 05:09:43 +00:00
chris 4c32798eb8 Implement proper versions of kenter_pa and kremove, I've based them on versions provided by Richard E. 2001-07-06 20:15:13 +00:00
scw 8593b82c71 One less item (h/w assisted soft interrupts) 2001-07-06 20:12:34 +00:00
scw 35110949ce Ditch the `simulated' software interrupt in favour of
hardware-assisted soft interrupts on all boards.
(Note: VMEChip2-less 162/172 not yet tested)

This greatly simplifies the `rei' path and allows
interrupt nesting to be tracked somewhat more easily.

As a result we now have a working CLKF_INTR() macro
and can detect uvm_fault() being called from an interrupt
(although there may still be a very short race detecting
the latter; need to investigate further).
2001-07-06 19:00:12 +00:00
mcr 97eac1b54c context argument added to pci_device_foreach(). 2001-07-06 18:04:58 +00:00
mcr b44d7d55a5 added some debugging to error message in pci_intr_map(). 2001-07-06 18:04:22 +00:00
mcr 07ba5352f1 extra argument to pci_device_foreach(). 2001-07-06 18:03:47 +00:00
mcr 8c020dd2f7 when fixing up buses, keep track of the parent of each bus,
and the pcitag to access the primary side of that bridge.
2001-07-06 18:03:17 +00:00
mcr 6244484599 added context parameter to pciaddr_resource_{reserve,allocate}
and to pci_device_foreach().
	added new function pci_device_foreach_min().
2001-07-06 18:02:35 +00:00
mcr b76e5c586a added some error checking on return from rbus_new_root_share(). 2001-07-06 18:01:26 +00:00
mcr 74ed6c9ddb new config file for M700 notebook with Cardbus and CBII support 2001-07-06 18:00:50 +00:00
chs e185109424 implement pmap_k{enter_pa,remove}() correctly.
other misc cleanup.
2001-07-06 05:57:13 +00:00
chs c844daf5ab use pmap_k* for pagemove().
call pmap_remove() explicitly in vunmapbuf() in preparation for
upcoming UVM changes.
2001-07-06 05:53:35 +00:00
hubertf 9f773decdf fix typo in comment 2001-07-05 20:54:28 +00:00
thorpej a06fbc7e4c If the target failed to respond to selection, use XS_SELTIMEOUT,
not XS_DRIVER_STUFFUP.
2001-07-05 16:02:21 +00:00
soda afdb63beb4 a typo in comment. 2001-07-05 14:44:29 +00:00
thorpej 833e756e1e JAZZ front-end for the new MI SONIC driver. 2001-07-05 14:42:35 +00:00
toshii 4866f1a22b Fix typo. s/extention/extension/ 2001-07-05 08:38:24 +00:00
chs 30e0b596c7 implement pmap_k{enter_pa,remove}() correctly.
other cleanup in preparation for upcoming UVM changes.
2001-07-05 07:05:02 +00:00
eeh 707046cec7 New block bzero and bcopy. 2001-07-05 06:37:58 +00:00
eeh 96ee348323 New fpu handling code. 2001-07-05 06:34:56 +00:00
itojun 1e8074db2e sort boot flag to alphabetical order. add -c. 2001-07-05 00:58:45 +00:00
uch 18d4a16bc4 #ifdef notyet power on/off sequence code. it doesn't work. 2001-07-04 18:08:01 +00:00
bjh21 3452c0d0a3 Add PowerROM support to asc(4), csa(4), csc(4) and ptsc(4). Not tested much,
I'm afraid.
2001-07-04 17:54:18 +00:00
bjh21 b8a09ee766 Add dummy "podloader" functions on arm32, and move their declarations to the MI
header file.  This should allow MI drivers to use the podloader functions,
though obviously they'll have to be able to cope if podulebus_initloader()
fails.
2001-07-04 13:58:04 +00:00
bjh21 0be64cc691 Move "podulebus" and "podloader" declarations up into files.podulebus. 2001-07-04 13:49:24 +00:00
bjh21 67ace1b581 Gratuitously make podulebusprint() more standard. It now says:
ea0 at podulebus0 slot 2: address 00:02:07:dd:ee:16, 16-bit, SEEQ 8005
eb0 at podulebus0 [ netslot 0 ]: address 00:00:a4:54:42:cb, 16-bit, SEEQ 80C04

Netslots will be dealt with later (I didn't like the idea of just printing
"slot 8").
2001-07-04 13:38:36 +00:00
eeh 76159ce4fe Replace old bcopy with a much faster version. 2001-07-04 05:57:39 +00:00
bjh21 204fa6d2ef The only use of poduleirqhandler() was commented out, so remove it to
avoid confusion.
2001-07-03 20:47:23 +00:00
uch fd5708022c recompile (by VC6) 2001-07-03 20:40:07 +00:00
uch d9d3df290a reserve correct size of kernel symbol table. 2001-07-03 20:38:03 +00:00
scw 6d598bac6d Another instance of the MD siop driver which slipped the net... 2001-07-03 17:36:01 +00:00
chs 2f9d61f48e vm_offset_t -> [pv]addr_t. 2001-07-03 14:40:41 +00:00
nathanw c45675aa2b The machine check error code is reliably located at an offset of 0x10
in the logout frame. Print it for all fatal machine checks on all
models.
2001-07-03 13:55:42 +00:00
soda cca727ab8c forgot to remove this, when arc/include/pci_machdep.h was added.
pointed out by Izumi TSUTSUI.
2001-07-03 11:26:50 +00:00
chs 640937fe85 change pmap_extract() to deal with unmapped addresses.
remove some unnecessary checks for unmanaged pages.
2001-07-03 07:34:27 +00:00
chs 1e3003dad7 vm_offset_t -> [pv]addr_t.
implement pmap_k{enter_pa,remove}() correctly.
general cleanup.
2001-07-03 06:15:16 +00:00
chs a2dade9e8e move parts that are the same from vmparam3{,x}.h to vmparam.h. 2001-07-03 05:17:12 +00:00
enami 8b9f679d56 Adapt with recent md_root.c change; now you can put a root filesystem image
into separate file if boot loader allows.
2001-07-03 02:37:06 +00:00
bjh21 c6c9e5d915 Act as an entropy source for rnd(4). 2001-07-02 23:49:17 +00:00
bjh21 659b8ab115 Separate out netslot-specific code into its own file, so that one day we can
make it optional.
2001-07-02 23:18:34 +00:00
uch e9040f302e use MI md_root.c 2001-07-02 17:19:09 +00:00
ichiro 07a7db71f2 using bus_space_tag for salcd 2001-07-02 13:52:29 +00:00
matt f05d9cb58a Add PM_SR 2001-07-01 21:41:58 +00:00
matt cafc0288cf Add PM_SR. 2001-07-01 21:41:02 +00:00
matt 6357fdafe8 Add PM_SR 2001-07-01 21:39:17 +00:00
martin 4c2e8da7bb Disable axidently enabled debug code to make -current compile again. 2001-07-01 09:25:33 +00:00
gmcgarry 741d001b9f Sort boot options. Add -c for userconf. 2001-07-01 02:58:38 +00:00
gmcgarry c1d6da70b5 Example options to reduce kernel memory footprint. 2001-07-01 02:16:33 +00:00
gmcgarry a193512e18 Create an empty bootinfo structure. 2001-07-01 01:38:14 +00:00
mrg cfbef2cdef pause other cpus from KGDB. XXX: need to implement other cpu trapframe access. 2001-06-30 20:17:47 +00:00
mrg 6aec628d90 db_cpu_cmd is DDB specific; move it into the DDB specific portions of this file. KGDB compiles again. 2001-06-30 20:16:49 +00:00
mrg e7a53a87be for now, KGDB kernels do not have access to multiple cpu's trapframe. 2001-06-30 20:15:02 +00:00
mrg 9dbb764f88 KGDB needs both zs_putc and zs_getc; make them non-static. 2001-06-30 20:14:00 +00:00
eeh d7b32d756c Use a newer version (still disabled) of block bcopy. 2001-06-30 19:09:38 +00:00
bjh21 4397eef459 Make cpu_reboot do all the standard things. 2001-06-30 16:49:16 +00:00
bjh21 1b14f7d532 Also make it return something. See, Ben, you _do_ need to test every change. 2001-06-30 16:20:37 +00:00
bjh21 f7968131c1 Make arcvideo_show_screen() into a no-op, since it gets called on shutdown. 2001-06-30 16:19:12 +00:00
bjh21 2e95360b2f Add dtide and hcide, since they should work on arm32. 2001-06-30 15:09:38 +00:00
ragge 29455521b5 Do more intelligent calculation of KVM size. This reduces the amount of
pre-allocated physical memory significantly.
A 11/750, for example, get 2MB more free (of 14MB), about 12%.
2001-06-30 12:54:33 +00:00
darcy ce0ec1e208 Add System V semaphore resource limits to each GENERIC file that has an
option for System V semaphores.  It appears that there are no overrides
in the code and each file has the following added.

 options    SYSVSEM     # System V semaphores
+#options   SEMMNI=10   # number of semaphore identifiers
+#options   SEMMNS=60   # number of semaphores in system
+#options   SEMUME=10   # max number of undo entries per process
+#options   SEMMNU=30   # number of undo structures in system
 options    SYSVSHM     # System V shared memory

If anyone thinks that this is incorrect for any of these files, please
correct it.

Note - the i386 port was not forgotten.  It was done separately.
2001-06-30 11:00:31 +00:00
matt 454a630dbd Print both the lower and upper dbat register when printing dbat registers. 2001-06-30 02:03:16 +00:00
matt 39fa08a172 Reset segment registers 1-7 upon entry to kernel (via trap or interrupts)
so that the bat spill code won't run into spurious valid user pages and
treat them as kernel pages.  Restore segment registers 1-7 upon return to
user mode from either a trap or interrupt.   XXX  eventually do all 16 SRs
2001-06-30 01:24:13 +00:00
matt 7c5977ea4f Fix a spurious debug printf.
Fix pmap_procwr to not check a NULL pvo.  (Duh!)
Reformat pmap_print_mmuregs.  Actually *fill in* the dbat registers.
2001-06-30 01:21:24 +00:00
eeh 353e24fc8d Fix fpu save/restore code. 2001-06-30 00:09:08 +00:00
eeh 46392e4bee Fixup fpu save restore, get rid of some unused copy functions, and add
a new bcopy.
2001-06-30 00:08:15 +00:00
eeh 649ea57857 Handle proper saving of the fpstate. 2001-06-30 00:00:41 +00:00
eeh 32267affba Handle saving and restoring the fpstate properly.
(Are these functions ever called?)
2001-06-29 23:58:40 +00:00
eeh 5df2260776 Add the shorter version of block ASIs used by Sun. 2001-06-29 23:56:05 +00:00
toshii 56b40cd78a Fix autoconf related botch: do printf("\n") in attach funcs rather than
in cfprint.
2001-06-29 17:22:50 +00:00
toshii f1e3122487 Fix 3rd arg of config_search(). 2001-06-29 16:58:55 +00:00
toshii 5df8e31135 Probe SA1111's ID register. Fix 3rd arg of config_search(). 2001-06-29 16:58:17 +00:00
toshii 7b01bb9073 Add ID register location. 2001-06-29 16:54:55 +00:00
mrg 2307774c9a #include <machine/autoconf.h> 2001-06-29 03:32:10 +00:00
toshii ff7d26d2ed KASSERT current_intr_depth == 0 before uvm_fault. 2001-06-29 02:43:56 +00:00
toshii 84408cfa2e Catch up long ago arm32 change: vm_offset_t -> {p,v}addr_t. 2001-06-29 02:40:28 +00:00
toshii 8a0e9b17a0 Use ld -X instead of -x, to keep local symbols for DDB.
XXX does other arm ports need this change?
2001-06-29 02:38:32 +00:00
bjh21 7a42a10e95 Gratuitous spelling corrections:
10base2  -> 10BASE2
10baseT  -> 10BASE-T
10baseFL -> 10BASE-FL
2001-06-28 23:01:55 +00:00
ragge 2c4d8265db Panic if page fault on interrupt stack, per request from Jason Thorpe. 2001-06-28 21:54:23 +00:00
matt 03ff023c76 Onfault needs to be done even from interrupts so restore that. Default
to EFAULT for the error.
2001-06-28 21:27:47 +00:00
matt 6ca9622494 Add pmap_interrupt_* to pmap_*map_pa. Remove interrupt toggling from
pmap_pte_spill.  Fix pmap_protect.  Macroize mfsrin instruction.
2001-06-28 20:35:21 +00:00
matt 78c7d18804 Turn on PMAP_MAP_POOLPAGE 2001-06-28 20:31:37 +00:00
uch 7ceb721a2a sample configuration for HP620LX 2001-06-28 19:07:13 +00:00
uch c8af82081b add interrupt monitor for debugging. (disabled by default) 2001-06-28 18:59:06 +00:00
matt fdb7751e9c Update for thorepj's UVM changes. Don't even try to call uvm_fault or do
pcb_onfault recovery while in interrupt mode.  Just die.  Print out error
returned from uvm_fault (-1 for interrupts).
2001-06-28 18:33:39 +00:00
uch c8f9a5d874 console module refers hd64461video's needs-flag instead of hd64461if.
(pointed by MAEKAWA Masahide)
2001-06-28 17:03:47 +00:00
matt 87a64549c4 Change a bcopy to a structure copy. 2001-06-28 15:23:39 +00:00
soren 882f3b1bd2 Const'ify bootblk_commands[] to match lib/libi386.h change. 2001-06-27 22:58:32 +00:00
lukem 69bda4d299 be consistent with #define<TAB> 2001-06-27 22:55:08 +00:00
atatat 28f77f292c add brief descriptions of the contents of the *other* directories 2001-06-27 22:10:13 +00:00
fredette 3543a1603c Removed stand from SUBDIRS. 2001-06-27 19:23:16 +00:00
fredette 9dd442f913 Added a Makefile for the sun2 includes. 2001-06-27 19:22:18 +00:00
fredette 4c566b2daa Include a common header, then define macros that
give the appearance of specific attach args for
the mbio and mbmem buses.
2001-06-27 19:21:49 +00:00
fredette 2cf2ebc67c Now define a suitable ELF32_MACHDEP_ID_CASES. 2001-06-27 19:20:22 +00:00
fredette dd2704a334 Just include a common header. 2001-06-27 19:19:22 +00:00
fredette 4218d61e30 Use _KERNEL_OPT. 2001-06-27 19:08:58 +00:00
fredette dced0aa013 Declare the PROM console device. 2001-06-27 19:02:26 +00:00
fredette 33575e8a53 Now don't include zsvar.h until the end. splzs() is
now defined in machine/cpu.h.  Define zs_peripheral_type.
2001-06-27 19:01:14 +00:00
fredette f76d90d237 Added comments and fixed some macros now that I correctly
understand how to address the sun2 VME bus in the VM hardware.
2001-06-27 18:54:27 +00:00
fredette 5f35b65f29 Now define kernel_context() and restore_context(), these
are used by some sun68k common code.
2001-06-27 18:48:30 +00:00
fredette 451ebb23d2 Converted to use the new bus-specific attach args.
Added the zs_console_flags function, used to tell
MI code what zs is tied up in the console.
2001-06-27 17:41:03 +00:00
fredette 75eb351428 Converted to use the new bus-specific attach args,
and the bus_space_peek_N functions.  Now use hand-defined
macros instead of relying on structure layout to find registers.
Allocate the DMA handles here, since the MI chipset code
doesn't do that any more.
2001-06-27 17:37:04 +00:00
fredette a63be0a0a4 Converted to use the new bus-specific attach args,
and the bus_space_peek_N functions.  Also uses the
sun68k-specific bus_space_copy{in,out} functions.
2001-06-27 17:32:44 +00:00
fredette b480d71a7a Added an attachment for Intel ethernet (ie) at obio.
Added support for the 3Com Ethernet (ec) at mbmem.
2001-06-27 17:24:35 +00:00
fredette 1bf6975d6b Added support for the PROM console. 2001-06-27 17:04:59 +00:00
fredette fdc8ed9a06 Updated for ELF support. 2001-06-27 17:03:10 +00:00
fredette 79f31f9463 A sun2 is also a sun68k kind of a machine, and it also uses ELF. 2001-06-27 16:59:57 +00:00
fredette e702f4a813 Now uses the sun68k common code. Changed how the keyboard
and mouse attach.  Added support for ie at obio, the ec adapter.
2001-06-27 16:57:57 +00:00
fredette 9e33b7b680 Updated with VME machine support, a.out compat,
some zs and console changes.
2001-06-27 16:51:20 +00:00
darcy 685fb6365d Added the commented lines with the defaults for the system values associated
with System V semaphores.
2001-06-27 13:40:12 +00:00
nisimura 229c5757e6 Cobalt MIPS servers are known to have QED RM5200 processor. 2001-06-27 08:44:24 +00:00
nisimura 0533d3265c Do a straight and simple cpu identification in cpu_attach(). 2001-06-27 08:20:44 +00:00
fredette 08068ecc5d Don't unmap the PROM's first four physical/virtual pages
inside pmap_bootstrap, instead we will wait until we have
installed our vector table.
2001-06-27 03:41:27 +00:00
fredette d5598f2f68 Made these files part of the sun68k common code. 2001-06-27 03:32:49 +00:00
fredette 39fb6a6f16 Now netintr and sun2_find_prom_map have prototypes in
the common sun68k code.  Added prototypes for g0_entry
and g4_entry so that prom_abort() can use them.
2001-06-27 03:31:42 +00:00
fredette 7a083fffc2 Don't set up the g0 and g4 handlers here, now prom_abort()
does this.  Include the common m68k 16-bit aligned copy routines.
2001-06-27 03:25:31 +00:00
fredette 4d85da3f79 Moved much softint and bus_space/bus_dma code
to the common sun68k code.
2001-06-27 03:16:02 +00:00
fredette ee7503cf71 Converted to use the new bus-specific attach args. 2001-06-27 03:00:45 +00:00
fredette a50332b3e7 Converted to use the new bus-specific attach args,
and the bus_space_peek_N functions.
2001-06-27 02:59:26 +00:00
fredette 19f9c211b0 Added a kernel files/devices config file covering
the common sun68k code.
2001-06-27 02:55:30 +00:00
fredette c0cf0f4a11 Added a Makefile to install sun68k common headers. 2001-06-27 02:53:39 +00:00
fredette fef1479cf8 Now give at least the appearance of having bus-specific
attach args.  In reality everything is still one structure,
now called mainbus_attach_args, and a series of macros
creates the illusion.
2001-06-27 02:53:07 +00:00
fredette 1a29a16e5a Now define splzs() here. 2001-06-27 02:51:45 +00:00
fredette 5d81b8d269 Added common sun68k autoconfiguration and bus_space
related code.  Currently used by sun2.
2001-06-27 02:48:32 +00:00
chris e2d29421a9 Add checks (make non DIAGNOSTIC) to make sure that we never call uvm_fault from an interrupt. 2001-06-26 22:09:19 +00:00
uwe 6a127dddd8 KNF: put parens around returned values. 2001-06-26 20:35:54 +00:00
uwe b4ded8ad61 Some OpenFirmware client services return -1 on error, while the rest
of the code expects zero.  Add some wrappers so that opf promops are
consistent with obp promops.  Now microSPARC-IIep correctly panics ;)
While here, propagate 'static' to opf_* definitions.
2001-06-26 20:21:59 +00:00
uwe 67a5f8fc0a OF_finddevice uses -1 to signal error. Make it zero to match what
the rest of the code expects the error value to be.
2001-06-26 19:37:54 +00:00
bjh21 e0e53bb8fe Change the DUBUG check on interrupt depth in do_fault() into a KASSERT, since
we're never allowed to call uvm_fault from an interrupt.
2001-06-26 19:37:18 +00:00
bjh21 ead93c630b Chomp out the old, unused undefined_handler(). 2001-06-26 19:22:02 +00:00
thorpej 0910b96106 Panic if we get an MM trans/prot fault in interrupt context. 2001-06-26 17:29:28 +00:00