Commit Graph

26033 Commits

Author SHA1 Message Date
bjh21 bfc2063e69 Create an ARM2-specific undefined-instruction handler which deals with the
undef/SWI bug and handles emulating SWP.

Untested bacuse my ARM2 machine isn't currently set up.
2001-03-17 18:12:09 +00:00
jdolecek 3261555469 bump maxusers to 8 2001-03-17 09:55:32 +00:00
jdolecek f3d3e9a30e add elmc(4)
convert from memory disk to diskless-type config
2001-03-17 09:53:54 +00:00
mrg 0fcd32a415 "mach cpu" is MP only. 2001-03-17 01:54:17 +00:00
leo a5fdf3f1cf Atari specific stuff to implement the Milan floppy. The Milan uses standard
ISA floppy hardware. Configure as:
    fdcisa0 at isa? port 0x3f0 irq 6 drq 2
2001-03-16 21:31:55 +00:00
marcus fab9e9b3bb sc_port_units was set incorrectly at probe time. 2001-03-16 19:57:49 +00:00
bjh21 9dfd56f6dc Make this compile with "options DEBUG" again. 2001-03-16 18:11:57 +00:00
hubertf cda43785c6 Add comment on what 'overtemp' is about. OK'd by eeh. 2001-03-16 10:47:25 +00:00
mrg e44f962032 steal a few mach commands from sparc64. add a #if 0'ed "mach cpu" 2001-03-16 10:28:53 +00:00
mrg 48fc32e16e #ifdef DDB, add new function cpu_debug_dump(). define CPU_INFO_ITERATOR and
CPU_INFO_FOREACH.
2001-03-16 10:26:11 +00:00
tsubai e679c63257 Accept 8000Hz (XXX). 2001-03-15 19:55:16 +00:00
tsubai 5eab0287fb Use write-through caching for video ram. (Disabled by default, for now.) 2001-03-15 19:48:04 +00:00
tsubai 4382a59d64 Add ulinear16 support.
Return EINVAL if specified rate is not available.
2001-03-15 19:42:42 +00:00
uch 054158f994 HD64461 UART module support. 2001-03-15 17:30:55 +00:00
uch 106c0aee60 setup bootinfo.bi_cnuse at bootloader phase. 2001-03-15 17:24:45 +00:00
tsubai 123c25cc93 Remove PAGER_MAP_SIZE definition -- use default value. Instead, decrease
VM_MAX_KERNEL_BUF.
2001-03-15 16:06:59 +00:00
chs ac3bc537bd eliminate the KERN_* error codes in favor of the traditional E* codes.
the mapping is:

KERN_SUCCESS			0
KERN_INVALID_ADDRESS		EFAULT
KERN_PROTECTION_FAILURE		EACCES
KERN_NO_SPACE			ENOMEM
KERN_INVALID_ARGUMENT		EINVAL
KERN_FAILURE			various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE		ENOMEM
KERN_NOT_RECEIVER		<unused>
KERN_NO_ACCESS			<unused>
KERN_PAGES_LOCKED		<unused>
2001-03-15 06:10:32 +00:00
mrg ef26546e15 lock the kernel around calling interrupt stubs. 2001-03-15 03:20:43 +00:00
mrg 122b3a0e67 sprinkle KERNEL_LOCK() and KERNEL_PROC_LOCK() where they're missing. add
SYSCALL_DEBUG support to trap.c.
2001-03-15 03:01:39 +00:00
toshii c08eec9f47 Use hpc/hpc/disksubr.c. 2001-03-14 14:47:40 +00:00
toshii 300d398485 Move references to arm/arm/disksubr*.c from files.arm to
files.{arm26,arm32,dnard}.
2001-03-14 14:39:45 +00:00
eeh b612a766a7 Handle overtemp intr. 2001-03-14 00:52:19 +00:00
bjh21 c3c5158d00 Change the value of tf_pc in undefined-instruction handlers on arm32. It now
always points to the undefined instruction in question.  It's up to the
handler to advance it to the next instruction if it wants execution to
continue there.  This is how things have always worked on arm26.
2001-03-13 23:56:48 +00:00
bjh21 ce3ad2275b Update FPU detection to use remove_coproc_handler(). 2001-03-13 23:51:48 +00:00
bjh21 a7ba6bb441 Update for new linked-list undefined-instruction handler. 2001-03-13 21:00:13 +00:00
bjh21 aebf9049d4 Update to use install_coproc_handler_static(), since install_coproc_handler()
isn't safe this early.

XXX hpcarm should use db_machine_init() to do this.
2001-03-13 20:52:48 +00:00
bjh21 c72a18bddc Separate out the SIGTRAP (gdb breakpoint) generator from undefinedinstruction()
so it's no longer a special case.
2001-03-13 20:22:02 +00:00
bjh21 db1f089718 Initialise the undefined-instruction handler at startup. 2001-03-13 20:20:43 +00:00
scw bb17ec14d3 Conditionalise inclusion of opt_compat_svr4.h for the benefit of LKMs. 2001-03-13 18:47:19 +00:00
uch 2e79fe1ec7 add SH4 configuration.
(SH) don't access SCIF if the Windows CE's COM1 is not connected to SCIF.
2001-03-13 16:31:29 +00:00
tsutsui 43bd337868 Update for recent changes to the MI i82586 driver.
(added 'why' argument to the channel attention hook function)
2001-03-13 16:31:14 +00:00
sato ae8397d1f8 comment out:options WSDISPLAY_DEFAULTSCREENS=4 2001-03-13 03:44:23 +00:00
is e2e5c62d49 Make this compile again (when building the LKMs). 2001-03-12 21:00:02 +00:00
manu c1faa5c059 enabled COMPAT_LINUX for sandpoint 2001-03-12 20:10:06 +00:00
wiz c79d6f4378 Fix typo in comment reported by Yuji Yamano in kern/12391. 2001-03-12 17:26:37 +00:00
tsubai 9f1a6e07a4 Round up block size to at least NBPG bytes. 2001-03-12 15:41:52 +00:00
sato ee1d25e7bd * assume backlight is on if backlight value cannot get.
* move the lcd control codes used config_hook_call()
  in *_hardpower() to *_power().
2001-03-12 08:54:25 +00:00
sato 859d83dd22 * vrc4172pwm_get_light() return the value masked by VRC2_PWM_LCDEN_MASK.
* when resume from suepend, restore saved value instead of always on.
2001-03-12 08:46:27 +00:00
toshii 1bb261e173 Fix interrupt handling somewhat so that break signal gets DDB. 2001-03-12 03:27:18 +00:00
scw e4a4f09fa8 Make this compile again; chan_attn() prototype has changed. 2001-03-11 20:24:52 +00:00
mhitch 1c10294eb2 ELF ABI requires address to be returned in A0.
Change an external reference from absolute address to PC-relative.
2001-03-11 20:15:02 +00:00
mhitch 5a182288c0 ELF ABI requires address to be returned in A0. 2001-03-11 20:10:04 +00:00
mhitch 751017e6c1 Pack the ExecBase structure to avoid aligning contraint problems with ELF
compiler
2001-03-11 20:09:07 +00:00
uch cb1bebe07e remove unneeded include. 2001-03-11 16:45:13 +00:00
bjh21 b1475781a2 Make arm26 implementation of DDB slightly less gratuitously different from the
ARM one.  Also update for recent undefined-instruction handler changes.
2001-03-11 16:31:05 +00:00
bjh21 ce5529eabf Change undefined instruction handler to use a linked list for each
co-processor.  This is necessary so we can have several handlers for
CP0 (used as a catch-all for non-CP instructions).

Handlers are now removed using remove_coproc_handler(), rather than by calling
install_coproc_handler() with a NULL handler.

Because install_coproc_handler() can now allocate memory, there's a version
for use at boot time that doesn't.
2001-03-11 16:18:39 +00:00
bjh21 c6c5fda4be Use <arm/undefined.h> 2001-03-11 16:14:36 +00:00
bjh21 4624a1247e Make this suitable for use on arm26 as well. 2001-03-11 16:02:21 +00:00
bjh21 5f8b55f7c3 Pass a softc pointer around everywhere, and use it when we need the name of
the device.

Don't pretend that fpe0 and fpu0 exist as devices (they don't).

G/C a few items related to /dev/cpu* support.
2001-03-11 15:05:43 +00:00
toshii ffe630e7c3 Sync with sa11x0_reg.h rev 1.4. 2001-03-11 14:37:03 +00:00
takemura 1ab9404c3c Fix definition of MQ200_GCR(n). This definition was quite bad! 2001-03-11 13:53:31 +00:00
toshii 43d63b4d48 Make hpcboot functional when jornada 720 or iPAQ is selected
at the boot menu.
2001-03-11 11:47:24 +00:00
wdk b9b387d9b1 Remove function decl that doesn't belong in cpu.h 2001-03-11 09:20:58 +00:00
wdk 13de0e4f2b 1. Remove cpu_exec_ecoff_hook
2.  Invoke KGDB if booted with RB_KDB flag
3.  Don't round up page address when zeroing BSS - this can overwrite debug
    symbols
2001-03-11 09:19:31 +00:00
ichiro ea4611b0cd add ExtendedGPIO desc of iPAQ H3600 2001-03-11 07:27:36 +00:00
ichiro 2cb44b8020 add h3600 and jornada720 gpio port and irq 2001-03-11 06:00:42 +00:00
takemura 5cb5569c63 Apply 'CF hack' to all model of Cassiopeia E series. 2001-03-11 05:18:51 +00:00
bjh21 f61ad8fa80 G/C more unused elements of struct _cpu. 2001-03-11 00:14:56 +00:00
bjh21 d005972168 "needs-flag" for cpu is no longer needed. 2001-03-11 00:11:05 +00:00
is 782a7670e9 - The ioblix zbus board comes in 24 MHz and 22.1184 MHz clock variants.
We default to the (newer, more sane) 22.1184 MHz value, but set it from
the iobzclock variable (in Hz), which is initialized from the IOBZCLOCK
configuration option and patchable.
XXX we should time the clock at system startup.
- add ioblix_zbus to the GENERIC configuration.
2001-03-10 23:55:29 +00:00
bjh21 c7bfcc0130 These are no longer used. 2001-03-10 23:31:32 +00:00
bjh21 29e609e3c5 Update for recent changes to the i82586 driver. 2001-03-10 22:32:17 +00:00
bjh21 ca5024c3a1 Add code to point out to the user if their CPU isn't supported, and to
suggest what kernel options to use to get it to work.
2001-03-10 21:27:06 +00:00
bjh21 b362a4bef3 Change the meaning of cpu_class. It now has one value for each core we
support, which corresponds to one for each CPU_* option, or one for each
cpufunc structure.

Also remove some more residual code for the support of multiple and non-ARM
CPUs.
2001-03-10 20:15:46 +00:00
bjh21 c24be229f5 Don't allow the I and F (IRQ and FIQ disable) flags to be set in the PSR
by sigreturn.  This prevents user processes disabling interrupts by messing
with their signal context.
2001-03-10 20:08:55 +00:00
bjh21 b01c113e98 ARM7TDMI != ARM7 for our purposes (it has an ARMv4 CP15). 2001-03-10 20:03:51 +00:00
toshii a9e9b871de Add sacc, sacpcic, and sagpcic. 2001-03-10 19:05:40 +00:00
toshii f14e35f58e Driver code for SA11x1 based PCMCIA devices. 2001-03-10 19:01:27 +00:00
toshii 79d31f6571 Common driver code for SA11x0 PCMCIA function. 2001-03-10 19:00:39 +00:00
toshii 57abc92eeb This file is no longer used. PCMCIA driver code is divided into
sa11xx_pcic*, sa11x0_pcic* and sa11x1_pcic*.
2001-03-10 18:59:22 +00:00
tsutsui 51cdfbfa9b Fix error on config without options news1700.
DC_BE and IC_BE bits are enabled at runtime since rev 1.7.
2001-03-10 18:58:16 +00:00
toshii 2d36b2225d Support SA1111 companion chip. 2001-03-10 18:50:37 +00:00
tsutsui 7346883e17 Don't include opt_compat_svr4.h on building LKM. 2001-03-10 18:39:04 +00:00
rearnsha bf5e18af99 Add param.h to INCS. 2001-03-10 18:32:25 +00:00
toshii 356943c6c4 Fix nit. Read functions were actually writing. :-( 2001-03-10 17:32:14 +00:00
uch c5be09ee66 add README. 2001-03-10 16:24:54 +00:00
bjh21 0bcb071684 Correct CPU_ID_ISOLD() and CPU_ID_IS7(). 2001-03-10 16:19:59 +00:00
toshii 3a52278a23 Map GPIO registers in saip. 2001-03-10 15:34:38 +00:00
toshii 4c08e34e90 hpcarm/hpcarm/ast.c is no longer. 2001-03-10 14:10:51 +00:00
toshii b2cb6de80e Use sa11x0_bs_tag instead of mainbus_bs_tag. 2001-03-10 13:34:34 +00:00
toshii a62d9f6fa0 Handle the offset argument in bus_space_{read,write}* correctly. 2001-03-10 13:29:38 +00:00
toshii 4333644371 Copy bus_space_map() function from arm/mainbus/mainbus_io.c. 2001-03-10 13:27:53 +00:00
minoura 8cba02bdf9 Turn off options JUPITER temporarily.
This may cause problems on some newer accelerators.
We might have to write a more accurate detect code.
2001-03-10 03:23:09 +00:00
leo b44e732ff6 Expand bus_dma implementation. It will now handle the bounce buffer
extensions needed to make the isa floppy driver on the Milan work.
2001-03-09 20:55:46 +00:00
thorpej 85868e3c09 Pay attention to BUS_DMA_STREAMING when builing an IOMMU TTE. 2001-03-09 20:05:39 +00:00
toshii 9224009c5d Fix bugs in delay().
- it could wait infinitely.
 - large roundoff error.
2001-03-09 18:55:29 +00:00
bjh21 1f9f430e03 Patch from Richard Earnshaw:
Add some calls to drain the write buffers -- these are particularly
important when we are trying to synchronize I$ and D$.
2001-03-09 16:24:51 +00:00
bjh21 5a6e5a05e3 Increase the size of regions for which we use the single line flush
commands -- profiling shows this to be a major win over flushing the
entire cache (since the likelihood is that such lines won't be in the
cache anyway).

Patch supplied by Richard Earnshaw.
2001-03-09 16:17:19 +00:00
toshii aa76b5208c Make it compile again after arm, arm32 changes. 2001-03-09 12:13:15 +00:00
pk 1b84e6fb33 pasto: sc_maddr => sc_mem 2001-03-09 10:19:54 +00:00
sato 80214041c7 support WSDISPLAYIO_SVIDEO/WSDISPLAYIO_GVIDEO.
lcd on/off
2001-03-09 08:54:18 +00:00
bjh21 f6c36838ae Use the same undefined-instuction handler on both arm26 and arm32. The handler
is derived mostly from the arm32 version, but with a check for an obscure ARM2
bug thrown in.

arm26 fpu and cpu drivers use the new interface for catching undefined
instructions.
2001-03-08 21:30:35 +00:00
bjh21 c0aee693f5 Add a missing part of FPU support. 2001-03-08 21:12:48 +00:00
is 6288edb5bd Add rcsid. 2001-03-08 19:21:53 +00:00
uch 736e48bc36 enable CF slot. 2001-03-08 15:21:31 +00:00
uch 41207e71d6 channel 1 interface don't provide fake pcmcia io space tag. 2001-03-08 15:13:14 +00:00
thorpej 5dedbd1c97 Duh, don't forget the proc argument. 2001-03-08 01:46:18 +00:00
thorpej 3423154d78 Use bus_dmamap_load(), not bus_dmamap_load_raw(). 2001-03-08 01:38:57 +00:00
thorpej 2c4c690f14 Add the BUS_DMA_STREAMING flag. 2001-03-07 22:42:16 +00:00
tsubai 5e917b9c4d Add another CPU ID for G4; PowerBook G4 has different PVR value. 2001-03-07 12:44:05 +00:00