Commit Graph

26773 Commits

Author SHA1 Message Date
uch bf58a25f9b weakly machine dependent configuration moved to machine_config.cpp 2001-03-22 18:20:35 +00:00
uch 62bef7c830 fix file pointer bug. 2001-03-22 18:19:36 +00:00
uch f0190d355c add machine independent serial console method. (use WinCE API) 2001-03-22 18:19:09 +00:00
uch 985f960311 add HP Jornada 690 Hungarian, German entry and
my target machines (CASIO Cassiopeia A-55V, HITACHI PERSONA HPW-650PA).
2001-03-22 18:16:13 +00:00
jdolecek 031c6d8c24 Add MCA ep(4) attachment, for 3Com 3c529-type cards. Tested with 3c529-TP,
provided to me by David Brownlee (thanks!).

Performance of this card is quite poor on my PS/2 with 386DX, like 100KB/s
at best, but as low as 5KB/s when transferring bigger files due to
packet overruns. It would be good to revisit this later, probably by
teaching the ic code to use RX Early.
2001-03-22 16:54:45 +00:00
mrg 74786e7894 remove overzealous locking changes. 2001-03-22 15:56:43 +00:00
minoura 23d323f4f9 Sync with amiga 1.15.
Make this compile again (when building the LKMs).
2001-03-22 12:47:11 +00:00
minoura b711716241 A bit of ELF support. From scw. 2001-03-22 12:46:19 +00:00
matthias 2282e42ec2 Fix type in pliptransmit declaration (C version). Noticed by
Tyrel Beede <tb90@mail.csuchico.edu>.
2001-03-22 08:14:23 +00:00
mrg 0fa02bb6e6 sync with sparc64. 2001-03-22 06:21:43 +00:00
mrg e563dea3f6 sync with sparc64 (just some debug messages.) 2001-03-22 06:21:15 +00:00
tsubai ce8902b7fe Merge my MP tree. At this point, Daystar dual 604 card (i.e. Power Macintosh
9500/180MP and 9600/200MP) runs at least into single-user mode, possibly
multi-user mode (not stable yet).
2001-03-22 04:11:46 +00:00
toshii 2d6322c3be Handle ELF symbol table. 2001-03-22 03:45:39 +00:00
lukem 9f60674a47 now that duplicated stuff has been moved to sys/conf.h, remove unnecessary
defs for: lpt, joy, pc
2001-03-21 23:42:14 +00:00
lukem 723cd818d8 move duplicate definitions for:
pc, lpt, joy, ocis, apm, satlink, i4bctl, i4brbch, i4btel, i4btrc, i4b
from the port-specific arch/*/*/conf.c files into sys/conf.h
2001-03-21 22:25:52 +00:00
ragge 4a933b0a25 VAX_STYP_690 added, from Lord Isildur. 2001-03-21 21:11:13 +00:00
soren 912c115675 s/vm_page_alloc_memory/uvm_pglistalloc/ in panic message. 2001-03-21 18:40:28 +00:00
toshii 7e9512010c Oops. I forgot this line. 2001-03-21 17:43:39 +00:00
toshii 4b32677535 Map DMA controller and disable its DMA channels. 2001-03-21 17:42:37 +00:00
toshii f8dab8e69a Make card insertion/removal work.
XXX powerdown and {io,mem}_unmap are still missing.
2001-03-21 16:16:35 +00:00
toshii 7c429e90c2 Handle interrupt polarity. 2001-03-21 16:08:34 +00:00
toshii f1b9737b90 Fix nit. 2001-03-21 14:48:30 +00:00
toshii d16849a006 Make this compile again. 2001-03-21 14:40:00 +00:00
toshii b0b31f8cfc Rebuild binaries after ELF symbol table support. 2001-03-21 14:18:28 +00:00
tsutsui 8c60f09e43 - Use ${PRINTOBJDIR}
- size -> ${SIZE}
2001-03-21 14:08:03 +00:00
toshii 358a8ee71a Load ELF symbol table for DDB. 2001-03-21 14:06:25 +00:00
toshii 5b519fb0f9 Fill in framebuffer address for jornada720. 2001-03-21 14:05:10 +00:00
tsutsui 45480ac3bc Move rules to create m68k and machine symlinks to common Makefile.inc. 2001-03-21 13:43:58 +00:00
tsubai 577fa61b83 Enable interrupts before calling interrupt handler(s). 2001-03-21 11:38:39 +00:00
tsutsui 34e44075e0 - Remove "NOMAN= yes"
- Use "WARNS?= 1" rather than add warning options to COPTS.
2001-03-21 11:08:52 +00:00
tsutsui 650e6506dc Remove "NOxxx= yes" lines since "MKxxx= no" is enough. 2001-03-21 11:02:24 +00:00
tsutsui 9ae0cb4d12 Make sure to create m68k and machine symlinks to include loadfile_machdep.h. 2001-03-21 10:58:54 +00:00
mrg 47e6a41505 only lock the kernel around sy_call if !SYCALL_MPSAFE 2001-03-21 09:01:16 +00:00
chs 11fe9ca446 use ubc_winshift instead of ubc_winsize in pmaps to set up kernel
virtual space.  the latter isn't initialized yet when the value is needed.
fixes PR 12440.
2001-03-21 03:16:05 +00:00
mrg af58b235e0 adapt to systems with out interrupt-map & interrupt-map-mask properties. 2001-03-21 01:33:47 +00:00
pk b54ea24924 Merge in4_cksum(). 2001-03-21 00:38:47 +00:00
bjh21 de59def2f2 Remove spurious #define mod_base. 2001-03-20 23:29:07 +00:00
bjh21 998606396f Move struct podule_list and struct podule_description to podulebus.h.
They're MI, even if only arm32 actually uses them at present.
2001-03-20 23:27:04 +00:00
bjh21 86d6442c28 Move machine-dependent podulebus headers to <machine/podulebus_machdep.h>.
<dev/podulebus/podulebus.h> is the canonical file to include, and includes
<machine/podulebus_machdep.h>.
<arch/${MACHINE}/poudulebus/podulebus.h> remains for backward compatibility.
2001-03-20 22:59:39 +00:00
bjh21 61e80eef9b As Richard Earnshaw pointed out, bus_space_copy_1() and bus_space_copy_2()
had the wrong names and did the wrong things.  Both are now fixed.
2001-03-20 22:56:16 +00:00
reinoud df2b9ae2bd Initial commit of wscons for the RiscPC/A7000 arm32 family. There is still lots
to do notably the mouse, some issues about 4 bpp modes and most of all Xwscons !

This code will still allow usage of the old vidcconsole complete with X etc.
Note that the wscons code can now only be booted with the new bootloader but
kernels compiled with vidcconsole can still be booted the old way.
2001-03-20 18:20:53 +00:00
toshii 1f21d8b280 hpcarm kernel is ELF. 2001-03-20 18:01:49 +00:00
uch b4095cd8bf support HITACHI PERSONA configuration. 2001-03-20 16:05:42 +00:00
uch 889e6d332a initialize TMU 2001-03-20 16:04:01 +00:00
uch 39081f8af1 make HD64461 UART module usable on HITACHI PERSONA 2001-03-20 16:03:28 +00:00
tsubai dc7eafe744 Redo previous. Instead of defining another type, mask upper bits of pvr. 2001-03-20 15:52:07 +00:00
reinoud 482f11868a Added dependency for "VIDCCONSOLE" (old console code) for the physcon char
device on console (makedev(4,0)) to aid in wscons transition.
2001-03-20 15:39:16 +00:00
reinoud adbed15428 Replace `bitsperpixel' by `log2_bpp' for thats the value that is in it
and not the number of bits per pixel !
2001-03-20 12:52:03 +00:00
reinoud e8f67fd5b7 `bitsperpixel' in the bootconfig structure is replaced by `log2_bpp'
for thats the value that is in it anyway and not the number of bits per pixel !
This to avoid confusion.
2001-03-20 12:50:08 +00:00
reinoud 2ac5b2f7cf Replace `bitsperpixel' by `log2_bpp' for thats the value that is in it
and not the number of bits per pixel !
2001-03-20 12:48:37 +00:00
matt 96184e84cf Add a diagnostic when we encounter an unknown boot device type. 2001-03-20 05:51:35 +00:00
lukem 7fec679447 sync to GENERIC 1.400 2001-03-20 05:49:32 +00:00
bjh21 0fe2c0aedc These have moved to sys/dev/podulebus. 2001-03-20 00:13:16 +00:00
bjh21 2c4e09f4c9 Revert last change, which shouldn't have applied to this file. 2001-03-20 00:04:28 +00:00
bjh21 23836945a3 Redefine bus_space_addr_t to be a raw address, for compatibility with arm32
podulebus drivers.
2001-03-20 00:03:10 +00:00
bjh21 34cca2e23e Pull in shared podulebus drivers. 2001-03-20 00:01:37 +00:00
bjh21 2821b16ef4 Quick hack implementation of region ops. Not very pretty, but good enough
to get ei(4) working on arm32.
2001-03-19 23:56:45 +00:00
bjh21 4d5762c860 This file depends on <machine/io.h>. 2001-03-19 23:03:59 +00:00
bjh21 e7cc62cc44 A few #defines for the common podulebus API. 2001-03-19 22:59:13 +00:00
rearnsha 51e6b460ab Slightly smaller code and tune for StrongARM. 2001-03-19 22:51:51 +00:00
jdolecek 1360c6c34c add com at mca, bpfilter
add comment for elmc, describing what it is for
2001-03-19 22:08:17 +00:00
bjh21 1c300d3ee8 Make pa_*_base bus_addr_ts. 2001-03-19 21:03:47 +00:00
tsutsui 7ba79ec9f4 Switch news68k to ELF:
- Move options EXEC_ELF32 to std.news68k
2001-03-19 17:06:11 +00:00
tsutsui e0694eb01f Switch news68k to ELF:
- Move options EXEC_ELF32 to std.news68k
 - Add options COMPAT_AOUT_M68K to each config file
2001-03-19 16:59:19 +00:00
mrg 0b2a9fa53d kill QUOTA on everglades. 2001-03-19 05:35:51 +00:00
chs c40daf0aed change uvm_winsize to uvm_winshift so that we can avoid division
by a non-constant value.
2001-03-19 00:29:03 +00:00
chs e47583af2c missed some KERN_FAILUREs. 2001-03-18 23:43:53 +00:00
rearnsha 77d7115444 Spelling mistake (saftey -> safety). No functional change. 2001-03-18 18:49:37 +00:00
chs e533061fce in mem_access_fault*(), when invoking the pcb_onfault mechanism, pass the
return value of uvm_fault() to the onfault routine via %o0.  users of
pcb_onfault now return this value to their callers rather than always
returning EFAULT. this allows i/o errors in VOP_GETPAGES() to be returned
back to read(), etc.
2001-03-18 17:11:22 +00:00
rearnsha f8ffa07954 Always restore the spl value when returning form physconkbd. 2001-03-18 17:03:26 +00:00
rearnsha 62dd3b3608 Fix a couple of cases where we could return without restoring the
SPL value.  Fixes a problem with the Xserver on A7000 kernels.
2001-03-18 17:00:56 +00:00
bjh21 614827277d Switch over to using podulebus_irq_establish(). 2001-03-18 16:58:55 +00:00
bjh21 5c98fe3fec Gratuitous change of signature for podulebus_irq_establish(). It now takes
an opaque podulebus_intr_handle_t, which can be found in podulebus_attach_args.
It's actually the slot number, but don't tell anyone.
2001-03-18 15:56:04 +00:00
itojun 846f79ea76 LAMB uses nonstandard timer frequency. set TIMER_FREQ to appropriate
value (otherwise severe clock delay will result).
http://www.wildlab.com/bbs/logview.cgi?pg=9&no=521
2001-03-18 15:24:14 +00:00
mrg 3bb2b205f9 show the cpu a process is running on in proc 2001-03-18 14:24:10 +00:00
mrg 45d39a2030 redo previous slightly differently. 2001-03-18 14:10:34 +00:00
mrg e82b5bb630 "mach slock" for simple_locks 2001-03-18 14:06:10 +00:00
bjh21 949f93d279 If uvm_fault() returns an error, pass it on to the pcb_onfault handler
if there is one.  They already arrange to return it to their callers.
2001-03-18 14:04:04 +00:00
chs 1fae55f3ae in trap(), when invoking the pcb_onfault mechanism, pass the return value
of uvm_fault() to the onfault routine via %eax.  users of pcb_onfault now
return this value to their callers rather than always returning EFAULT.
this allows i/o errors in VOP_GETPAGES() to be returned back to read(), etc.
2001-03-18 02:53:09 +00:00
bjh21 6c42a5d73a Move over to using podulebus_irq_establish. 2001-03-18 01:31:03 +00:00
bjh21 63059bd6dc Remove redundant sc_ih from struct ea_softc. 2001-03-18 01:30:30 +00:00
bjh21 b369fdfd44 Use podulebus_irq_establish().
To avoid complexity, don't bother with ea_irq_claim() and ea_irq_release() any
more.  This driver will be replaced with an MI one soon eough -- it just
happened to be convenient for me to test.
2001-03-18 00:00:43 +00:00
bjh21 f98a674d6d Add podulebus_irq_establish(), with the same spec as the arm26 one. 2001-03-17 23:58:43 +00:00
is d7e64c2e21 Method array for a really big inter-byte offset. 2001-03-17 22:03:12 +00:00
bjh21 16198f2b92 Podulebus convergence:
pa_memc_[th] -> pa_mod_[th]
Add pa_easi_*
Add pa_*_base
Add pa_slot_flags to indicate whether EASI is supported.
2001-03-17 21:56:06 +00:00
leo 14d2d5706f Conditionalize inclusion of the interrupt handlers for 'kbd', 'zs' and
'ncrscsi' since they are not present on the Milan.
2001-03-17 20:56:31 +00:00
bjh21 697e84ed46 Update for new location of podules.h and podule_data.h 2001-03-17 20:34:43 +00:00
bjh21 e6a3d0d5c9 Move generated files from sys/arch/arm32/podulebus to sys/dev/podulebus. 2001-03-17 20:32:00 +00:00
bjh21 255336b13c Migrate known-podules list from arch/arm32/podulebus to dev/podulebus. 2001-03-17 19:05:19 +00:00
bjh21 17b6222740 Small beginnings of podulebus convergence: Have podule drivers print colons
in attach messages, rather than doing it in podulebusprint().
2001-03-17 18:46:25 +00:00
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
tsubai 83eac66533 Cosmetics. 2001-03-07 08:18:45 +00:00
tsubai 973904ff17 Include trap_subr_mp.S if MULTIPROCESSOR is defined. 2001-03-07 08:12:55 +00:00
tsubai bf498eb12e Remove MULTIPROCESSOR part. (moved to separate file) 2001-03-07 08:10:44 +00:00
tsubai 90aabafdd1 MP version of trap routines. 2001-03-07 08:05:07 +00:00
briggs 20d5755843 Set the PCI mem tag to 0. The BAR already contains the value that was here. 2001-03-07 05:52:28 +00:00
eeh 4e77731eee Fix inverted preprocessor logic. (Spotted by Charles.) 2001-03-07 01:47:02 +00:00
itohy 7ffa2a0375 Add RTC_OFFSET support to inittodr() on dreamcast.
No changes to other sh ports.
2001-03-07 00:47:22 +00:00
bjh21 4ada0ac792 Create cpufunc_null_fixup() to replace all the CPU-specific abort-fixup
routines that did nothing.
2001-03-06 22:29:13 +00:00
thorpej 51aeeceeaf Clean up TLB trap handling a little.
- When printing a user trap, include p->p_comm in the message.
- In the TLB fault handler, don't just go charging along if
  the fault can't be handled.  If we get a fatal kernel TLB
  fault, we need to panic!  Or, if DDB is enabled, call the
  Debugger().
2001-03-06 21:58:23 +00:00
briggs 9fcf8e36a4 Sync with reality. Add NetBSD tag. 2001-03-06 20:16:09 +00:00
briggs d6ff14bfde Update the defaults of MAXTSIZ, DFLDSIZ, MAXDSIZ, DFLSSIZ to those used
in macppc.
2001-03-06 20:11:41 +00:00
briggs 7446055d62 Disable interrupts during autoconf.
Move identifycpu() from machdep.c to autoconf.c, make it table-driven, and
add a few more models to it.
2001-03-06 20:10:20 +00:00
mycroft 237ef77d7f Optimize a little more for the case where `off' is entirely covered by one
mbuf -- which is always is.
2001-03-06 19:20:51 +00:00
mycroft f7a6910822 Rework the in4_cksum() code a bit. 2001-03-06 19:14:37 +00:00
fvdl e55dd7530b Use assembly version of in4_cksum (which is a piece of code that
does some of the extra work and then jumps into in_cksum).
2001-03-06 14:55:13 +00:00
pk a917eabaec * A couple of `#if defined(SUN4M)' should be `#if defined(MULTIPROCESSOR)'
* Print notice if not all CPUs were attached
* Switch to SMP version of cache flush routines in just one place: in
  cpu_attach() after all known CPUs have been configured.
2001-03-06 13:39:22 +00:00
mrg f1d2503dc5 rework pci_attach_hook() to just deal with the INO, not the full
interrupt number.  properly find interrupts for the E250.  modify
pci_intr_map() accordingly.  retire psycho_intr_map().  deal with
INO values upto 0x3f, not upto 0x32.  restructure sabre_init() and
psycho_init() to be more similar, and display each psycho's IGN.
psycho_intr_establish() deals with INO upto 0x3f, values from 0x32
and higher get 0 for IPL.

tested on E250 & U5.
2001-03-06 08:09:16 +00:00
matt b7cd0eeaac Move arm32/arm32/ast.c to arm/arm32/ast.c 2001-03-06 07:52:35 +00:00
sato 1a533a81d6 add sigmarion parameter. 2001-03-06 03:14:39 +00:00
bjh21 3ec18a1616 General prettification (mostly comments). 2001-03-05 23:29:32 +00:00
bjh21 78eae7d026 ANSIfy. 2001-03-05 23:14:22 +00:00
bjh21 83b8de43dd Move undefined.c from sys/arch/{arm32/arm32,hpcarm/hpcarm} to sys/arch/arm/arm
in preparation for making it usable on arm26 as well.
2001-03-05 23:06:14 +00:00
pk b91b8796d9 Implement MSGBUFSIZE option. 2001-03-05 16:46:09 +00:00
pk 8eeb7a8a79 mp_{pause,resume}_cpu(): avoid crash when cpu(s) not yet configured. 2001-03-05 16:45:22 +00:00
pk f3c74253b0 Fix `flags' argument to pmap_enter(). 2001-03-05 16:43:34 +00:00
ragge f860eda596 This file hasn't been in use for a long time. 2001-03-05 16:02:23 +00:00
ad f21f718031 Typo in previous. 2001-03-05 12:15:38 +00:00
tsubai 0e3e6118a9 Add awi* at pcmcia. 2001-03-05 11:31:14 +00:00
pk 90e5095df2 Fix syntax error in previous change. 2001-03-05 07:16:19 +00:00
toshii 850f81157a Fix an error printf format. 2001-03-05 07:11:18 +00:00
pk 4e14c96788 In debug printf: missing quote on format string. 2001-03-05 07:04:01 +00:00
wdk ffa74abf2f - Add "Features Enable" and CDB bits to SCSI controller config
- During un-aligned writes: Don't accidently leave the DMA engine active
  after priming the FIFO between calls to asc_dma_setup and asc_dma_go
2001-03-05 05:04:29 +00:00
wdk 9cf464f7d1 no longer keep a copy of the volume header in cpu_disklabel 2001-03-05 04:58:09 +00:00
wdk 680c13c7d4 - brelse() was called twice after reading disk label
- re-read RISC/os volume header off disk before writing new label
  in case it was updated by installboot utility
- no longer keep a copy of the volume header in cpu_disklabel
2001-03-05 04:54:07 +00:00
marcus d152e7d2f8 Off-by-one error on v_absolute_size fixed. 2001-03-05 02:45:24 +00:00
bjh21 25ec015449 Merge setregs() from sys/arch/arm32/arm32/machdep.c,
sys/arch/hpcarm/hpcarm/machdep.c and sys/arch/arm26/arm26/vm_machdep.c
into sys/arch/arm/arm/arm_machdep.c.
2001-03-04 23:25:00 +00:00
bjh21 88951e75fa Rather than using a list of CPU IDs, take a heuristic approach to working
out which set of functions to use.  This should help cope with the fact that
my list of CPU IDs is probably incomplete.
2001-03-04 23:13:29 +00:00
pk a1b18f9435 Fix syntax error in previous. 2001-03-04 21:28:11 +00:00
pk bac5be6461 Simplify `bad alias' handling in pv_link()/pv_unlink():
- there's no need to have different PV_NC flags for sun4[c] & sun4m

	- deal with kvm_uncache() being called on a managed page in a
	  separate helper function that deals with the caching state
	  within the pv list for that page, avoiding interference with
	  the `bad alias' removals in pv_unlink().

Note that currently never called for managed pages, but for now I'm
keeping the support in.
2001-03-04 21:12:24 +00:00
jdc d22da292a6 Man page moved to share/man/man8/man8.atari. 2001-03-04 20:54:12 +00:00
jdc b8c15cce4e Man page is now in share/man/man8/man8.atari. 2001-03-04 20:51:51 +00:00
jdc df594988e2 Add enhancements :
boot sector and bad sector list are preserved by default, use 'z' to change
   type NNNm to make a partition size NNN megabytes
   type `-N' at `root' and `start' prompts to start after partition N
   type `-N' at `size' prompt to end before partition N
   type `-1' at `size' prompt to end at end of disk
   display pauses if 10 or more partitions to display
2001-03-04 20:49:27 +00:00
matt 2bfaa741b1 remove disksubr since they are common. 2001-03-04 20:47:03 +00:00
matt a4ee61bc1e eliminate a lot stuff that's not needed. 2001-03-04 20:45:03 +00:00
matt d6fc837c17 more vm_offset_t/vm_size_t -> {p,v}{addr,size}_t changes
move pmap_* declarations to pmap.h.  fix conflicts this
exposed (e.g different definitions for pmap_bootstrap).
2001-03-04 19:05:55 +00:00
uch 23c73a6e1c regen. 2001-03-04 17:01:15 +00:00
uch 0d9b26cd0e make this compile on WCE200 SDK 2001-03-04 16:59:47 +00:00
uch 07005e3818 sync with pbsdboot. (CASIO Pocket PostPet) 2001-03-04 16:52:44 +00:00
uch aa7c0fa2c7 templates for WindowsCE Embedded Toolkit for Visual C++ 5.0 2001-03-04 16:51:04 +00:00
tsutsui 3345fe4477 Fix intrnames and intrcnt since there is no statclock on news68k. 2001-03-04 16:24:39 +00:00
tsutsui ea0e8d2320 Remove unused getsp(). 2001-03-04 16:21:05 +00:00
tsutsui 0f2df04d95 Add "-e start" to LDFLAGS for ELF toolchain. 2001-03-04 16:15:50 +00:00
tsutsui 1dff14e5c9 Include files.aoutm68k for COMPAT_AOUT_M68K. 2001-03-04 16:14:21 +00:00
bjh21 0618726202 ANSIfy while I'm here. 2001-03-04 15:40:17 +00:00
mrg b301668cb5 build sparc64 bootblk, ofwboot, & ofwboot.net on sparc 2001-03-04 15:34:45 +00:00
bjh21 496829a88b Make compat_13_sys_sigreturn() work on arm26, and move it from
arch/arm/arm32/compat_13_machdep.c to arch/arm/arm/compat_13_machdep.c.
2001-03-04 15:27:03 +00:00
mrg e85a9ee949 this is a sparc64 program. so -DSUN4U, machine -> sparc64. cleanup. 2001-03-04 14:50:05 +00:00
bjh21 8054b2ad5f dev/cons.c is supplied by files.arm.
XXX should it really be?
2001-03-04 14:38:29 +00:00
bjh21 aa34be4532 Make "options ARMFPE" work again.
Mostly due to Richard Earnshaw.
2001-03-04 14:32:12 +00:00
bjh21 ab8e9aaefd Add CPU ID for ARM7500FE (determined empirically from two I've got here). 2001-03-04 14:26:26 +00:00
bjh21 0bf382d920 Remove redundant cdev_decl(cpu). 2001-03-04 14:14:23 +00:00
mrg 76c3f04bcb move etext after rodata, like kern32.ldscript and sparc's kern.ldscript. 2001-03-04 13:41:00 +00:00
ad 8a4900c534 Hook in px & pxg devices. 2001-03-04 13:36:19 +00:00
mrg 0a1cdb5f63 allow sparc "make release" to build a sparc64 capable 32 bit kernel. 2001-03-04 10:12:56 +00:00
mrg de13b6986c deal with 32 bit kernels. 2001-03-04 10:11:56 +00:00
mrg 90656ebe47 sync with GENERIC; add COMPAT_SVR4_32 2001-03-04 10:10:42 +00:00
mrg 3125147a72 oops; make this build with a 32 bit compiler again. 2001-03-04 09:28:35 +00:00
matt b575ca9f67 Remove local copies of these since they are now shared and are
in arm/arm32
2001-03-04 08:29:22 +00:00
matt 93c0e77b0f Only define MACHINE & MACHINE_ARCH in port-dependent param.h.
Everything else (since it's common) is from <arm/arm32/param.h>
2001-03-04 08:28:51 +00:00
matt 58438fb425 Move compat_13_machdep.c, strstr.c, copystr.S, bcopyinout.S, and
bcopy_page.S to arm/arm32 and remove port-local copies.
2001-03-04 08:25:38 +00:00
itojun fb90007fcb sync with GENERIC 1.400 2001-03-04 07:34:20 +00:00
matt 4679f9115c Convert some vm_size_t to vsize_t/psize_t. Change vaddr_t to paddr_t
where appropriate.
2001-03-04 07:30:19 +00:00
matt eed23d4b3c Fix EXEC_ELF to EXEC_ELF32 2001-03-04 07:11:41 +00:00
matt 3c79bccb29 Need one of these. 2001-03-04 06:06:57 +00:00
matt 3171013cfe More merging. 2001-03-04 05:55:43 +00:00
matt d2716435ef More includes for <arm/*.h> 2001-03-04 05:52:58 +00:00
matt f97f725bc9 Remove OFW hooks. Allow ports to add there own hooks via
ARM_EXTRA_DB_COMMANDS.
2001-03-04 05:40:03 +00:00
takemura c074920294 Add PocketPostPet entry.
The version number is 1.17.2 2001.03.04.
2001-03-04 05:38:19 +00:00
matt 4a5fdbf390 disksubr*.c are now shared. Start moving files from ../../arm32/arm32 2001-03-04 05:17:41 +00:00
matt aada69afd5 Synch with file movement. 2001-03-04 05:15:39 +00:00
matt fb62f0c378 These have moved to ../../arm/arm (disksubr*.c) or ../../arm/arm32
(everything else).
2001-03-04 05:14:06 +00:00
matt 8655276e9a Move these from arm32/arm32 2001-03-04 05:11:41 +00:00
takemura 0cb5085286 BUGFIX: These string data, 'MEMORI- KA-DO...' didn't have any terminater. 2001-03-04 05:11:31 +00:00
matt 4e6f220e99 Move these from arm32/arm32 2001-03-04 05:08:43 +00:00
takemura e18e70f67e Add some diagnostic code. 2001-03-04 05:08:29 +00:00
matt 7d33ba27bf Move from arm32/arm32. s/vm_offset_t/vaddr_t/g 2001-03-04 05:08:09 +00:00
matt 79efd2285e These are same between arm32 & arm26. 2001-03-04 05:06:51 +00:00
matt 6755bfc8c1 s/vm_offset_t/vaddr_t/g 2001-03-04 04:15:58 +00:00
matt 7af4578cfc s/vm_offset_t/vaddr_t/g 2001-03-04 03:40:58 +00:00
takemura 49cddb00a7 Add platform id and keymap for CASIO PocketPostPet. 2001-03-04 03:40:39 +00:00
matt 92e92121ab Use shared arm/arm32/sysarch.h 2001-03-04 03:33:50 +00:00
matt b997b57700 Use shared arm32 pmap.h 2001-03-04 03:31:32 +00:00
matt 7e5ee89ff3 Nuke vm_offset_t, vm_size_t from powerpc. 2001-03-04 03:25:34 +00:00
matt 5d1d7ca9ca Remove a shark dependency in machdep. Use booted_kernel instead of
boot_kernel to be similiar to booted_device.
2001-03-04 01:50:53 +00:00
marcus a6ecc2d5de Made it possible to mmap the frame buffer. 2001-03-04 01:36:35 +00:00
bjh21 40333cf8fd Kill cpu_host and cpu_flags: they weren't having any practical effect. 2001-03-03 21:34:00 +00:00
marcus f693207ab0 Support cross-compilers that add the underscore for a little longer.
This _will_ go away.
2001-03-03 19:45:57 +00:00
pk 51668836b3 Remove unused declaration of `cpcb', which is no longer a global variable. 2001-03-03 19:42:38 +00:00
pk d74da58795 alloc_cpuinfo: zero all the memory we allocate; not just the `cpuinfo' part.
cpu_attach: initialize `curpcb->pcb_wim' for each additional CPU.
2001-03-03 19:40:28 +00:00
pk bb5f16e6e0 Sprinkle KERNEL_PROC_LOCK()s at the kernel entry points. 2001-03-03 19:11:02 +00:00
bjh21 c32dba2092 Remove support for /dev/cpu*. This code has never done anything useful anyway. 2001-03-03 18:04:34 +00:00
bjh21 2a91058dd3 Remove spurious declaration of initialise_fpe(). 2001-03-03 17:49:58 +00:00
bjh21 2029721f3f NCPU will always be 1 if this file is being compiled at all, so don't bother
checking it.
2001-03-03 17:46:31 +00:00
bjh21 f578e88d0f Re-design identify_arm_cpu() to use a table of CPU types. This also makes
it easy for it to identify lots of CPU types, so have it do that too.
2001-03-03 17:09:25 +00:00
tsutsui 956f5fbe42 Add one missed register prefix. 2001-03-03 13:59:10 +00:00
takemura e02e19f6b7 Fix id which appeared twice, which are of HP and CASIO. You get incompatibility
around hpcarm.
2001-03-03 12:56:38 +00:00
takemura 32f9bdbadc BUGFIX:
- line number go wrong when directives appear.
  - a directives in a pair of {} make syntax error.
2001-03-03 12:51:44 +00:00
tsubai 22961fea9b Enable CD and microphone sound input on paddington based systems. 2001-03-02 20:36:00 +00:00
uch 27e08ba42c fix matrix switch initial value. 2001-03-02 19:21:53 +00:00
uch 28b76ec777 rewind progress bar when boot button is pushed.
(SH3) if check box on console window is checked, dump system register.
2001-03-02 18:26:37 +00:00
pk bba5d36487 Initialize the IPI message locks. 2001-03-02 17:00:13 +00:00
mhitch 626864333b Use ${NM} and ${SIZE} so cross-compiling works. The machine and m68k include
directories still need to be fixed.
2001-03-02 16:46:19 +00:00
mhitch f9e9387cf0 More missing register prefixes and _C_LABEL()s for ELF. Should now compile
with ELF, but still needs an "elf2bb" program.
2001-03-02 16:43:25 +00:00
mhitch 5864b6d958 More missing register prefixes. 2001-03-02 16:29:41 +00:00
pk 0548d12369 * proc_trampoline: call `proc_trampoline_mp()' #if MULTIPROCESSOR;
currently necessary to acquire the `running in kernel mode' lock;
  pointed out by Bill Sommerfeld/Simon Gerraty.

* remove reference to `cpu_set_kpc()' from comments, as we don't have it.
2001-03-02 10:27:00 +00:00
pk e999fb6b77 bootstrap area: remove dead code + some trivial reformatting 2001-03-02 09:48:13 +00:00
sato f199529e4b add MC/R430(copy of MC/R530) 2001-03-02 09:14:36 +00:00
mrg ecb878c12d sync with GENERIC32. 2001-03-02 07:56:26 +00:00
mrg 3c2cb5a456 - no need to hard wire pci busses or hme0 anymore
- clean up some comments
- __ELF__ is defined by the compiler
2001-03-02 07:50:08 +00:00
mrg 23fecf2b24 clean up slightly; prepare to make this identical to sparc/frame.h. 2001-03-02 07:40:18 +00:00
mrg 3c31d4fccb clean up slightly. 2001-03-02 07:36:57 +00:00
mrg 7a1cb1dbc2 use pci_bus_devorder() and pci_dev_funcorder() 2001-03-02 06:34:06 +00:00
reinoud 5cc6423696 Fixed the bug that crept into giving support for moving IOMDs during startup.
Initially I gave it the type `int *iomd_base' but some macro's defined in
iomdreg.h calculated with the value asuming it to be an int ... thus all the
registers offsets were multiplied by four and that can only mean trouble !
The kernel boots again ever happily. Sorry for the inconvenience... it was
a good bug hunt though!
2001-03-02 01:46:57 +00:00
marcus 33090db137 Harmonized keycodes with USB. 2001-03-02 00:25:06 +00:00
bjh21 5b15e666a1 ARM7100 -> ARM710A, following information from reinoud. 2001-03-01 23:45:56 +00:00
marcus 104415e253 Dropped the leading underscore on _etext and _end, due to move to ELF. 2001-03-01 23:35:20 +00:00
marcus 389ac2109b Kernel binary format is hereby officially changed to ELF32. 2001-03-01 23:34:08 +00:00
is 8931aeb7a9 Don't use the frames' provided EA yet; something is wrong. 2001-03-01 22:01:52 +00:00
is db27e55251 Add register prefixes. 2001-03-01 21:32:53 +00:00
minoura 8770ff2900 Sync with news68k:
Remove unneeded COMPAT_HPUX stuff.
2001-03-01 17:11:13 +00:00
pk d98e8d5bca * Correct the `flags' argument in call to pmap_enter().
* Enable the message buffer at a temporary virtual address (KERNBASE)
  in bootstrap(), if that can be done.
2001-03-01 16:14:25 +00:00
pk 813b8d79fd * Correct the `flags' argument in several calls to pmap_enter().
* message buffer initialisation:
	- change the buffer size to 8192 on all platforms
	- don't assume the buffer is always located at physical address 0
	- drop the SUN4 hack that left first half of the page unused;
	  I believe this is no longer necessary, since the msgbuf
	  data structure is duely sanity-checked before use in initmsgbuf().
2001-03-01 16:09:25 +00:00
pk 6ae8b9ec6d Drop MSGBUFSIZE; we don't use it and it can't currently be configured
to a different value anyway.
2001-03-01 15:59:04 +00:00
pk 80ba31bd21 Drop the managed() macro; it is no longer used.
State the intended use of the vm_{first,last,num}_phys variables that are
still exported from pmap.c.
2001-03-01 15:56:47 +00:00
pk aad0b0bcd2 Change `pv list' management to use the hooks provided in the `vm_physmem'
structure. While this comes with the cost of having to search the
`vm_physmem' array every time need to find a PV entry corresponing to
some physical address, we gain the flexibility needed to support
arbitrary non-contiguous ranges of physical memory addresses.

Also, eliminate the need to sort the memory address ranges as presented
by the machine's PROM, and the requirement that physical memory starts
at address 0 (when possible).
2001-03-01 15:52:18 +00:00
tsubai e6ae4943c2 Fix a bug in cpu_switch().
Reported by Tad Hunt <tad@entrisphere.com> on port-powerpc.
2001-02-28 20:44:41 +00:00
tsubai 129bc9a446 Sync cdevsw and chrtoblktbl. 2001-02-28 19:14:30 +00:00
tsubai 86f265568f Back out previous change. It was harmful on my PowerBook G3. 2001-02-28 18:49:29 +00:00
bjh21 c25aec3d9f PCB convergence, part the first:
Move the pointer to the current user trapframe from struct mdproc to struct
pcb (as on arm26).  Only tested by compiling kernels on arm32 and
hpcarm (dnard seems to be incomplete anyway).  Someone should try running one.
2001-02-28 18:15:42 +00:00
mrg c452d0b725 adjust some comments to reality. 2001-02-28 15:21:08 +00:00
mrg 5ef9914b06 add and user a linker script. 2001-02-28 15:17:48 +00:00
pk b87a62e09a Make sure that e.g. myetheraddr() has a valid idprom pointer as soon as
possible on sun4, since it may be used before the clock attaches.
2001-02-28 14:45:23 +00:00
bjh21 fddf453e7a Allow for size=0 case in copyin(), copyout() and kcopy(). 2001-02-28 11:55:39 +00:00
matt e2bb0a8f78 Recognize NETBSD & NETBSD/MACPPC parition types, default HFS to parition d.
Exclude FWDRIVER.
2001-02-28 03:02:29 +00:00
bjh21 163eba47d8 Use <arm/cpu.h>. 2001-02-28 00:17:40 +00:00
bjh21 b4e78a4e60 Large overhaul for arm26 compatibility. This file is now even more of a mess
than it was.
2001-02-28 00:17:18 +00:00
mjacob 721e39d0dc add SES device 2001-02-28 00:08:18 +00:00
mjacob 312d560493 add SES device (unused #4) 2001-02-28 00:06:28 +00:00
bjh21 fa45b68520 Actually remember to look up the system call we're trying to invoke.
Oops.
2001-02-27 23:57:30 +00:00
pk 18026ec99d * Make PAGE_SIZE et.al. constants, if possible.
* Add pvlist pointer to `struct pmap_physseg'
* Because of the above, add guard against multiple inclusions.
2001-02-27 22:40:08 +00:00
mjacob 32994a72dc revert previous commit while the longbeards ponder 2001-02-27 22:00:19 +00:00
mjacob 4eff912cbb Remove cpu_wait #define because it's now prototyped in <sys/proc.h> which
means it has to really exist.
2001-02-27 21:11:41 +00:00
reinoud 4cb4b8642c Make it compile again... 2001-02-27 20:27:17 +00:00
reinoud 3500dc208f Centralise declaration of memc_base 2001-02-27 20:23:11 +00:00
reinoud b8c8050369 Define iomd_base ... make it compile again 2001-02-27 19:57:51 +00:00
cgd 82f3142780 fix NetBSD RCS id tags 2001-02-27 19:04:39 +00:00
reinoud 5cd12d1f9e Make it compile again 2001-02-27 18:33:26 +00:00
reinoud d4eb8fb142 Also forgot to declare the iomd_base. 2001-02-27 18:30:46 +00:00
reinoud d35a86c1a6 Forgot to declare iomd_base since it isnt in iomdreg.h anymore due to the
inclusion of this file in assembler.
2001-02-27 18:29:36 +00:00
bjh21 748ec610af opt_armfpe.h isn't arm32-specific any more. 2001-02-27 17:57:55 +00:00
bjh21 4b483d7606 Move "options ARMFPE" to files.arm, so generic ARM files can use it. 2001-02-27 17:56:31 +00:00
matt a1f5b79d02 Add gpio hook. 2001-02-27 17:49:54 +00:00
bjh21 088fe8f336 <arm/armreg.h> isn't arm26-specific any more. 2001-02-27 17:42:16 +00:00
bjh21 22260fa7fd Tidy up ARM7500 restrictions.
Also insist on precisely one of PROG32 and PROG26's being turned on.
2001-02-27 17:35:49 +00:00
reinoud 5b52fda1e6 cpu_number() macro has no args 2001-02-27 16:00:27 +00:00
reinoud 639dd9ffea Rollback of patch ... there was a bug in the proc.h 2001-02-27 15:39:57 +00:00
bjh21 807ebaec96 Stop using #ifdef arm32, since future NetBSD/arm ports are likely
not to provide it.

For things which are historical oddities of NetBSD/arm26, use #ifndef arm26.
For things which are inherently dependent on the size of program space in use,
use #ifdef PROG32 (and include opt_progmode.h).
2001-02-27 14:11:30 +00:00
msaitoh 0aa1f3d01e modify target name because we can't recommend to use pkgsrc/cross
(though I'm not the person who did such BAD modification)
2001-02-27 14:05:53 +00:00
bjh21 00b8524181 KNF 2001-02-27 14:00:24 +00:00
bjh21 9a1c596b0b cpu_wait() is now in vm_machdep_arm.c 2001-02-27 13:58:13 +00:00
sato b8e5bc569c * add WSDISPLAYIO_PARAM_BACKLIGHT, WSDISPLAYIO_PARAM_CONTRAST,
WSDISPLAYIO_PARAM_BRIGHTNESS supports.
2001-02-27 08:54:17 +00:00
sato 269197a956 add vrc4172pwm for MC/R530A, MC-R700. 2001-02-27 08:51:06 +00:00
sato 66261e817a * update copyright year.
* some machines(MC-R700 etc) have pre-vrc4172 asic.
  they don's work as vrc4172 specification, so skip some probe sequence.
  - add platid related parameter.
  - add VRC4172PWM_BROKEN_PROBE code.
* add MC-R700,700A parameters (tested on MC-R700).
* add contrast parameters.(but no one use yet).
* turn some message in probing to VPRINTF().
* enlarge VRC2_PWM_N_BRIGHTNESS.
2001-02-27 08:48:38 +00:00
matt 702b27ec2c Back out change to print irq. 2001-02-27 07:34:15 +00:00
matt 2184b08f72 Enable a fix so that PowerBook(FireWire) keyboards work. This
should also work on iBooks and PowerBook(WallStreet).  And if
we're really lucky, on the new G4 laptops.
2001-02-27 07:33:17 +00:00
matt f209f0ea1a Add Apple_FWDRIVER. 2001-02-27 06:16:06 +00:00
matt c09a88dca3 Be a bit more defensive. 2001-02-27 05:16:33 +00:00
matt 22d63778fc Add a gpio device to handle the gpio device & extint-gpio1
interrupt.  (think ibook/powerbook)
2001-02-27 05:15:03 +00:00
matt 25b977c685 print out irq on unconf devices. 2001-02-27 03:47:02 +00:00
reinoud 38fb2a9227 Due to changes in ../sys/proc.h ``cpu_wait(p)'' is now a function due to the
prototype defined it in ... added it to arm/vm_machdep.c since all ARM machines
are still single processor anyway
2001-02-27 00:16:48 +00:00
wiz 0a4ef18ab8 add handling for the input channel selection/volume (no recording yet,
just the mixer interface)
2001-02-26 21:07:51 +00:00
bjh21 f983a837ed Add multiple-include protection, and include <machine/cpus.h> here (where
it was actually needed).
2001-02-26 16:40:00 +00:00
bjh21 6584a7e79d This file doesn't need <machine/cpus.h>. 2001-02-26 16:33:10 +00:00
is 9af33798b8 pack the structure to avoid aligning contraint problems with ELF compiler 2001-02-26 16:07:58 +00:00
is 19d69802f3 fix comment 2001-02-26 16:07:19 +00:00
bjh21 5a5316cafe Nothing in this file needs <sys/param.h>, so stop including it. 2001-02-26 16:04:22 +00:00
bjh21 d666817eff Remove unnecessary #include <machine/cpus.h>. 2001-02-26 15:59:54 +00:00
is 025d7c7815 use ENTRY_NOPROFILE and _C_LABEL, where appropriate. 2001-02-26 14:58:36 +00:00
briggs a3ee43a4e6 Remove dump stuff that is now in powerpc_machdep. 2001-02-26 14:55:05 +00:00
bjh21 51a131dac3 The cpu_local and cpu_cd elements of struct _cpu were utterly unused. Remove
them.
2001-02-26 14:52:11 +00:00
bjh21 2ff5d800ab Fix up indentation, and remove a spurious set of braces. Should be no
semantic change from the last revision.
2001-02-26 14:01:58 +00:00
bjh21 03737e3e40 fpe-sp, and the associated "options FPE", was deleted in 1997. G/C references
to it.
2001-02-26 13:45:07 +00:00
bjh21 66094acb2a opt_cputypes.h is now provided by files.arm. 2001-02-26 13:26:14 +00:00
sato 42127a3ffd register vrc4172pwm driver for MC/R530 etc.. 2001-02-26 09:34:22 +00:00
sato fb03c1ad33 DPRINTF/VPRINTF change. 2001-02-26 09:33:03 +00:00
msaitoh bba3f2423b add comment about $CPP
From source:

# XXX following definition is absolutely incorrect.
# Our cpp is not /usr/libexec/cpp but /usr/bin/cpp.
# True solution is:
#	1) copy /usr/bin/cpp into /usr/local/bin/sh-*-*-cpp
#	2) Edit CPP in sh-*-*-cpp correctly
#		(e.g. "CPP=`$CC -print-prog-name=cpp`").
#	3) Edit STDINCDIR in sh-*-*-cpp correctly
#		(e.g. STDINCDIR=/usr/local/sh-unknown-netbsdcoff/include)

# BROKEN
CPP=`$TARGET-gcc -print-prog-name=cpp`

# EXAMPLE
#CPP=/usr/local/bin/sh-unknown-netbsdcoff-cpp
#CPP=/usr/local/bin/sh-unknown-netbsdelf-cpp
2001-02-26 08:46:15 +00:00
msaitoh 6c4c53a461 add "MACHINE_CPU=sh3" 2001-02-26 08:24:20 +00:00
matt 416614582a More fill-in 2001-02-26 03:09:23 +00:00
matt fff9126df5 Add some of the common files. 2001-02-26 02:57:48 +00:00
matt ff7aabff92 Begin to flesh out the DNARD (aka Shark) port. 2001-02-26 02:49:24 +00:00
chs c6798f2107 add vers.c to CLEANFILES. 2001-02-26 01:42:51 +00:00
bjh21 09f63bd785 Now that arm26 does __HAVE_MINIMAL_EMUL, switch it over to using
<arm/types.h>.
2001-02-26 00:19:57 +00:00
reinoud bb5b27eed9 Putting the param.h back into the arm32 resp. hpcarm include directories 2001-02-26 00:08:41 +00:00
reinoud 7127877cf8 Putting param.h back into hpcarm's include 2001-02-26 00:07:54 +00:00
reinoud 9f68c8b2b1 Putting param.h back to arm32 include directory 2001-02-26 00:06:45 +00:00
reinoud e4e4d358a0 Fixed IOMD remapping during boottime 2001-02-25 23:59:48 +00:00
bjh21 e56f5ba174 __HAVE_MINIMAL_EMUL 2001-02-25 23:08:33 +00:00
bjh21 9d22bf6fdf Adapt for __HAVE_MINIMAL_EMUL world. 2001-02-25 23:07:51 +00:00
bjh21 3fb058011a Move arm32 ports over to using <arm/armreg.h>, so <cpu.h> mostly contains
NetBSD-specific definitions.

This also entails some changes to the way CPU identification is done.  I hope
I've got it right.
2001-02-25 21:31:13 +00:00
matt af212d3fda Use common switch / setfault / trampoline code. (except amigappc because
it doesn't use trap_subr.S either).
2001-02-25 20:34:24 +00:00
matt cd7c0ee5c4 Get the ofppc/prep/macppc/sandpoint/bebox to share the process switch
/ setfault / fork_trampoline code.
2001-02-25 20:21:53 +00:00
msaitoh bc759e0d8d check __LEADING_UNDERSCORE 2001-02-25 19:15:04 +00:00
bjh21 bdc357ddfa Guess a CPU ID for the ARM700 as well. 2001-02-25 19:10:28 +00:00
bjh21 c7c73cbe90 The cpu_type element of struct _cpu was only used in identify_arm_cpu().
Make it a local variable.
2001-02-25 18:40:26 +00:00
bjh21 846fe69958 Remove CPU_* options (they're in files.arm now -- for some reason I missed
this lot in the last commit).
2001-02-25 18:28:27 +00:00
bjh21 9dcb8e583c Add possible CPU ID for ARM7500 (based on arm/cpu.h).
Add macros to distinguish the three formats of CPU ID.
2001-02-25 17:49:34 +00:00
bjh21 740551d1d1 Add PROG32 and PROG26 options.
These are intended to indicate what size of program space is in use, and hence
how to get at the PSR bits.  They're currently set automatically by the CPU
type options.
2001-02-25 17:23:11 +00:00
reinoud 1a53c63fd7 Finally implemented the moving VIDC chip; this solves the red colour too at startup
for RiscPC, A7000 and RC7500. A better solution should be made but is currently
unavailable for all the VIDC stuff isnt using bus_space at all...
2001-02-25 17:17:55 +00:00
bjh21 716d92bdc2 COPY_SIGCODE is never referenced in the kernel, and the comment attached to it
is out of date. Assume it's obsolete and g/c it.
2001-02-25 17:04:54 +00:00
msaitoh 526ce203e7 check __LEADING_UNDERSCORE instead of __sh3__ 2001-02-25 15:49:58 +00:00
toshii 64d5dfd570 Use MI md_root.c. 2001-02-25 15:45:23 +00:00
bjh21 96b16f75a6 Hack to allow arm26 to have its own "cpu" device. This device should really
be shared between all ARM ports, but the arm32 one is too ugly for me to
touch it till I've got a test system running.
2001-02-25 15:33:33 +00:00
bjh21 6f2aa0d0ba Allow "cpu" to have children. In the long term, this may be the best way to
handle co-processors.  In the short term, it's a necessary hack to get arm26
kernels to configure.
2001-02-25 15:31:39 +00:00
mrg dc3c3a7bdd re-add. 2001-02-25 14:56:47 +00:00
mrg c4b3d490bb delete (again), then add (again) ? 2001-02-25 14:56:01 +00:00
mrg af19a7de64 try a `cvs ci -f' to make this appear on the trunk again. no changes. 2001-02-25 14:47:22 +00:00
jdc 8a32449594 Make sure root sector checksum is invalid if we clear it.
Set size of XGM partitions on auxilliary roots correctly.
From Leo Weppelman.
2001-02-25 14:33:19 +00:00
jdc b2b6b2d9f7 Include <stdio.h> when built with -DDEBUG. 2001-02-25 14:32:59 +00:00
jdc 4a4d440928 Root sector checksums are not always valid, so ignore them.
From Leo Weppelman.
2001-02-25 14:32:20 +00:00
jdc 5c57e3ce2c Make it easier to build with -DDEBUG. 2001-02-25 14:31:53 +00:00
tsutsui 7b88ea28ab Remove unneeded COMPAT_HPUX stuff. 2001-02-25 13:33:54 +00:00
tsutsui 4cd9aa3b6c Sync with x68k:
Use m68k_page_offset and m68k_trunc_page macros,
 instead of using PGOFSET directly.
2001-02-25 13:28:31 +00:00
takemura 074b36937c Make it compilable, syncing with the relocation of the platid stuff. 2001-02-25 12:58:36 +00:00
matt e7811ad9b6 Move cpu_sysct and dump{mag,lo,siz} & cpu_dumpconf to powerpc_machdep.c.
dumpsys is still port-specific for now.  XXX dumpsys is still a stub
on all powerpc ports.
2001-02-24 22:39:16 +00:00
reinoud 142f62c206 Moved the mainbus files to the arm/conf/file.arm from the arm32 and the
hpcarm/conf/files.hpcarm
2001-02-24 21:43:01 +00:00
reinoud 7535275b7c Fixed the `slow printing' bug that occured with debugged kernels on RiscPC's.
When the IOMD isnt mapped and all is mapped 1:1 a read gives garbage and thus
the obscure feature that slows down printing (or halts it!) when the mouse
button is pressed during output to the vidcconsole gets allways activated.

Included a simple flag that signals if the IOMD is mapped; the delay routine
won't check the mouse if this flag is still clear.
2001-02-24 21:29:38 +00:00
uch 0cc08093fd enable wscons. 2001-02-24 20:17:45 +00:00
reinoud e89d229692 Make hpcarm compile again after movement of mainbus code 2001-02-24 20:13:59 +00:00
reinoud 1267afb3b6 Make lm audio for RiscPC compile again 2001-02-24 20:12:40 +00:00
reinoud b7b1d6b636 Make rc7500 compile again 2001-02-24 20:11:08 +00:00
reinoud 78a1b11faf Make arm32 RiscPC compile again 2001-02-24 20:08:53 +00:00
reinoud 286f491040 Changed an innocent looking but pretty expensive table walking in pmap.c
from DIAGNOSTIC to PMAP_DEBUG
2001-02-24 20:04:42 +00:00
uch f4cdccec01 Jornada 690 keyboard driver (matrix switch connected SH3 PFC module) 2001-02-24 19:58:00 +00:00
uch 0bb888c2e4 s/hpcmips/hpcsh/ 2001-02-24 19:47:21 +00:00
reinoud f583057770 Repaired a syntax fault in the files.[hpcarm,arm32] 2001-02-24 19:43:50 +00:00
reinoud 086a93939c Part 2 of merge.... the dissapearance of mainbus from arm32 and hpcarm;
these parts were a 100% the same and i've included the extensions made by
hpcarm in the tree.
Checked for occurence of MD parts; none found.
2001-02-24 19:38:01 +00:00
eeh 85cffb544d Improve legibility and iommu_dvmamap_sync(). 2001-02-24 18:49:06 +00:00
toshii ce7d8943e9 Use hardware address for saost. 2001-02-24 12:52:02 +00:00
toshii 735cec473d Remove unneeded hardcoded IO mappings. 2001-02-24 12:48:58 +00:00
toshii 6fee490e68 Use working bus_space_map. 2001-02-24 12:43:52 +00:00
toshii dfe9d2faf7 Implement bus_space_map(). 2001-02-24 12:41:20 +00:00
ichiro 9eeb0264fd change com-speed to 19200.
default com-speed of hpcboot are 19200
2001-02-24 11:08:31 +00:00
toshii f46f7e3e62 Make hpcarm kernel compile again. 2001-02-24 09:58:43 +00:00
ichiro d3ce44c170 some include files added newly write into Makefile. 2001-02-24 07:24:36 +00:00
ichiro ba1664c1f3 add profile.h,profileio.h 2001-02-24 07:16:51 +00:00
ichiro b84bcefc8e i forgot writing some include files in Makefile 2001-02-24 07:09:20 +00:00
matt 45f666cb9d Remove setregs since it now lives in powerpc/powerpc/powerpc_machdep.c 2001-02-24 04:35:33 +00:00
matt aba3f2655a Add powerpc/powerpc/powerpc_machdep.c 2001-02-24 04:30:42 +00:00
matt 559cea4b1c Since setregs is common among all the powerpc ports,
make a common version and put it in powerpc_machdep.c
2001-02-24 04:29:26 +00:00
lukem 3aeb5f2f29 whitespace police 2001-02-24 01:59:46 +00:00
lukem acec2828d9 whitespace police 2001-02-24 01:34:28 +00:00
matt e7db94d39f if we panic to a bad/illegal irq, at include the invalid irq value in
the panic message.
2001-02-23 23:07:15 +00:00
bjh21 6b7ad3aa3e __HAVE_NWSCONS and __HAVE_DEVICE_REGISTER are MACHINE-dependent. 2001-02-23 22:02:43 +00:00
reinoud 92493b7a32 Missed this file in the merge due to a typo ! 2001-02-23 21:27:46 +00:00
reinoud c1f753f9b4 Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
2001-02-23 21:23:45 +00:00
uch b81de58f77 I forgot to move Makefile. 2001-02-23 14:08:54 +00:00
nisimura 4934987175 Make sure to have sfbp.h and add sfbp* line in TCWSCONS left #ed-out.
Pointed by Matthew Jacob <mjacob@feral.com>.
2001-02-23 07:21:41 +00:00
ichiro 5137cda306 delete local-ID for cvs 2001-02-23 04:31:18 +00:00
ichiro c98cd6c023 hpcarm:
kernel for StrongARM-based WinCE PDA machine.
2001-02-23 03:48:06 +00:00
bjh21 090dc051cf Reduce the amount of memory allocated for assembler fragments.
Excise unnecessary instructions from kernel launch code.
Increase HIMEM on >8Mb machines, since the last two changes didn't free
enough memory to boot with 16Mb.
2001-02-23 00:27:40 +00:00
eeh 121d97c255 Somehow this didn't get checked in with the rest of the SVR4 64-bit fixes. 2001-02-22 22:08:06 +00:00
uch 659f65e0ee hpc common files are moved to dev/hpc. 2001-02-22 18:37:54 +00:00
msaitoh f4b23a11a4 fix a check code whether mkbs is console or not 2001-02-22 15:34:28 +00:00
nisimura 062c4f6e22 Add code segment for PMAGD, which is under development this moment. 2001-02-22 07:46:01 +00:00
chs a95226826d switch sun3 to ELF. highlight include:
add "%" prefix to register names in assembly code.
change assembly functions to return values in %a0 instead of %d0.
C symbols no longer prepend an underscore, adjust assembly code for this.
32-bit values are now 32-bit aligned instead of 16-bit aligned,
adjust structure packing and padding to override this where necessary.
make EXEC_ELF std, make EXEC_AOUT and COMPAT_AOUT_M68K optional.
use the MI loadfile() instead of several home-grown versions.
2001-02-22 07:11:08 +00:00
lukem a1602a24ec don't assume that all the arguments to ctags will fit on one command line
(as is the case with a longer SYSDIR)
2001-02-22 04:40:43 +00:00
eeh a72ee87980 Add support for 64-bit SVR4 (Solaris 8) binaries. 2001-02-21 23:53:00 +00:00
jdolecek f6d22f21da usr1handler(): fix the logerror() call, use string 'shut' 2001-02-21 22:55:51 +00:00
jdolecek efd32026ab make default_consinfo and kgdb_devname[] const 2001-02-21 22:52:03 +00:00
jdolecek 522f569810 make some more constant arrays 'const' 2001-02-21 21:39:52 +00:00
bjh21 352dfb6c36 Update to support VFP formats. Also a half-hearted attempt at armeb support.
Note that I'm using __VFP_FP__ to indicate compilation with VFP-format
floating-point data.  There doesn't (currently) seem to be a standard define
for this purpose.  __VFP_FP__ was suggested by Richard Earnshaw.
2001-02-21 17:43:50 +00:00
bjh21 887895c344 Add CPU_ID_CPU_MASK. Different, but (I hope) more useful definition than
arm32 currently uses.
2001-02-21 17:41:58 +00:00
uch e0a4623854 move disksubr.c define to machine-port. 2001-02-21 16:42:04 +00:00
uch 8b060aaf64 hpc* common disksubr.c 2001-02-21 16:34:00 +00:00
uch 3cfa37d7da HD64461 support. 2001-02-21 16:28:02 +00:00
uch df98929e3b more diagnostic message. (SH3)
add framebuffer information (ARM)
fix boot parameter bug. (-b=sd0)
2001-02-21 16:01:52 +00:00
uch df5e8f68d8 HD64461 driver (SH3 companion chip for Windows CE) 2001-02-21 15:39:09 +00:00
uch bedd081460 add HP Jornada 720, Compaq iPAQ H3600 entry. 2001-02-21 15:04:40 +00:00
uch 8ce0133cc8 add SH7709/SH7709A I/O port register define 2001-02-21 14:49:53 +00:00
minoura b675f941fe Use m68k_page_offset and m68k_trunc_page macros,
instead of using PGOFSET directly.
2001-02-21 12:39:16 +00:00
wdk 581542f31f Return microtime of zero if not available at early stages of device
autoconfiguration.
2001-02-21 09:46:54 +00:00
wdk 935036cf94 Remove superfluous #include added in previous commit 2001-02-21 09:20:56 +00:00
wdk 8e130c9227 Document KGDB options 2001-02-21 09:14:33 +00:00
wdk 85f0f12a55 Changes for KGDB 2001-02-21 09:12:14 +00:00
wdk 07bb8e7a23 Call KGDB hook function 2001-02-21 09:10:42 +00:00
wdk 6d8f58da18 Add zs_kgdb.c driver 2001-02-21 09:09:54 +00:00
wdk 8a5e278439 Glue functions for KGDB support 2001-02-21 09:08:35 +00:00
minoura 943f21e2c5 Remove some redundant decls.
Fix some nested decls.
2001-02-21 05:53:35 +00:00
minoura daa78d567e Make this compile again. 2001-02-21 05:44:32 +00:00
chs 044409a035 reduce PAGER_MAP_SIZE to 4MB, we're short on KVA. 2001-02-21 02:43:02 +00:00
nisimura 573fd4fa4d Make sure to have rnd pseudo device. 2001-02-21 01:44:44 +00:00
reinoud ed2535fabd Changing rc7500 for naming change of vidcvideo to vidcconsole 2001-02-21 00:55:34 +00:00
reinoud 926ac33ffb Add newly renamed file for transition to new naming
vidcrender.c  is old vidcconsole.c
  vidcconsole.c is old vidcvideo.c
2001-02-21 00:53:36 +00:00
reinoud 37eca554a2 vidcvideo rename phase 2 : getting it to build again; tested ok 2001-02-21 00:51:26 +00:00
cgd c2bdafab79 use getprogname() 2001-02-20 23:51:59 +00:00
reinoud 23d7dbe67e Updated documentation about the bootloader 2001-02-20 22:58:34 +00:00
reinoud f1d3c5daa6 Renamed vidcvideo configure option to vidcconsole wich covers the function
better and allows to clean up vidc tree by enabling the use of the term
vidcvideo for what it is : configuring video independent of choise of console
to allow implementation of wscons for RiscPC/A7000 and RC7500.
2001-02-20 22:49:55 +00:00
martin f0d6660cf4 Filename cleanup: remove i4b_ prefixes outside sys/netisdn, last round.
Renamed in sys/dev/ic:
i4b_hscx.c -> hscx.c
i4b_hscx.h -> hscx.h
i4b_ipac.h -> ipac.h
i4b_isac.c -> isac.c
i4b_isac.h -> isac.h
i4b_isic.c -> isic.c
i4b_isicbchan.c -> isic_bchan.c
i4b_isicl1.c -> isic_l1.c
i4b_isicl1.h -> isic_l1.h
i4b_isicl1fsm.c -> isic_l1fsm.c
2001-02-20 22:24:31 +00:00
is fcc944a0c5 Clean up messages, and replace nested ifs by switch statement. 2001-02-20 21:55:00 +00:00
minoura 013971b69b include sunos_exec.h to declare emul_sunos.
From syssrc/sys/arch/news68k/news68k/trap.c:1.12.
2001-02-20 15:55:08 +00:00
minoura 0e8197960f Remove phys_map declaration, which is in <uvm/uvm_extern.h>.
From syssrc/sys/arch/news68k/news68k/vm_machdep.c:1.6.
2001-02-20 15:54:29 +00:00
minoura a7d2590bf0 Fix some nested extern declarations.
From syssrc/sys/arch/news68k/news68k/machdep.c:1.16.
2001-02-20 15:53:27 +00:00
tsutsui 968d0f81c6 Adjust only avail_end address rather than reduce
the last bank size of avail_mem[] so that all RAM area
will be dumped in dumpsys().
2001-02-20 12:52:57 +00:00
marcus 7d1d4a2f4d New, interrupt-driven implementation. 2001-02-20 00:04:40 +00:00
marcus 143a120848 Added GDROM interrupt support at IRQ9 (need to clean this up...) 2001-02-20 00:03:53 +00:00
cgd 8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
marcus 037484799a PAL support... 2001-02-19 21:37:31 +00:00
msaitoh c090c1cfe5 temporary fix a serious pmap problem with dummy PMAP_{MAP,UNMAP}_POOLPAGE().
To fix correctly, set IOM_RAM_BEGIN with P0 addr instead of P1 addr and
fix machdep.c and pmap.c.
2001-02-19 17:51:22 +00:00
reinoud 68eaed4e53 Extended monitor file definition for AKF 85 (Phillips Brilliance 17'')
Some extra modes added and changed some mode definitions to better suit
my monitor.
2001-02-19 16:46:42 +00:00
bjh21 d03f5eac72 Some of this code is based on an old version of BBBB -- update the copyright
message to indicate this.
2001-02-19 15:54:16 +00:00
reinoud 73254cd1f4 Import of newest version ... checked for correct importing now ....
The import script needs some sophistication but its ok now...
2001-02-19 15:28:13 +00:00
reinoud 64ceee1d67 Fixed CVS directory overwriting by deleting it in the copy first; this to
prevent import trouble due to messed up CVS directories.
2001-02-19 14:32:45 +00:00
reinoud 0a46ddf1e2 Changed export script so it doesn't kill the CVS directory :) 2001-02-19 14:26:41 +00:00
reinoud e263b21061 Another bug ... the extract archive wasnt build in the correct directory 2001-02-19 14:18:24 +00:00
reinoud f3b8ca18f1 Fixed a small bug in the export script 2001-02-19 14:15:42 +00:00
reinoud 0085973034 Import of the new RISCOS bootloader in the CVS tree with import and export scripts.
Start version is v 0.91
2001-02-19 14:09:00 +00:00
bjh21 d7fca27e58 Garbage-collect vestigial support for the Simtec Hydra board. The main code
to support it was never committed to the tree, and it would probably need
major reworking anyway.
2001-02-19 13:29:39 +00:00
bjh21 504ce207cb Make the kenrel base address a variable. 2001-02-19 13:26:17 +00:00
jmc 106522ed47 Add -f option. If used it will perform the low level block operations on the
file rather than requiring a raw device. Useful when dealing with vnd's
images and building snapshots. Also allows snapshots to be built in
securelevel > 0.
2001-02-19 06:23:55 +00:00
simonb d669e1cea8 Fix tyop. 2001-02-18 22:32:32 +00:00
chs c5030d24f4 rename round() to fpu_round() to avoid a name conflict with
the "round" assembly function in FPSP when building with ELF.
2001-02-18 20:05:58 +00:00
is 7880a89379 Initial version of interupt handling, by Adam Ciarcinski. 2001-02-18 19:08:15 +00:00
ragge 195dd4efe6 Make the machine halt when halted and reboot when rebooted.
From Shinmyoh Koji (yesu@rb3.so-net.ne.jp).
2001-02-18 16:56:22 +00:00
reinoud 5fa30a864f fixed naming bug :( ... I should be more carefull 2001-02-18 12:42:31 +00:00
reinoud 7665787d5e Fix to solve PR arm32/9208 "RiscPC reboot hangs"
Due to the StrongARM support code in the cpu_reset() MC-function,
an instruction was executed to drain the write back buffer on StrongARM
processors (might even be armv4+).

Since ARM{6,7} don't recognize this instruction they will either except
for an illegal instruction on this or have undefined behaviour resulting
in an endless illegal instruction/data abort/reset behaviour.

The fix contains a flag that signals if the WB flush should be executed
or not for the detected processor.
2001-02-18 12:21:02 +00:00
ragge aa13a12702 Support to control the leds on VAXstations, taken from Sun3 and ported
to vax by Shinmyoh Koji (yesu@rb3.so-net.ne.jp).
2001-02-18 10:44:20 +00:00
tsutsui 5a0f904718 cosmetics (white space etc.) 2001-02-18 06:51:18 +00:00
tsutsui e3180dc477 Enable options NFS_V2_ONLY and VNODE_OP_NOINLINE. 2001-02-18 05:24:43 +00:00
matt ab4ef9dcf6 Add devsw entries for "ld" (logical disks). 2001-02-18 04:55:37 +00:00
reinoud 9dd76bf15d Updated the bootloader for RiscPC/A7000/NCs etc. remains compatible with the old bootloader by an COMPAT_OLD_BOOTLOADER option 2001-02-18 00:59:33 +00:00
reinoud 3043022c3a Added extra kernel vm by moving up vidc space 2001-02-18 00:56:42 +00:00
reinoud a598ade96e Updated MAGIC number for new bootloader 2001-02-18 00:55:31 +00:00
reinoud 00b4361e08 Add compatibility option for old bootloader 2001-02-18 00:54:02 +00:00
bjh21 ab20625e49 Lint doesn't like zero-sized structs. 2001-02-17 20:07:01 +00:00
bjh21 3dbffcc29f Move the RAM base address of the kernel into a variable.
Set CPPFLAGSm CWARNFLAGS and STRIPFLAGS to the same as arm32 uses.
2001-02-17 19:38:36 +00:00
bjh21 503e69a88a Don't define pmaphistbuf unless UVMHIST is defined. 2001-02-17 19:09:51 +00:00
bjh21 33c7eb2382 Add necessary DDB includes. 2001-02-17 19:08:21 +00:00
bjh21 4acea3a8cc Don't do arithmetic on void *s. 2001-02-17 19:04:36 +00:00
bjh21 2e041e883b Correct return type of arcvideo_show_screen(). 2001-02-17 18:45:19 +00:00
bjh21 b211962232 Include <machine/machdep.h> for update_memc(). 2001-02-17 18:43:13 +00:00
bjh21 575fa5e5af #ifdef out arckbd_pick_layout until we get round to using it again. 2001-02-17 18:39:11 +00:00
tsutsui 47ac3d6b45 include sunos_exec.h to declare emul_sunos. 2001-02-17 18:34:57 +00:00
tsutsui 69e6648be8 Remove phys_map declaration, which is in <uvm/uvm_extern.h> 2001-02-17 18:29:55 +00:00
tsutsui f5d8c46be6 Remove unused fb stuff. 2001-02-17 18:21:03 +00:00
tsutsui 96c8c181ee Fix some nested extern declarations. 2001-02-17 18:15:18 +00:00
tsutsui 1bbd89c7a7 white space nits. 2001-02-17 18:02:40 +00:00
bjh21 a72248beab Reduce unnecessary differences between this and Makefile.arm32.
Also (more significantly), use the compiler's default -mcpu setting.  This
means I can now build APCS-32 kernels.  They work, too.
2001-02-17 17:23:48 +00:00
mrg 5713cce1e0 sync with reality. 2001-02-17 16:29:13 +00:00
bjh21 32a800e5c0 Install <arm/endian_machdep.h>. 2001-02-17 14:57:08 +00:00
bjh21 8b601afaf3 Re-introduce <arm/endian_machdep.h>, this time using GCC's idea of the target
endianness.
2001-02-17 14:55:44 +00:00
sakamoto 4185cbf85c fix multiple link vers.o 2001-02-17 11:11:13 +00:00
tsutsui a411302ed3 Include files.usb 2001-02-17 04:32:59 +00:00
tsutsui f47d2bae91 Fix include path.
(mips/include/mips_opcode.h -> mips/mips_opcode.h)
2001-02-17 04:31:25 +00:00
tsutsui 750774cded Add new arctype for NEC Express5800/230A.
XXX: we should have "sysconf" structures like pmax.
2001-02-17 04:27:53 +00:00
pk d850f6f9d2 Remove check for encoded iospace/nocache bits within physical addresses
in places where they can't possibly occur as the PA is for a VM managed
page.
2001-02-16 23:00:11 +00:00
soren 427b112ded LKMs don't work on MIPS yet anyway, so disable it for now. 2001-02-16 19:48:05 +00:00
soren 87ba37da21 Nuke. 2001-02-16 19:47:36 +00:00
eeh b0e3d231c4 Define VM_MASUSER_ADDRESS32. 2001-02-16 16:00:29 +00:00
sato ed219529f5 * vrc4172pwm_light(): workaround when brightness is max.
if light turn off, brightness must be minimum.
* more DPRINTF().
2001-02-16 12:31:46 +00:00
marcus b5f05acab7 Removed LED_ADDR (Dreamcast doesn't have program controllable LEDs). 2001-02-15 18:30:31 +00:00
scw 23cf8fe52b Add a missing _ASM_LABEL() 2001-02-15 11:49:25 +00:00
sato 6602ad15b5 * show framebuffer address in boot time. 2001-02-15 09:17:18 +00:00
sato bcece69eb6 * add MC/R430/530/530A parameters in vrc4172pwm_platid_param_table.
* fix typo in cf_loc access.
* add some DPRINTF()s.
* fix default value if no params in vrc4172pwm_platid_param_table.
2001-02-15 03:20:10 +00:00
is dd234724b6 Print out IPL. 2001-02-14 21:05:31 +00:00
is 1f9f72f6df Missing: register prefixes, _FOO_LABEL(n) macros, etc, in preparation for
ELFing the port. Patch provided by scw.
2001-02-14 20:24:17 +00:00
msaitoh 47410d3a5a sync with Makefile.mmeye.in for ELF 2001-02-14 18:06:50 +00:00
msaitoh 2633a5dcb5 _C_LABEL() 2001-02-14 17:57:31 +00:00
itojun 818f432bec have rnd(4) 2001-02-14 04:57:44 +00:00
itojun cd32aa4b95 have rnd(4). 2001-02-14 04:49:45 +00:00
nathanw 3862a24d20 Remove prototype for long-defunct i386_user_cleanup().
Remove duplicate prototype for i386_{set,get}_ldt() from sys_machdep.c.

Change i386_iopl() and i386_{set,get}_{ldt,ioperm}() to take a second
argument of "void *" instead of "char *", for consistency with other syscalls.
2001-02-14 01:29:45 +00:00
bjh21 9b6de1da90 Move cpu_coredump() from arm32/arm32/vm_machdep.c to arm/arm/vm_machdep_arm.c.
Also ANSIfy it and use it on arm26.
2001-02-13 22:54:25 +00:00
bjh21 7b820f85da Fix to compile with current ne2000.c: ne2000_attach() now only takes two
arguments.
2001-02-13 19:17:13 +00:00
bjh21 f942342607 Fix a typo in the last change (eh_init_media -> eh_media_init). 2001-02-13 18:20:57 +00:00
pk 063b190de9 Hold off supplying the text/data gap to the VM manager; our pv table
handling isn't adequate yet.
2001-02-13 15:54:33 +00:00
simonb e07c392eed Fix typo in header filename. 2001-02-13 14:11:30 +00:00
pk e547d3816d pmap_page_upload(): check if `etext_gap' is there, just in case. 2001-02-13 13:48:15 +00:00
bjh21 284047a2b2 Move sendsig() and sys___sigreturn14() from arm26/arm26/vm_machdep.c and
arm32/arm32/machdep.c into arm/arm/sig_machdep.c, merging and ANSIfying in
the process.

The code is based on the arm32 version, so I don't think anything should break
there.
2001-02-13 13:19:52 +00:00
bjh21 4e460028dc Since idle() turns up in so many stack backtraces, put it in the global
symbol table.
2001-02-13 13:16:37 +00:00
jmc 5b5b0dfdcb Add back proginstall rule so this doesn't get it's a.out header removed. 2001-02-13 03:08:54 +00:00
briggs d5cb949785 Install int_types.h, too. 2001-02-13 01:12:56 +00:00
bjh21 82bf8a9d0a Avoid uninitialised variable reading /dev/mem. 2001-02-12 23:29:08 +00:00
pk 460bc0a0fc Recover the ~64KB gap in between the text/rodata & data segments that's being
generated by the linker in sparc/ELF images. The physical pages in this gap
are unmapped from the kernel and given to the VM manager.
2001-02-12 22:02:58 +00:00
briggs d8cd14d437 Rip the guts out of pmap_remove() and create pmap_do_remove(), called with
a flag that determines whether or not wired mapping should be removed.
pmap_collect() calls pmap_do_remove() without this flag, and pmap_remove()
calls with it.
Pointed out on port-mac68k with suggested fix from chs.
2001-02-12 22:00:08 +00:00
pk d713d112c9 Provide symbol `kernel_data_start' as the first address in the .data segment. 2001-02-12 21:56:54 +00:00
manu 472596699d Removed a copyright for code I have removed in a previous commit 2001-02-12 21:20:32 +00:00
thorpej 043e519d55 Adjust the way that media is initialized on DP8390-compatible
chips.  The dp8390_softc now has media_init and media_fini
function pointers that do the work.
2001-02-12 18:49:03 +00:00
mrg f9c371eea3 type cleanups. 2001-02-12 16:07:38 +00:00
tsutsui f3b589fc41 - Add options NTP (sync with GENERIC)
- Fix ident (s/GENERIC/TCWSCONS/)
2001-02-12 12:55:18 +00:00
minoura 1f30e6db74 Correct typo (s/unit/unix/). 2001-02-12 12:32:23 +00:00
shin fb20946774 keep V0 value (system call number) and restore it in exception frame,
when error is ERESTART. otherwise, user process will re-issue syscall
with broken system call number and get SIGSYS signal and terminate.

patch made by Jason R Thorpe <thorpej@zembu.com>. tested by me.
2001-02-12 10:32:14 +00:00
briggs 7d1c46375d Switch from commented-out ncr* at pci? to commented-out siop* at pci?
Add option PCI_NETBSD_CONFIGURE to cause NetBSD to configure the PCI bus.
2001-02-12 06:12:18 +00:00
briggs 2e4e3c3f6f Include MII files. 2001-02-12 06:10:42 +00:00
briggs 0b356043df Make this look more like other PPC bus_dma.cs 2001-02-12 06:02:25 +00:00
briggs 89a374bf89 Supply a pci_bus_dma_tag.
Use intr_establish()/intr_distestablish() instead of calling through ISA
routines.
Supply a pci_conf_interrupt() function to assign interrupt lines for the
bus configuration.
2001-02-12 06:01:46 +00:00
briggs a738974d0c Do PCI bus configuration before we config_found() on mainbus. 2001-02-12 05:58:55 +00:00
manu 16bc5b4004 Moved the fix for negative errno returned to userland on the PowerPC to a
more machine independent fashion
2001-02-11 20:24:49 +00:00
ragge 4e155d4593 Check page reference in pmap_clear_reference(). Fixes vax hang problem
with ubc, tested by Chuck Silvers.
2001-02-11 19:25:55 +00:00
chs 2ff77ab154 fix REALBASEMEM/REALEXTMEM and defopt them while we're at it. from jason. 2001-02-11 19:03:47 +00:00
tsutsui 1e70b3b673 Add a missing colon in comment. 2001-02-11 17:56:43 +00:00
tsutsui 90fc74c95b space/tab cosmetics 2001-02-11 17:49:08 +00:00
bjh21 a4e55e0f13 Shared ARM ptrace(2) implementation. Mostly the same as the arm32
version, but with some #ifdefs for arm26.

Also, don't define PT_STEP, since we don't implement it.  This should
reduce code size a little.
2001-02-11 17:03:04 +00:00
pk 203c10194b Supply a kernel link script that puts `etext' at the end of all
read-only sections. Modelled after a similar change in the i386 port.
2001-02-11 16:16:58 +00:00
bjh21 9826a76781 Common <arm/reg.h> (and hence common struct reg) for ARM.
This is theoretically backward-incompatible on arm26, but GDB doesn't work there
yet anyway.
2001-02-11 14:51:55 +00:00
bjh21 60af6ce7ca Don't trust function return to restore IRQ disable flag, since it won't
in APCS-32.
2001-02-11 14:46:11 +00:00
mycroft d3f45f8053 Update to the current state of the world. 2001-02-11 10:40:51 +00:00
is 15d041fe54 Be a bit more helpful in the error case. 2001-02-11 09:54:48 +00:00
eeh c269f4f002 Add COMPAT_SVR4_32. 2001-02-11 01:00:51 +00:00
eeh d8405328df Add support for COMPAT_SVR4_32. 2001-02-11 00:39:37 +00:00
eeh 750052a46f Remove things that are defined in elf_machdep.h now. 2001-02-11 00:37:22 +00:00
eeh 96bf37a78f Save the machine model string in case someone needs it (like slowlaris). 2001-02-11 00:27:06 +00:00
eeh 6e928d620b Add some new gunk Sun uses. 2001-02-11 00:18:49 +00:00
eeh 1ac34a6a98 A register is 64-bits unless we're emulating 32-bit. 2001-02-11 00:17:03 +00:00
eeh 945c9cac5f Increase limits slightly. We're still not using all 32 address bits yet,
let alone 64.....
2001-02-11 00:09:45 +00:00
eeh 1671aa6706 Increase NKMEMPAGES to a more useful value. 2001-02-11 00:07:10 +00:00
eeh 3e47436b79 Add some extra fields to a dmamap to track what's being mapped. 2001-02-11 00:05:47 +00:00
eeh 3daccde8d4 Print out more useful data if there are interrupt issues. 2001-02-11 00:02:58 +00:00
pk 5fb1ec8af6 Fix conditional for svr4 compat inclusion. 2001-02-10 20:00:24 +00:00
bjh21 6d285953f5 When an array is declared as int r[13], don't go trying to use r[13]. 2001-02-10 19:09:48 +00:00
leo 8f10488c29 Prepare assembly parts for an eventual transition to ELF. Mostly from a
diff from Steve Woodford.
2001-02-09 21:47:45 +00:00
uch f19685fa10 I forgot to initialize bicons for hpcmips. 2001-02-09 20:42:27 +00:00
uch b23ab5a536 use bicons.
set serial console speed to 19200.
2001-02-09 19:54:11 +00:00
uch 68b5de4251 sync with bicons change. 2001-02-09 19:47:28 +00:00
mycroft c36eeffed0 Make this a little more realistic. 2001-02-09 19:12:08 +00:00
uch 9173eae73b bootloader for SH3, SA-1100, TX39, VR41 based Windows CE(2.00 or later) 2001-02-09 18:34:01 +00:00
manu d48e534f38 Fixed a bug in the way errno return was handled in linux emulation (we returned the opposite of the expected errno) 2001-02-09 17:48:01 +00:00
wiz 08ca85d04d De-lint. Reviewed by christos. 2001-02-09 15:54:18 +00:00
bjh21 21e1b73962 Update ioeb_irq_clear to match its caller. 2001-02-08 22:21:24 +00:00
briggs 5b380e8c30 Keyboard, mouse, ws* 2001-02-08 20:27:24 +00:00
briggs 55a187d809 Add lpt and fdc/fd back in. Include i4b stuff, too. 2001-02-08 18:33:07 +00:00
briggs 5fb8680bf6 Add fdc and lpt. 2001-02-08 18:33:03 +00:00
briggs c86117ec25 Make it a #error to define PCI without PCI_NETBSD_CONFIGURE. 2001-02-08 18:32:02 +00:00
briggs c3e491058d Get rid of warning if no com devices are specified. 2001-02-08 18:31:25 +00:00
briggs d2b8b0adf8 We really don't want isapnp. 2001-02-08 18:29:28 +00:00
briggs afb7789ae8 Enable devices on the SuperIO chip. 2001-02-08 18:29:05 +00:00
is 8b2795fa72 Support for BSC ISDN Master II. As far as we are concerned, this seems
to be identical to the old model.
2001-02-08 18:08:22 +00:00
christos 6bf4ad97d6 appease lint: use u_int32_t and name the bit fields. 2001-02-08 17:54:43 +00:00
chs fac51ab1a0 create dependency info for assym.h. 2001-02-08 15:19:14 +00:00
tsutsui 6b047fe46b In footbridge_pci_intr_map(), pcv and intrtag are used
only #ifdef PCI_DEBUG. Move declarations in it.
2001-02-08 13:59:38 +00:00
tsutsui 276fc3f6b7 One more fix for pci_intr_map() API change. 2001-02-08 13:55:45 +00:00
chs 59674580ab missed an underscore in previous. 2001-02-07 23:30:27 +00:00
uch 9279c0455c adapted to hpc bootinfo structure.
add memory detect routines.
2001-02-07 15:29:21 +00:00
uch 78af56fcfd move VM_PHYSSEG_MAX, VM_NFREELIST, VM_FREELIST_DEFAULT defines to
machine/vmparam.h
2001-02-07 14:53:09 +00:00
tsutsui 452f5212ff Use common %cacr definitions between sun3 and sun3x.
%cacr bits added on 68030 don't cause any sideeffect on 68020.

XXX: We probably need <m68k/cacr.h>. See comments in <m68k/cpu.h>.
2001-02-07 14:28:50 +00:00
tsutsui 93a1c84cac Add pio.h to INCS. 2001-02-07 12:43:52 +00:00
wdk c0f3e4293d Add a MD zs_chanstate layer that carries bus_space information
Tidy up several comments at same time.
2001-02-07 11:40:18 +00:00
wdk 25ad09d3d2 Fully implement bus_space(9) access to the z8530 SCC registers.
This adds the missing wbflush() calls after writing register data.

At same time tidy up several comments and make several KNF changes.

XXX: The z8530 MI driver doesn't support bus_space access to the registers
     (lacks a hook for storing a bus space tag, and stores register
     addresses directly)
     Until other ports catch up (this is the first) we have overlayed
     the missing data in the MD structures
2001-02-07 11:38:34 +00:00
chs aaf5efe492 fix previous to work with a.out as well. 2001-02-07 06:13:21 +00:00
briggs be0166b004 Add in ppb* for PCI-PCI bridge support. 2001-02-07 05:51:10 +00:00
briggs 7fe588dfd3 Handle setting the proper interrupt line for devices behind bridges. 2001-02-07 05:49:17 +00:00
eeh 2411eab448 Fix D$ aliasing issues in a DIAGNOSTIC check. 2001-02-06 19:04:57 +00:00
uch 6a7b420b7e move machine-port specific file to machine directory.
for evbsh3, mmeye and dreamcast, use MI md_root.c
2001-02-06 16:45:19 +00:00
briggs 14af61adca include uvm/uvm.h to get rid of compilation warnings. 2001-02-06 05:03:43 +00:00
briggs b596e31748 Define a pci_bus_dma_tag. 2001-02-06 05:01:31 +00:00
briggs 04fa98380d Pointer to documentation for PHYS_TO_PCI_MEM/PCI_MEM_TO_PHYS. 2001-02-06 05:00:50 +00:00
wdk 8bbe289faf Allow file to be included in assembler source (bootstrap code etc.) 2001-02-06 04:32:29 +00:00
wdk f4290b34e9 Make booted_device struct visible to RAIDframe driver 2001-02-06 04:27:48 +00:00
briggs 2f624f78d6 Share a single pio.h instead of having 4 nearly-identical copies. 2001-02-05 19:33:54 +00:00
briggs e96035c57c Tsubai has convinced me that openpic_init() should remain machine-dependant
as the details might differ between archs, and passing the various options
leads to some clutter.
2001-02-05 19:22:23 +00:00
thorpej 40c4d1e0c3 Rename the CLI/STI/ECLI/ESTI macros to more descriptive names,
and add comments to describe exactly what they do (because it's
not totally obvious at a glance, due to the number juggling necessary
to frob the correct bits in SR):

CLI -> EXCEPT_DISABLE (sets SR.BL)
STI -> EXCEPT_ENABLE (clears SR.BL)

ECLI -> INTR_DISABLE (sets SR.I[0-3])
ESTI -> INTR_ENABLE (clears SR.I[0-3])
2001-02-05 18:14:42 +00:00
uch 2cb604a22d sync with platid_gen change. 2001-02-05 17:39:45 +00:00
abs c78bf4efdb Add ipfilter, and a bunch of (commented out) network options. 2001-02-05 17:32:08 +00:00
uch cd5dc32000 add SH3 CCR register address define. 2001-02-05 16:51:16 +00:00
tsutsui 99adff7a25 Remove db_machine_init(), which was removed from mips/db_interface.c. 2001-02-05 13:34:42 +00:00
ragge 1af765a6dd Oops, forgot this file. 2001-02-05 13:20:10 +00:00
tsutsui de70ac347a db_machine_init() is no longer needed.
From Shigeji Ishikawa <psybear@ogre.rim.or.jp> in port-cobalt/12123.
2001-02-05 13:18:28 +00:00
tsutsui 869fdfbf12 Fix typo on pci_intr_map() changes.
Reported by Shigeji Ishikawa <psybear@ogre.rim.or.jp> in port-cobalt/12121.
2001-02-05 13:14:21 +00:00
mrg 22a68e0e29 oops, kill some debugging messages. 2001-02-05 13:13:47 +00:00
tsutsui 8bc87999fc Remove obsolete cpu_exec_ecoff_hook(). 2001-02-05 13:10:07 +00:00
mrg 2d7ba2f0e7 turn off UVMHIST. turn on LKM. makeoptions DEBUG=-g 2001-02-05 12:49:11 +00:00
mrg 05752997ef use sunos32_machdep.c on 64 bit kernels. 2001-02-05 12:47:47 +00:00
mrg e1ac1f31b9 make sure 32 bit addresses are truncated properly. 2001-02-05 12:45:38 +00:00
chs f889fd6ff9 remove signal trampoline stuff since it'll never be used in the kernel.
clean up the ELF support.
2001-02-05 12:37:33 +00:00
chs 5f244b1055 conditionalize the ddb hook on DDB && DEBUG_FPE rather than DDB && DEBUG,
since that's the condition under which we include the header file that
allows it to compile.
2001-02-05 12:35:13 +00:00
chs 755889bc0b clear pcb_onfault before calling uvm_fault() and restore it afterward.
if the fault handler generates a pagefault, we'd like to panic rather
than invoking the onfault handler.
2001-02-05 11:12:05 +00:00
chs 09cb38f22b expose the definitions of MIN() and MAX() in sys/param.h to the kernel
and use those in favor of a dozen copies scattered around the source tree.
2001-02-05 10:42:40 +00:00
eeh db133b2424 Add signal trampoline for 64-bit svr4 emulations. 2001-02-05 06:56:45 +00:00
itojun d0bc7a3c3d s/unix/unit/ for ld* on mlx* :-) 2001-02-05 04:16:52 +00:00
jmc ece49e13a9 Back out last change. m68k.h is now in cpu.h (which got updated in between
my noticing this problem here on a sun3).
2001-02-04 23:53:31 +00:00
ragge 2c1941b3eb Giant update from Michael Kukat (michael@unixiron.org).
Fixes support for:
                       MicroVAX 3100m90
                       MicroVAX 3100m95
                       VAX 4000/100 (tested)
                       VAX 4000/105A (tested)
                       VAX 4000/108
                       VAX 4000/400 (tested)
                       VAX 4000/500 (tested)
                       VAX 4000/600
2001-02-04 20:36:26 +00:00
briggs c8ef73b71f Support for the Motorola Sandpoint reference platform using the
MPC8240 processor module.  See the README for more information.
2001-02-04 18:32:10 +00:00
briggs 863805b4d8 Correct previous. Call openpic_init() correctly. 2001-02-04 17:46:33 +00:00
briggs 522ec180e9 Build with -Wall -Wetc. 2001-02-04 17:38:10 +00:00
briggs e560b86e0b Adapt to new openpic_init() parameters. 2001-02-04 17:36:08 +00:00
perry 65e351a124 keep joystick lines together 2001-02-04 17:36:03 +00:00
briggs ace7a75bd5 Remove dependancy on ICU_LEN m.d. define. Thanks, Tsubai. 2001-02-04 17:35:28 +00:00
briggs cbb39b8875 defopt openpic 2001-02-04 17:34:11 +00:00
briggs 0ce1220246 For now, all macppc will get OpenPIC 2001-02-04 17:33:42 +00:00
ad 8d75ab98d3 Add a driver for the Mylex DAC960 family (including DEC SWXCR). 2001-02-04 17:05:11 +00:00
jmc 7ce76feecc In the LKM section add some things the LKM's need (since they aren't
defining _SUN3_ or _SUN3X_ generally to pickup the full vmparam.h

Added MAXDSIZ (set to sun3's limit) and VM_NFREELIST
2001-02-04 10:16:03 +00:00
jmc 36f1b05b1f Include m68k/m68k.h to pickup definition for fputype. 2001-02-04 10:13:08 +00:00
jmc e1fb29e236 Make targets proper so this builds both as a make with no args, make all
or make dependall (without the latter snapshot builds break).

Also, change the build layout for the 2 standalone objs.

XXX - Add them to LOBJS. (We're not building lint libraries, but having them
in LOBJS and MKLINT=no results in objects building anyways. This needs to be
cleaner but nothing in the standard mk files jumps out as "other object files")
2001-02-04 08:59:57 +00:00
jmc 17a976fa32 Make targets proper so this builds both as a make with no args, make all
or make dependall (without the latter snapshot builds break).

Also, add udp.c into the SRCS list. rpc.c calls routines from it.
2001-02-04 08:57:52 +00:00
jmc 243eb5180a Make targets proper so this builds both as a make with no args, make all
or make dependall (without the latter snapshot builds break).
2001-02-04 08:57:21 +00:00
takemura 596e28b8c2 Marge hpcmips/conf/platid.def and hpcsh/conf/platid.def
into hpc/conf/platid.def.
2001-02-04 05:19:14 +00:00
tsutsui 20c4de8a40 Move cachectl1() declaration from sun3/machdep.h to include/cpu.h;
it is refered by sys/compat/linux/arch/m68k/linux_machdep.c.

XXX: all declarations in machdep.h should be moved into cpu.h?
2001-02-04 01:31:54 +00:00
tsutsui a031d05fa8 Add -D__m68k__ to XDEF.
It is required by sys/compat/linux/common/linux_exec.h.

XXX: -undef is still required?
2001-02-04 01:26:44 +00:00
marcus 0d6830073e Added subunit scan. 2001-02-03 23:25:51 +00:00
marcus 3f60497b85 Increased HZ to 100. 2001-02-03 23:24:30 +00:00
is e36ad02480 gspa can directly create the C language array. 2001-02-03 20:23:59 +00:00
bjh21 74591d814f Add a definition of MID_MACHINE -- kernel cores still need it. 2001-02-03 17:18:30 +00:00
tsutsui 4f047d1990 Bring FPU probe code from atari/fpu.c and remove unneeded includes. 2001-02-03 14:30:42 +00:00
tsutsui b26a441f6a Remove reg_dump() declaration, which is in <m68k/m68k.h> 2001-02-03 13:02:20 +00:00
tsutsui 8ae17a2c61 Use macro in <m68k/m68k.h> for cputype and mmutype. 2001-02-03 12:59:48 +00:00
tsutsui 497bb4f2ea Remove declaration of copypage() and zeropage(); they are in <m68k/m68k.h> 2001-02-03 12:57:05 +00:00
tsutsui 5f9454752b m68k/m68k.h is now pulled via machine/cpu.h. 2001-02-03 12:55:35 +00:00
tsutsui fdddc67af0 Remove declaration of getdfc(), getsfc() and fputype.
They are in <m68k/m68k.h>
2001-02-03 12:53:23 +00:00
tsutsui 31a0a141cb Include <m68k/m68k.h> to use m68k common definitions. 2001-02-03 12:50:53 +00:00
tsutsui a3cd82caf9 Remove declaration of cold; it's in <sys/kernel.h> 2001-02-03 12:46:04 +00:00
tsutsui 53e0e33ba4 Remove some of broken cf_unit usage. 2001-02-03 12:40:58 +00:00
is 92fd3fa589 Initial, still incomplete wscons support by Jukka Andberg, PR 11068 2001-02-02 21:52:11 +00:00
thorpej c8cdb12913 Add some comments about P/USEG 2001-02-02 18:25:04 +00:00
fvdl fbd66cd154 Add COMPAT_15 2001-02-02 10:53:48 +00:00
sato dcdef16dcd Copyright year. 2001-02-02 08:31:04 +00:00
mrg c084c19f60 add "wd" to chrtoblktbl 2001-02-02 07:39:28 +00:00
mrg 2a9fceab8d enable the kbd/ms. enable some compat options for compat_sunos 2001-02-02 07:33:42 +00:00
mrg 9954eaa78b include compat/sunos32/sunos32.files 2001-02-02 07:32:45 +00:00
mrg 04cb3c57d6 bump NMBLUSTERS now this machine has NFS server tasks. 2001-02-02 07:32:20 +00:00
marcus 5592504080 Fixed type mismatch in debug output... 2001-02-02 06:27:44 +00:00
briggs 9150a401ba No longer needed 2001-02-02 06:12:34 +00:00
briggs 044caccfff Split OpenPIC support into powerpc so ports only need minimal custom
configuration.  openpic_init() now takes a single argument that is the
base of the OpenPIC register space.
2001-02-02 06:11:52 +00:00
thorpej 4fab177f7e Don't make the reporting of the keyboard type a parenthetical. 2001-02-02 03:09:16 +00:00
thorpej 2ae9f715f6 Report the VGA/NTSC RGB/composite mode of the display. 2001-02-02 03:07:29 +00:00
thorpej ef2315d256 Rewrite how mod/ref emulation is done. In particular, make
modified attribute checking actually work.  Previously, a
page could be reported as modified even if it wasn't!  This
is very bad, and e.g. caused the VM system to attempt to
"clean" pages of read-only files.

Only lip-services is paid to referenced attribute emulation.
This could be improved.
2001-02-02 02:28:18 +00:00
leo 50c553e643 Announce page-size to the VM-system. Thanks to Izumi Tsutsui for pointing
this out.
2001-02-01 21:22:55 +00:00
thorpej 6195ca3474 Add some info to the dmamap_sync assertion messages. 2001-02-01 19:56:44 +00:00
marcus fc7cc52392 Fixed the last raw accesses to use bus_space. Also added DMA mem size field. 2001-02-01 19:35:04 +00:00
leo 3d1167e274 Fix fallout from lastest tty changes. 2001-02-01 08:59:45 +00:00
leo 9b569c3abe No longer update the PAGE_* variables. They have turned into compile time
constants.
2001-02-01 08:58:03 +00:00
tsutsui 94ebf6d0d7 Update for the install floppy:
- Add newer devices (wscons etc.)
- Add -mmemcpy to COPTS
- Reduce maxusers
- Remove KERNFS
- Disable some COMPAT_* options
- Add MEMORY_DISK_SERVER=0
- Enable options NFS_V2_ONLY and VNODE_OP_NOINLINE
2001-02-01 06:23:54 +00:00
thorpej f436156dd7 Use the BOLD8x16 font for the console, and remove the RCONS_16BPP
option (no longer needed).
2001-02-01 01:27:59 +00:00
thorpej f16d219c1b Config glue for rasops/wsfont. 2001-02-01 01:27:04 +00:00
thorpej fbfc0872d8 New PowerVR display driver, based on the TURBOchannel "cfb"
driver by Tohru Nisimura (a very good framework for a FB driver,
BTW!), using bits of Marcus's original driver for the hardware
access.

The main advantage of this version is that is uses rasops (which
is faster than the rcons stuff) and wsfont, so you can select the
console font in the kernel config file.  Using the BOLD8x16 font,
you get an 80x30 console (vast improvement compared to the Gallant12x22
font).
2001-02-01 01:25:56 +00:00
thorpej 41b0cdf3e5 Add configuration info for the SEGA Broadband Adapter,
and enable the NFS file system and DHCP NFS root support.
2001-02-01 01:09:12 +00:00
thorpej 26cf6921bc GAPS PCI bridge support. Low-level stuff from Marcus, bus_dma
implementation from me.
2001-02-01 01:04:55 +00:00
thorpej e2c0abd45d Implement {read,write}_region_1, and sprinkle some __volatile
around for sanity.
2001-02-01 01:01:50 +00:00
marcus f2358f8d43 Basic G2 locking implemented. 2001-01-31 21:58:37 +00:00
thorpej d729ba2b1f Support for masking/unmasking IRQ 11 (used by the G2/GAPS bridge).
From Marcus.
2001-01-31 18:44:07 +00:00
thorpej a42d651b53 G2/GAPS PCI configuration glue, for the Broadband Adapter. 2001-01-31 18:39:46 +00:00
thorpej 9342211052 PCI glue, from Marcus. 2001-01-31 18:38:26 +00:00
thorpej 7135afee31 New bus_space and bus_dma framework, based on the Alpha implemetation. 2001-01-31 18:37:11 +00:00
thorpej 63885cd020 G2 bus support. Low level stuff by Marcus, bus_space stuff by me. 2001-01-31 18:33:24 +00:00
pk 25a91d5c1e _bus_dma_valloc_skewed(): return a vaddr_t, not error codes; make missing
boundary check return an error, so the caller can decide how to respond.
2001-01-31 15:17:42 +00:00
thorpej c625c7ee25 Set the keyboard layout based on what type of keyboard
we probe, defaulting to Japanese if we don't know what
kind of keyboard we have.

XXX This should be done differently, if we ever want to
support multiple keyboards.
2001-01-31 03:21:03 +00:00
thorpej 37aca7f3f0 Add a US keyboard map. This may need to be reworked, as this
uses the Japanese keyboard map as the base.
2001-01-31 03:19:50 +00:00
thorpej b81a17e100 Make the "maple" bus a direct config bus. Now, when a device is
not configured into the kernel, you know about it, e.g.:

Dreamcast Controller         at maple0 port 0 not configured
2001-01-31 00:14:29 +00:00
thorpej 5c8624a602 Recognize the US keyboard. 2001-01-31 00:08:35 +00:00
tshiozak d3545308ee add umidi. 2001-01-30 23:32:34 +00:00
tsutsui 677243711e Add a version file and print version strings generated by newvers_stand.sh. 2001-01-30 14:29:47 +00:00
tsutsui 9af4874133 Umm, fix botch in the previous;
include bsd.own.mk at the top, and include bsd.prog.mk at the bottom.
2001-01-30 14:21:49 +00:00
tsutsui 75e4c0c1be - bzero() -> memset()
- Remove unneeded includes
- WARNSfy
2001-01-30 14:11:00 +00:00