Commit Graph

30684 Commits

Author SHA1 Message Date
lukem cd19d52695 * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are now consistently named
* fold opt_mdsize.h into opt_md.h
2002-03-10 19:56:37 +00:00
lukem 710f40a884 * rename MEMORY_DISK_SIZE to OLD_MEMORY_DISK_SIZE; as far as I can
tell nothing in the acorn32 port was using this version of
  MEMORY_DISK_SIZE but I've left the code here incase the portmaster
  wants it.
* rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
  are consistently named
* fold opt_mdsize.h into opt_md.h
2002-03-10 19:53:25 +00:00
bjh21 a42e17ae9a __RCSID -> __KERNEL_RCSID 2002-03-10 15:47:43 +00:00
bjh21 3a0f83d390 Re-work the way that FPAs are handled. If ARMFPE isn't configured, don't
even bother probing for an FPA.  If ARMFPE is configured, always use it,
even if there's an FPA (since it provides the FPA support code).  Move all
printfs about FPAs into armfpe_init.c.

This means I can delete the last two elements from struct _cpu, so that the
structure, and the whole of <arm/cpus.h> is redundant and can be deleted.
2002-03-10 15:29:53 +00:00
itohy d5f39a2d9c Add explicit support of OPL3-SA2 (YMF711).
Not well tested....
2002-03-10 13:57:10 +00:00
bjh21 b0f4f4fe56 Add an RCSID while I'm here. 2002-03-10 11:39:58 +00:00
bjh21 9bb7807c7b Remove fpu_model from struct _cpu. Instead, have initialise_arm_fpe()
printf() the FPE version number itself.
2002-03-10 11:32:00 +00:00
bjh21 63231772e8 Add a ci_dev element to struct cpu_info, pointing to the device that
corresponds to the CPU.
2002-03-10 11:06:01 +00:00
takemura 41e10f2ddf Attached vrpiu at vrc4173bcu. 2002-03-10 10:13:31 +00:00
uch 9a0d81c6cc use IOM_RAM_BEGIN macro instead of ram_start. 2002-03-10 07:46:51 +00:00
uch 672baca18b proc0 and page table intialize routines are moved to sh3_machdep.c 2002-03-10 07:46:12 +00:00
uch f9201a1606 common part are moved to sh3/include/param.h 2002-03-10 07:45:31 +00:00
takemura 794600ce92 Attached vrkiu at vrc4173bcu. 2002-03-10 07:24:52 +00:00
augustss 1d7626cdd5 Make icu_intr_disestablish() actually work. 2002-03-10 03:15:24 +00:00
reinoud 6d18a99125 Fix port-acorn32/15850: machdep.booted_kernel on acorn32 is incorrect.
This has been on my TODO list for some time and i found it time to fix it
since its pretty simple to do.

The patch checks if the kernel is booted from the `UnixFS' RISC OS filing
system (case unimportant) and if so interprets its name to get the unix
file name the kernel has. If it doesn't see this prefix it will asume its
just called `netbsd'
2002-03-10 01:28:19 +00:00
bjh21 60219ba2a6 Kill the fpu_flags element from struct _cpu. It was only ever set to 0
anyway.
2002-03-10 00:44:09 +00:00
bjh21 01b68bd7de Clean up inline assembler. Rather than saving R0, copying FPSR to R0,
copying it to the output register and then restoring R0, just copy the
FPSR straight to the output.
2002-03-10 00:09:24 +00:00
bjh21 aeece3b5bd Remove the cpu_model member from struct _cpu, and just use the cpu_model
variable directly.  While we're at it, make cpu_model rather larger.
2002-03-09 23:49:15 +00:00
chs bd2a5f591d switch all mpc6xx powerpc ports to NEWPMAP by default.
the old pmap is still available with the OLDPMAP option.
2002-03-09 23:35:56 +00:00
bjh21 09dd49a342 Remove the cpu_class element from struct _cpu, and make it a local variable
in identify_arm_cpu(), since it's almost unused elsewhere.

Change the detection of bugged StrongARMs to use the cpu ID rather than the
class.  This turns "almost" into "entirely".
2002-03-09 23:24:11 +00:00
scw 3d958e8959 Add CACHELINESIZE for the benefit of lib/libkern/arch/powerpc/bzero.S. 2002-03-09 23:02:57 +00:00
bjh21 1c1e3f8439 Replace cpu_id and cpu_ctrl in struct _cpu with ci_cpuid and ci_ctrl in
struct cpu_info.  Also kill the cpuctrl global while we're here, and make
identify_arm_cpu() take a struct cpu_info * as an argument alongside the CPU
number.
2002-03-09 21:30:57 +00:00
bjh21 20917f120c Move arm700bugcount into stuct cpu_info, and attach it in
identify_master_cpu().
2002-03-09 19:11:20 +00:00
matt e8db553326 Change LABELOFFSET to 0 to be more compatible with other MBR style ports. 2002-03-09 01:15:22 +00:00
thorpej a180cee23b Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map).  Try to deal with this:

* Group all information about the backend allocator for a pool in a
  separate structure.  The pool references this structure, rather than
  the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
  to become available, but will still fail if it cannot callocate KVA
  space for the pages.  If this happens, carefully drain all pools using
  the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
  some pages, and use that information to make draining easier and more
  efficient.
* Get rid of PR_URGENT.  There was only one use of it, and it could be
  dealt with by the caller.

From art@openbsd.org.
2002-03-08 20:48:27 +00:00
uch dc55dc2c73 remove unneeded code and files. 2002-03-08 13:22:11 +00:00
uch babf2e5892 cpu_swapout() moved to cpu.h 2002-03-08 13:12:10 +00:00
chs 759dc33636 make this compile without DDB. 2002-03-08 06:03:50 +00:00
simonb abf4139889 Include libkern.h for strcmp() prototype. 2002-03-08 01:36:34 +00:00
bjh21 dcdd6be3c3 Correct definitions of various control register bits. 2002-03-07 23:16:44 +00:00
bjh21 08f3639e04 Add a comment explaining why I use -ffixed-r14 (though actually I'm not sure
it's necessary).
Add -mshort-load-words, since that's safe on all arm26 systems.
2002-03-07 23:15:23 +00:00
thorpej 069a559c65 Remove some files that no longer exist. 2002-03-07 19:34:37 +00:00
matt 7053887d27 Change LABELOFFSET to 0 to be compatible most other MBR using ports. 2002-03-07 19:15:46 +00:00
simonb 4fecd5ec85 Add an entry for evbmips.
Add an RCSid to the top of the file.
2002-03-07 14:48:23 +00:00
simonb 31e40c8ce1 A port to the MIPS Malta evaluation board. Currently supports the
MIPS32 4Kc CPU board, with support for the MIPS64 5Kc and the QED RM5261
CPU boards to follow.

The cs4281 audio hasn't been tested, there are some interrupt problems
with onboard the pciide, but all other on-board peripherals work.

The evbmips port will support more MIPS evaluation boards in the future.
2002-03-07 14:43:56 +00:00
wiz 0f2823f594 Add commented out option OFB_ENABLE_CACHE (speeds up text display on
the console).
2002-03-07 13:10:12 +00:00
simonb ee374e2f14 Remove the -O0 workaround for nfs_bio.c - the in-tree toolchain builds
this properly.
2002-03-06 23:50:42 +00:00
mhitch d65798ca1d Add media support (such as it is), manual is all you get. 2002-03-06 22:07:39 +00:00
tsutsui 98c71d1fdd Fix calculation of dma segment length
when the DVMA range is crossing the boundary.
Approved by eeh, and fixes port-sparc64/15200.
2002-03-06 17:12:51 +00:00
tsutsui 3fdc4d2b1d Set correct count in spifi_read_count(). 2002-03-06 16:50:34 +00:00
uch 39425a7420 fix bug of TMU0 interrupt priority level setting. (my previous commit broke it.) 2002-03-06 15:03:21 +00:00
uch a752b69bfa make this compile with DIAGNOSTIC 2002-03-06 15:02:04 +00:00
uch f35aa9c904 don't attach bivideo. 2002-03-06 15:01:05 +00:00
uch 3d0f70f7fc remove ite8181video's bivideo dependency. 2002-03-06 15:00:04 +00:00
tsutsui 3c8b0446fe Change type of dumpmag to u_int32_t since it is actually
a 32bit unsigned magic number.
As per discussion on tech-kern, and fixes port-sparc64/11949.
2002-03-06 13:10:18 +00:00
chris 09b5f7b740 Mostly style changes to stop us directly referencing tqh_first, and use TAILQ_FIRST instead. Based on rev 1.130 of the i386 pmap.c. 2002-03-06 10:55:21 +00:00
simonb 1c904f9d33 Use MIPS_PHYS_TO_KSEG1 instead of cfe's PHYS_TO_K1 macro. 2002-03-06 09:32:04 +00:00
simonb 4025359daa cgd notes that we shouldn't use the CPU xtal for calculating wall-clock
time - but as yet we don't attach the RTC becuase it's on an SMbus.
One for later...
2002-03-06 08:02:12 +00:00
simonb 52bf6c669b Neaten slightly. 2002-03-06 07:51:02 +00:00
simonb 2bf916e97d Implement a clkread() function for microtime() using a multu/mfhi
sequence using the reciprocal of the delay divisor to perform the
division.
Set the cp0 compare register so that it doesn't trigger interrupts and
reset the cp0 count register in the hardclock interrupt handler.
2002-03-06 07:47:57 +00:00