Commit Graph

26115 Commits

Author SHA1 Message Date
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