Commit Graph

1802 Commits

Author SHA1 Message Date
cgd 8bbc38a130 avail mem is calculated ptoa(uvmexp.free), not ptoa(uvmexp.free - bufpages),
like on other ports.  uvmexp.free is already adjusted by the uvm_pagealloc
calls used to get the buffer pages.  (reported by mrg)
1998-09-02 00:03:05 +00:00
mark 0c11c52fc1 Added csc device. 1998-09-01 02:28:04 +00:00
mark 1c13966ceb Add csc device and scsibus attachment. 1998-09-01 02:27:21 +00:00
mark edb737d09d Initial commit of a Cumana SCSI II driver using the sfas chip driver. 1998-09-01 02:24:11 +00:00
mrg 478a07de87 generate dependancies from genassym.cf 1998-09-01 01:48:21 +00:00
mrg 1fe0874746 use genassym.sh/.cf rather then the C program. 1998-08-31 06:52:18 +00:00
mark 0e533ae4c7 Use IPL_AUDIO for the interrupt priority.
KNF.
1998-08-31 02:36:11 +00:00
mark bd75906989 Use IPL_AUDIO for the interrupt priority.
Cleaned up some comments and removed several un-necessary includes.
1998-08-31 02:35:31 +00:00
mark 47364b0c91 Use IPL_AUDIO for the interrupt priority. 1998-08-31 02:34:36 +00:00
mark cdaa8d9c45 Further improvements to init_arm(). Use map_chunk() to map a number of
areas of the kernel including the text, data and bss.
1998-08-31 00:11:18 +00:00
mark 80d8aa6034 Remove a couple of redundant lines. 1998-08-31 00:08:11 +00:00
mark c4ae202098 Further improvements to init_arm(). Use map_chunk() to map a number of
areas of the kernel include the text, data and bss.
1998-08-30 23:19:37 +00:00
mark 45faa60d85 Added a new function map_chunk() used during init_arm() when setting up
the kernel page tables. map_chunk() replaces running a loop, calling
map_entry() and in addition where possible it will use L1 section mappings
or L2 large page mappings instead of L2 small page mappings in order to
reduce the TLB entried needed for the kernel.
1998-08-30 23:17:44 +00:00
mark 82661d453d Define new PTE construction macros for L2 large small pages and L1
sections and define some of the other macros using the new ones.
Add more comments for various definitions in the file.
1998-08-30 23:15:14 +00:00
mark eff784066e Don't discard the proc0_pt_pte mapping and make sure that the
proc0_pt_pte and proc_pagedir mappings are uncached.
1998-08-29 04:58:16 +00:00
mark 4a241e1fbd Change KERNEL_BASE to VM_MIN_KERNEL_ADDRESS. 1998-08-29 04:08:12 +00:00
mark 9eb28e934b Include sys/types.h instead of sys/param.h
Junk some un-needed includes and include cpu.h.
1998-08-29 04:05:44 +00:00
mark ae7526d965 Removed some un-necessary includes. 1998-08-29 04:01:58 +00:00
mark c611af7c7f Change boot_path to boot_file and initialise to NULL along with boot_args. 1998-08-29 03:57:03 +00:00
mark 5898385f6b Change boot_path -> boot_file and initialise to NULL along with boot_args. 1998-08-29 03:55:57 +00:00
mark 4ad81305d5 Initialise boot_args and boot_file to NULL. 1998-08-29 03:53:17 +00:00
mark 80b4f63e42 Updated for some reserved majors. 1998-08-29 03:28:17 +00:00
mark af5eba9861 Implement address validation as a separate function db_validate_address().
Use this function to validate the page table entries for all reads and
writes.
1998-08-29 03:21:33 +00:00
mark 3e217a0157 Remove the definition of CURRENT_PAGEDIR_HOLE and CURRENT_PAGEDIR_BASE
as they are no longer reference.
Move ALT_PAGE_TBLS_BASE from 0xf3c00000 to 0xf0c00000.
Increase the size of the KERNEL_VM_SIZE by 16MB now that 0xf3xxxxxx is free.
1998-08-29 03:19:55 +00:00
mark 22a3c54923 Use KERNEL_VM_SIZE to calculate the number of page tables needed for
the kernel data area.
Don't map the proc0 L1 page table into the L2 page tables space.
1998-08-29 03:17:27 +00:00
mark 99bb4b6b6b Rewritten pmap_pte() not to use the mapping of the L1 page table within
the L2 pages tables (CURRENT_PAGEDIR_HOLE).
Don't map the L1 page table into the L2 page table space any more (easy
reference hack) in pmap_allocpagedir().
1998-08-29 03:14:14 +00:00
mark 66074cf792 Use VM_MAX_KERNEL_BUF only to limit nbuf and not bufpages. 1998-08-29 03:09:14 +00:00
mark 808c0cca58 Fix bug with zeroing kernel page tables that I introduced yesterday. 1998-08-28 20:04:35 +00:00
mark 1cb7a16aed Fix typo. The page table allocation loop in initarm() should be
<= NUM_KERNEL_PTS rather than < NUM_KERNEL_PTS.
1998-08-28 17:15:45 +00:00
mark 25ae95328f Use kernel_pmap->pm_pdir instead of PAGE_DIRS_BASE when mapping podule
space.
1998-08-28 03:19:34 +00:00
mark 17dcbf485c More reworking in initarm().
Further cleanup and simply the allocation and mapping of the kernel
  pagetables and static data pages.
  Removed the page directory page table as it is no longer necessary.
  Changed the allocation of the proc0 L1 page table and L2 page table
  that maps the page tables to map these pages into kernel virtual
  address space.
  Updated for pv_addr_t argument changes to pmap_bootstrap().
1998-08-28 02:58:41 +00:00
mark 133f5c93f0 Updated for pmap_bootstrap() argument change. Modify ofw_configmem()
to obtains pv_addr_t structures for the proc0 L1 page table and the proc0
pagetable that maps page tables.
Use the virtual address from the pv_addr_t structure for the proc0 L1 page
table when calling pmap_bootstrap rather than relying on a special mapping
at PAGE_DIRS_BASE.
Modify ofw_construct_proc0_addrspace() for similar changes to
ofw_configmem().
Remove the kernel_pde page table in ofw_construct_proc0_addrspace() as it
it now longer needed.
1998-08-28 02:52:37 +00:00
mark 1ca0ef8cae Modify the arguments to pmap_bootstrap() to take a pv_addr_t structure
for the page table to map kernel pagetables (kernel_ptpt). This means
that the pm_vptpt field is now valid for the kernel_pmap.
Use constants from vmparam.h in pmap_allocpagedir().
1998-08-28 02:46:51 +00:00
mark c5695ed630 Centralize the definition of pv_addr_t to pmap.h 1998-08-27 04:00:53 +00:00
mark af91a82f1e Remove pv_addr_t and systempage declarations. 1998-08-27 03:58:10 +00:00
mark e7a61c9984 Centralise the definition of the pv_addr_t structure. 1998-08-27 03:55:06 +00:00
tv 7308faf67b "COMPAT_11 + COMPAT_12 + COMPAT_13" doesn't work - these are based on
definition, not 1 or 0.  Also, since all pre-1.4 releases require
COMPAT_13 (not just 1.3 binaries), just "#ifdef COMPAT_13".
1998-08-26 14:51:57 +00:00
augustss 9deb19798f Add OPL driver. 1998-08-26 12:10:57 +00:00
augustss 76567c8213 Remove ad1848 attribute; it's in conf/files now.
(Why don't we remove the XXX hack in this file?)
1998-08-26 09:32:24 +00:00
mark 47e470f2af Use UVM as standard. 1998-08-25 22:07:46 +00:00
mark 34f8ef18c9 Updated for changes to some of the constants defined in vmparam.h
Simplified serveral parts of the initarm() to make the code clearer and
modified parts of initarm() as part of an on-going effort to abstract
out part of initarm() on various machines.
1998-08-25 22:03:07 +00:00
mark 61bd706797 Include machine/vmparam.h 1998-08-25 21:56:14 +00:00
mark bd14bb41f0 Define KERNEL_PD_SIZE in terms of various constants defined in vmparam.h 1998-08-25 21:55:06 +00:00
mark cda0e37703 Collect various kernel constants together and define them in all one
place (some moved from param.h)
Define several constants such as page table addresses in terms of other
constants.
Increase some of the limits :
  MAXTSIZ	8MB -> 16MB
  DFLDSIZ	16MB -> 128MB
  MAXDSIZ	256MB -> 512MB
  DFLSSIZ	512KB -> 2MB
1998-08-25 21:53:37 +00:00
mark 4e8239cdca Removed a number of kernel constants as they have moved to vmparam.h 1998-08-25 21:50:54 +00:00
mark f920e4e2d6 In physconinit(), don't use printf() to clear the screen but call
the console's putstring function directly.
1998-08-25 03:26:36 +00:00
mark b75234f009 Add calls to cpu_cache_cleanID() after calling setttb() during initarm().
This is necessary as the memory addresses being used for the cache clean
(if the CPU is a SA110) may have been remapped by the setttb() call and
thus the cache could loose sync with memory.
1998-08-25 03:10:25 +00:00
augustss c29fdceff3 Prepare for MIDI devices. 1998-08-22 22:50:53 +00:00
thorpej f73a7043f3 ISA Game port driver, lifted from BeBox port. 1998-08-20 06:31:34 +00:00
thorpej b176b7ba0f Add joy driver at cdev 56. 1998-08-20 06:30:56 +00:00
thorpej 31ac3d022c Add joy driver devsw declarations. 1998-08-20 06:28:43 +00:00
thorpej 2d282c7e70 Add joy driver glue. 1998-08-20 06:28:18 +00:00
thorpej cc042ba0e5 Correct a function name in a panic message. 1998-08-20 05:46:20 +00:00
thorpej 4396c67463 Internal cleanup. 1998-08-17 22:28:00 +00:00
augustss cd09067eb4 * Redo the way the way the MIDI driver attaches to audio devices.
* Improve the midisyn layer a little.
* Add a driver for the Yamaha OPL[23] FM synths.
  The opl driver is not finished yet; it sounds pretty awful.

For some strange reason I cannot get any FM sound from my SB64 cards,
but a regular SB16 works fine.
1998-08-17 21:16:09 +00:00
thorpej 0809175887 #define _CS_OFISA_MD_REG_FIXUP 1998-08-17 20:40:53 +00:00
thorpej defb1b327e Implement a reg fixup, needed for old OpenFirmware builds. 1998-08-17 20:38:08 +00:00
mark 518c6812d3 Block user space access between the cache purge and the context switch in
cpu_switch() as all user space addresses must be removed from the cache
prior to the context switch and interrupts are live for the purge.
1998-08-16 02:17:17 +00:00
mark 2ea34b589c Enable interrupts during cache clean, purge and sync operations.
Instead use a flag to indicate that all user space access are blocked
during the cache op to ensure that user space virtual addresses correctly
expunged from the cache.
1998-08-16 02:14:15 +00:00
mark decc2dde0a Implement a mechanism to prevent fuswintr() and suswintr() from accessing
user space via a flag. This enables interrupts to be live during certain
critical operations where user space accesses must not be attempted.
1998-08-16 02:11:32 +00:00
mark 152c00c687 Enable interrupts as soon as possible in prefetch_abort_handler(),
beore any of the diagnostic checks etc.
1998-08-16 02:03:30 +00:00
mark d83571ea08 Enabled interrupts as soon as it possible in syscall(), before any
of the diagnostic checks.
1998-08-16 02:01:16 +00:00
mycroft d07b3639a4 Assign my copyrights to TNF. 1998-08-15 17:47:15 +00:00
mycroft 6dc903202f Assign my copyrights to TNF. 1998-08-15 10:10:47 +00:00
mycroft 08ab3f8338 I didn't write any of this. 1998-08-15 03:36:34 +00:00
mycroft 6d3d8a1350 Make copyright notices with my name consistent. 1998-08-15 03:02:31 +00:00
thorpej 2b869a383f Use _CS_OFISA_MD_* callbacks for old, broken OpenFirmware builds. 1998-08-15 02:59:01 +00:00
mark 2a48768678 Debug inst_unconditional_flow_transfer and next_instr_address
macros so that single stepping works correctly.
1998-08-15 02:57:28 +00:00
mark 170eadd04c Add FILECORE filesystem. 1998-08-14 03:56:21 +00:00
eeh a2dd74ed79 Merge paddr_t changes into the main branch. 1998-08-13 02:10:37 +00:00
mark 3ad4ac45f9 Reworked interrupt blocking and unblocking to improve interrupt latencies
during context switches.
1998-08-12 01:10:29 +00:00
mark 0a1a20bd29 Recognise STRH, STRSH and STRSB instructions as store instructions when
determining page protections for [u]vm_fault(). Fixes bug spotted by
Richard Earnshaw.
1998-08-10 15:15:49 +00:00
mycroft 093a8daf6b Go to splhigh in the debugger. 1998-08-09 00:00:57 +00:00
mycroft e2686d0a1b Use splnet, not splimp. 1998-08-08 23:51:39 +00:00
mycroft d5eb56b2c2 Move splclock and splaudio outside splimp. 1998-08-08 23:39:38 +00:00
kleink 709dda58f8 _POSIX_SOURCE -> _POSIX_C_SOURCE, and add missing protection bits. 1998-08-06 11:22:57 +00:00
mark 25997dd19d IPL_TTY -> IPL_SERIAL. 1998-08-04 20:09:37 +00:00
mark b6ffd3a85e Don't call cpu_tlb_flushID() from the pmap_update macro. 1998-08-04 19:11:29 +00:00
mark 167a777474 Drop in the lastest round of optimisations from Neil Carson.
The cache cleaning code in pmap_copy_page() and pmap_zero_page()
  has been rewritten and uses a new function pmap_clean_page().
  pmap_remove() has been completely rewritten to make it more efficient
  when there are only a few pages that actually need to be removed.
1998-08-04 19:02:19 +00:00
mark 47ac4421e0 In setregs(), only pass the stack value in r12 if COMPAT_1[123] is defined. 1998-08-04 16:25:28 +00:00
mark 4b14908352 Fix the validation of source addresses in db_read_bytes() so that
memory ranges mapped with L1 section mappings do not cause aborts
due to lack of L2 page table.
1998-08-04 16:19:54 +00:00
mark e9c872cd6b Define a macro L1_MASK to mask out the level 1 pde type bits. 1998-08-04 16:16:22 +00:00
mark d91830b032 Namespace cleanup. Prefix all the JMPBUF* macros with _JB. 1998-08-04 02:01:17 +00:00
mark 70fe6c76a1 Pass ps_strings in r0 when execing processes.
Use macros rather than absolute values in zero_page_read*() functions.
1998-08-02 21:50:31 +00:00
thorpej 0869d8f714 Blargh, deal with some fallout from the ISA PnP goo, this will go away once
we can pull in files.isa properly.
1998-07-31 16:42:01 +00:00
thorpej 29ad6dac50 ISA PnP goo. 1998-07-31 04:50:01 +00:00
thorpej 6f3b1afe37 First-cut ISA PnP support for NetBSD/arm32. 1998-07-31 04:48:42 +00:00
thorpej 7b68dfc9c7 Fixup include paths. 1998-07-30 21:58:48 +00:00
thorpej d85ed3d973 Put the SoundBlaster stuff back for files.ofisa (Until we can just
properly include files.isa).
1998-07-30 21:51:00 +00:00
augustss cdeb158d5f A first stab at making the SHARK sound work. It doesn't really work
yet, but it probes and makes a noise when used.  Stay tuned!
1998-07-30 14:11:42 +00:00
mark 620bc79e36 Fix the copyin(), copyout() argument validation to check for zero
length copy before returning EFAULT for a bad address.
1998-07-29 00:56:08 +00:00
thorpej 6dd25080b4 Garbage-collect ofisacs, noted by Scott Reynolds. 1998-07-28 21:19:13 +00:00
thorpej 3ff8e6493a Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:34:52 +00:00
thorpej 9b35e91d59 Update for cs* at ofisa? 1998-07-27 01:44:20 +00:00
thorpej 803df07221 Obsolete. 1998-07-27 01:43:24 +00:00
thorpej 6d885615a2 Obsolete. 1998-07-27 01:42:19 +00:00
thorpej 6828d39080 Actually provide the correct bus space tags. 1998-07-27 00:48:15 +00:00
thorpej b9aeeb3fa1 Remove a test, making diagnosis of IRQ problems easier. 1998-07-26 21:24:37 +00:00
thorpej f0ff548dd2 Rewrite the probe to use values from the EEPROM for membase and IRQ
if they're not specified by the attach arguments, so that they can
be reported by isaprint().  Rearrange the attach routine to facilitate
splitting this up into front- and back-end drivers.
1998-07-25 01:15:54 +00:00
thorpej b4195e59cd Change the interface to the EEPROM functions such that they can be called
from the probe routine.
1998-07-24 23:25:13 +00:00
thorpej 8d611b5f32 Remember the product ID and revision. 1998-07-23 19:25:52 +00:00
thorpej 1c9aed40f6 Round-out full-duplex support. 1998-07-23 19:02:55 +00:00
thorpej 202d438148 CS8900 driver has of_network_dev property. 1998-07-22 22:09:59 +00:00
thorpej c10c18b955 Get media from OpenFirmware. 1998-07-22 22:09:18 +00:00
thorpej 05ff8b05f5 Print the default media at attach time. 1998-07-21 23:09:25 +00:00
thorpej 02ad0b4eda Add support for ifmedia. 1998-07-21 22:58:31 +00:00
thorpej aaa383804d Correct the name of the CS8920M id. 1998-07-21 19:54:56 +00:00
thorpej 52cfd19bcf Ever closer to KNF. 1998-07-21 01:17:14 +00:00
thorpej bb3c5257c7 Move the cs8900 driver's softc, etc. definitions to an MI location. 1998-07-21 01:04:55 +00:00
thorpej 133efc841f Use <dev/isa/cs89x0var.h> 1998-07-21 01:04:09 +00:00
thorpej 9c9a866a90 Move PacketPage read/write macros in to if_csvar.h 1998-07-21 00:58:46 +00:00
thorpej bdc9dcbe8a G/c two more unused definitions. 1998-07-21 00:53:57 +00:00
thorpej 23efef79fc Move the code that prints Rx errors into a separate function, rather than
duplicating it.
1998-07-21 00:52:15 +00:00
thorpej 9282418a78 Some cosmetic changes. 1998-07-21 00:40:17 +00:00
thorpej 20fb09c609 G/c more unused debugging goo. 1998-07-21 00:24:45 +00:00
thorpej 6014ea2216 Garbage-collect some unused debugging goo. 1998-07-21 00:23:18 +00:00
thorpej f45804c4c6 Nuke sc_iobase (and a serious misuse of it!) 1998-07-21 00:22:29 +00:00
thorpej 22ff8accae Use fixed-size types. 1998-07-21 00:20:35 +00:00
thorpej 5b56c35223 Nuke the "pia" typedef. 1998-07-21 00:18:35 +00:00
thorpej 44d02a07d0 Update for <dev/isa/cs89x0reg.h> 1998-07-21 00:11:03 +00:00
thorpej 57488ef1e4 Remove the register descriptions from this file, and split them into
<dev/isa/cs89x0reg.h>
1998-07-21 00:10:11 +00:00
thorpej c3e7a09c4e Use <dev/isa/cs89x0reg.h> 1998-07-21 00:08:57 +00:00
is 6054d626f9 Switching dev/ic/lpt.c to use spllpt() instead of spltty(). It doesn't use
tty structures, and on some machines (namely the DraCo internal lpt, and some
multi-i/o boards for Amigas and DraCos), tying spltty to the pretty high printer
interupt level would hurt serial performance.

On all affected ports but Amiga, spllpt() has been defined in machine/intr.h
to be spltty(), thus preserving old behaviour. Portmasters are encouraged to
change is, if they feel something else is better (e.g., one of its own were
possible).
1998-07-18 21:27:25 +00:00
thorpej 2fc1260cc0 Implement bus_dmamap_load_uio(). 1998-07-17 21:09:59 +00:00
mark f6e8a93bac Replace hardcoded constant with VM_MIN_KERNEL_ADDRESS. 1998-07-17 19:12:48 +00:00
thorpej 41986b6ad6 Print out the revision as a letter, i.e. 'A', ... 1998-07-15 03:29:47 +00:00
thorpej 25a86ef490 Be a little more thorough when printing the chip name, and also print
the chip revision.
1998-07-15 00:01:17 +00:00
thorpej 45c63f6b7b Massive cleanup of this driver (format police, autoconfig). More to come. 1998-07-14 23:38:49 +00:00
mark 57c3ea15d8 Guard opt_cputypes.h include with _KERNEL && !LKM 1998-07-13 06:12:08 +00:00
mark 7b6cd6a0a6 Guard opt_cputypes.h include with _KERNEL && !LKM. 1998-07-09 02:43:25 +00:00
thorpej e32f380030 Garbage-collect some of the old ISA DMA code. 1998-07-08 07:56:47 +00:00
thorpej 8bbd7378c5 RCS ID police. 1998-07-08 07:56:13 +00:00
thorpej 9bbe01f100 Note that UVM is mandatory on the Shark (otherwise ISA DMA won't work) 1998-07-08 05:27:17 +00:00
thorpej e332a993e2 Initialize the machdep ISA DMA structures once we've done OpenFirmware
ISA DMA initialization.
1998-07-08 05:01:56 +00:00
thorpej 8d10a53ddb Use MI ISA DMA code (XXX this needs some work). 1998-07-08 05:01:17 +00:00
thorpej fcd0183e81 Remove all of the home-grown ISA DMA code, and translate the OpenFirmware
"dma-ranges" property into the pmap's ISA DMA ranges.
1998-07-08 05:00:40 +00:00
thorpej 28cbb7c537 Provide the ISA chipset tag. XXX This should go away in favor of a real
ofisa attachment of the "cs" driver.
1998-07-08 04:59:46 +00:00
thorpej f5535d79ca Provide the ISA chipset tag. 1998-07-08 04:59:02 +00:00
thorpej 8eeb7eaad0 Implement an ISA bus_dma back-end for NetBSD/arm32. Tested only on the
Shark, but should work for other ISA-"enabled" arm32 systems, as well.
1998-07-08 04:58:03 +00:00
thorpej 696858d5f9 Nuke these; we use the MI ISA DMA code now. 1998-07-08 04:57:13 +00:00
thorpej 98b07e4b07 Provide an ISA chipset tag via isa_attach_hook(). G/c home-grown
ISA DMA code, in favor of the MI code.
1998-07-08 04:56:13 +00:00
thorpej b51b6b7c04 Lift-and-tweak from the i386 port (near-complete rewrite), providing
the ISA DMA stuff expected by machine-independent code.
1998-07-08 04:54:47 +00:00
thorpej eeb19dd33c Remember our ISA chipset tag. 1998-07-08 04:53:33 +00:00
thorpej f7e400a7ab Use the machine-independent ISA DMA code.
XXX We use COHERENT for now; need to deal with sync'ing DMA maps being
XXX used by the isadma driver.
1998-07-08 04:53:03 +00:00
thorpej a177e7aedc Rearrange this a little so we can use MI ISA DMA code. XXX Should just
pull in files.isa, but Not Right Now, apparently.

Add the sound blaster driver here (XXX see above), and build the
arm32 bus_dma back-end.
1998-07-08 04:51:12 +00:00
thorpej 8e03657b43 Define two free lists: default, and one to protect ISA DMA-safe memory. 1998-07-08 04:49:21 +00:00
thorpej d7d001fe70 Allow platform-specific code to define DMA-safe memory ranges for ISA.
If pages being loaded into the VM system intersect with any of these
ranges, the intersecting pages will be placed on a lower-priority
free list to protect them.
1998-07-08 04:48:20 +00:00
mark 93179db2b7 Remove several pointless cache/tlb cleans. (From Neil Carson). 1998-07-08 00:18:16 +00:00
mark e1fe0d71c0 Fix IOMD ID checks. 1998-07-08 00:15:59 +00:00
mark 9a4a105abb Remove un-necessary write buffer drains. (From Neil Carson). 1998-07-08 00:13:41 +00:00
mark f79b12670f Simplify cache cleaning in page_move(). (From Neil Carson). 1998-07-08 00:12:33 +00:00
mark 9dccefd1c9 Simplify the included files. 1998-07-08 00:10:44 +00:00
mark ddae1799a5 Make sure the write buffer is drained during syncing. 1998-07-08 00:08:39 +00:00
mark 61cdca4a6d Remove unused file. 1998-07-07 17:59:56 +00:00
mark d20b5cf136 Clean up included files. 1998-07-07 17:51:54 +00:00
thorpej 8f2575ec87 Use fixed-size types. 1998-07-07 04:29:42 +00:00
mark 4a463e49fe defopt CPU_* options in opt_cputypes.h 1998-07-07 03:05:15 +00:00
mark 3d4c1e7372 Cleanup ofw_boot().
Remove un-necessary includes.
1998-07-07 02:45:00 +00:00
mark 2abb91b62a Nuke a redundant cache clean in pmap_enter() (from Neil Carson). 1998-07-07 01:18:47 +00:00
mark 2194175b24 KNF. 1998-07-07 00:48:11 +00:00
mark 68dd742555 Include opt_armfpe.h 1998-07-06 18:13:26 +00:00
mark d41434d3ae Cleanup explict Makefile dependancies. 1998-07-06 02:43:38 +00:00
mark 9161d5ab60 Include opt_pmap_debug.h for PMAP_DEBUG defopt. 1998-07-06 02:40:42 +00:00
mark 3682a37511 Include opt_compat_old_ofw.h for COMPAT_OLD_OFW option. 1998-07-06 02:36:52 +00:00
mark 94df6c50f4 defopt COMPAT_OLD_OFW and PMAP_DEBUG. 1998-07-06 02:35:34 +00:00
mark 9ed6d03641 Always include arm32/disassem.h 1998-07-06 02:33:25 +00:00
mark 572dcd8575 Include opt_armfpe.h 1998-07-06 01:56:40 +00:00
mark f10dbf227d defopt ARMFPE. 1998-07-06 01:54:56 +00:00
mark 5df95c3336 Junk the DISASSEMBLE macro and just call disassemble() directly. 1998-07-06 01:54:36 +00:00
mark 70fba3ee34 postmortem() is no longer used in this file. 1998-07-06 01:52:26 +00:00
mark a96139b744 Include opt_uvm.h and define Lcnt appropriate for UVM or non-UVM configs. 1998-07-06 01:04:17 +00:00
mark 8b4b75b9ea The ARMFPE option is never enabled by default any more. 1998-07-06 00:59:21 +00:00
mark c73c7674d7 defopt IRQSTATS. 1998-07-06 00:53:07 +00:00
mark ac8d41742b Remove MOUSE_IOC_ACK option as this is now standard. 1998-07-06 00:49:20 +00:00
mark d016feb2d7 Define MOUSE_IOC_ACK as standard. 1998-07-06 00:43:28 +00:00
mark 9126d07941 defopt XSERVER. 1998-07-06 00:42:37 +00:00
mark e110bd8a6a defopt IRQSTATS and XSERVER 1998-07-06 00:41:17 +00:00
mark 36af051383 Update functions that missed the previous name space change. 1998-07-05 23:31:16 +00:00
jonathan b37021c1a1 defopt NATM. 1998-07-05 22:48:05 +00:00
jonathan d275e56dee * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 08:49:30 +00:00
jonathan 011f2bda08 defopt NS, NSIP. 1998-07-05 06:49:00 +00:00
jonathan 5c0c5dd0b4 defopt ISO TPIP. 1998-07-05 04:37:35 +00:00
jonathan 8db0fcdbf7 defopt CCITT. 1998-07-05 02:12:22 +00:00
jonathan 3751946b97 defopt INET, NETATALK. 1998-07-05 00:51:04 +00:00
jonathan 466e784ee1 defopt DDB. 1998-07-04 22:18:13 +00:00
hubertf a18ed5d074 add missing ";" for non-UVM systems 1998-07-03 21:32:43 +00:00
tv b457cc5098 For now, do not build just "netbsd" as the root device probe cannot
distinguish wd0, cs0, etc.  Build only netbsd_netboot and netbsd_wdboot.
1998-07-02 23:39:22 +00:00
augustss 5aa0920e7d Make it compile again. 1998-06-29 13:53:00 +00:00
thorpej 9609289966 When loading a DMA map, check that the pages in the transfer are within
the tag's DMA range(s), if ranges are specified.
1998-06-28 07:32:32 +00:00
thorpej 46320bb017 Clean up the bus space function namespace somewhat; make sure they don't
collide with function names used in other parts of the kernel.
1998-06-28 07:27:51 +00:00
thorpej 3497ab9a8c Add a pointer to an array of DMA ranges. DMA buffers must lie within
a range, or else an error is returned when loading a map.  If the ranges
pointer is NULL, no range checks are performed.
1998-06-28 03:22:10 +00:00
thorpej e3f4206162 Only use DMA_BOUNCE if it is defined. 1998-06-28 00:53:21 +00:00
thorpej ad9e227ed7 Fix a bunch of printf arguments. 1998-06-27 02:48:24 +00:00
thorpej a4e8fc45cd Nuke the _cookie member of the bus_dma_tag_t; it's not used by anything. 1998-06-27 02:16:23 +00:00
thorpej 06f1469055 Really namespace-protect the virtual address in the DMA segment structure. 1998-06-27 02:13:39 +00:00
thorpej 06c15a479d Remove some #if 0'd i386-specific code that was inherited when this
was copied from the i386 port.
1998-06-27 02:11:19 +00:00
thorpej 9da799cc58 Normalize the real/avail mem printfs, and make them consistent wrt.
UVM vs. Mach VM.
1998-06-26 22:42:37 +00:00
thorpej eb7e67ad13 If the IPL masks are debugging information, then only print them #ifdef DEBUG. 1998-06-26 22:40:59 +00:00
lukem bd8d501f7e remove options FIFO; it's now the default 1998-06-26 01:53:43 +00:00
mark abbf864c5c Provide a dummy definition of __warn_references macro when __GNUC__ is not
defined.
1998-06-25 21:54:35 +00:00
thorpej 971b8956ef defopt KTRACE 1998-06-25 21:18:11 +00:00
mark c69d26fdf6 Fix a sub instruction that should be subs. (Bug spotted by Richard Earnshaw) 1998-06-25 17:24:39 +00:00
mark 5c82c19d55 Define cfattach structure for ofbus_root_ca and prototypes for
ofbus_match() and ofbus_attach().
1998-06-24 19:44:33 +00:00
mark a2d7775fa1 Implement a delay() function for OFWGENCFG configurations. 1998-06-24 19:31:59 +00:00
mark 9dba4cd582 Fix bug in last commit regarding the positioning of the added #endif. 1998-06-24 19:31:16 +00:00
mark 3102dd4e2c Remove definition of cpu_reset_address as it is no longer needed. 1998-06-24 19:27:12 +00:00
mark adfa28edcf Disable cpu_reset() on OFW configurations as they will use OF_boot()
instead.
1998-06-24 19:22:48 +00:00
mark a34d0aae74 Cleanup time:
Fix code indenting.
  Removed a load of unnecessary includes.
  Removed unnecessary prototypes and variables.
  Removed dead variables debug_flags and cpu_cache.
  Removed some unnecessary cache syncs.
  Only sync the first 64 bytes after setting up the vectors.
  Removed all the boot argument checking code and instead call the
  generic ARM boot argument checking code parse_mi_bootargs() in machdep.c
  Fixed the ofrootfound() function so that it builds.
1998-06-24 18:50:56 +00:00
mark 7594278206 Cleanup time:
Fix code indenting.
  Removed a load of unnecessary includes.
  Removed unnecessary prototypes and variables.
  Removed dead variables debug_flags and cpu_cache.
  Removed some unnecessary cache syncs.
  Only sync the first 64 bytes after setting up the vectors.
  Removed all the boot argument checking code and instead call the
  generic ARM boot argument checking code parse_mi_bootargs() in machdep.c
  Use the get_bootconf_option() function to check for the shark specific
  quiet and noquiet options.
1998-06-24 18:49:12 +00:00
mark b3354a2d24 Removed unused variable from setstatclockrate().
Removed unused static variable statclockirq.
Removed the old commented out irq_claim() code (supplanted by intr_claim())
1998-06-24 18:43:44 +00:00
mark 720b93f1c9 Removed pagetables_start, debug_flags, cpu_cache and cpu_ctrl as these
are dead variables.
Removed initialisation of cpu_cache.
Declared process_kernel_args() as static.
1998-06-24 18:41:35 +00:00
mark 398bab14be Removed pagetables_start as this is a dead variable.
Declare process_kernel_args() as static.
1998-06-24 18:40:10 +00:00
mark 86e861d49f Rename the boot() prototype to cpu_reboot().
Remove consinit() and process_kernel_args() prototypes.
1998-06-24 18:37:49 +00:00
mark 9f161ebe94 Remove pagetables_start and the associated memory allocation. L1 page
tables are allocated by the pmap code so this allocation is just wasting
memory.
1998-06-24 17:18:09 +00:00
sommerfe 446beb9dc4 defopt COMPAT_386BSD_MBRPART into opt_mbr.h 1998-06-22 21:12:51 +00:00
tv f7eef89222 Kill no longer necessary CACHE_CLEAN_VM option. 1998-06-21 23:40:12 +00:00
tv 339cefc763 Integrate Mark's CACHE_CLEAN_VM C implementation, taken away from
cpufunc_asm.S.
1998-06-21 23:23:40 +00:00
mark 522eff7069 Fix unused variable warning in csCopyTxFrame() when DIAGNOSTIC is not
defined.
1998-06-20 20:38:33 +00:00
tv 9018330f63 Make pc0 and ofcons0 mutually exclusive, for now. 1998-06-19 18:29:31 +00:00
tv ba144108f6 Bring shark includes to mainline and nuke the branch. 1998-06-19 15:55:13 +00:00
mark 490b5a5419 Removed userret_count diagnostic bits as these are outdated. 1998-06-18 22:34:39 +00:00
mark 7d99120c16 Don't build in the ARMFPE by default.
Removed a load of irrelevant or redundant options.
Added a couple of extra filesystems (disabled).
1998-06-18 22:32:33 +00:00
tv ef5c9d214c Don't configure ofcons by default. 1998-06-18 17:39:17 +00:00
mark ed346cc16a Removed the kcopy() function as this is now implemented in bcopyinout.S. 1998-06-17 20:14:07 +00:00
mark 2aab040047 Major overhaul. Rewritten most of this file to optimise copyin() and
copyout() for 32 bit aligned addresses. Also copyin() and copyout() now
share the same actual copying code.
Use the same copying code to implement kcopy().
1998-06-17 20:13:38 +00:00
mark 138ccaa418 Rewritten and cleanup the file.
Share the string copying code between copyinstr() and copyoutstr().
1998-06-17 20:10:39 +00:00
mark de3485d454 Merge in SHARK specific bits to initialise the sequoia, rtc and
attach the OFW devices.
1998-06-17 19:40:50 +00:00
mark 841b858742 Define interrupt information for SHARK. 1998-06-17 19:36:33 +00:00
mark a27bae87fb Define _BootConfig structure for OFW based booting. 1998-06-17 19:35:24 +00:00
mark c5d3e05292 Implement debugger Openfirmware commands ofboot, ofenter and ofexit.
Calculate esym slightly differently on SHARK or OFWGENCFG based
configurations.
1998-06-17 19:33:37 +00:00
mark 27ed02bef1 Implement debugger OFW commands ofboot, ofenter and ofexit. 1998-06-17 19:31:44 +00:00
mark 3d9f37a664 Don't try and dump IRQ mode stack with Generic OFW config. 1998-06-17 19:29:28 +00:00
mark 2c44cea3ba Added console probe and init functions so serial consoles are supported
serial ports via the pioc.
Removed redundant header files.
1998-06-17 00:37:00 +00:00
kleink 1fbd0b3749 GC the unused `physadr' type, which was not able to hold a complete physical
address on 2 architectures anyhow.  Also, move the definition of the `label_t'
type inside _KERNEL protection, since it is specific to the in-kernel
setjmp()/longjmp() implementations.
1998-06-14 20:09:22 +00:00
tv 254edea7e0 Merge Shark/OFW changes for device configuration. 1998-06-12 23:59:22 +00:00
tv cb168e274b Add to mainline. 1998-06-12 23:29:27 +00:00
cgd 651b44e211 Rework the way kernel include files are installed. In the new method,
as with user-land programs, include files are installed by each directory
in the tree that has includes to install.  (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.)  The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change.  Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
1998-06-12 23:22:30 +00:00
tv 67856105fa Merge RiscPC and Shark files; now all machines will make the proper device
config files.
1998-06-12 23:21:53 +00:00
tv 49fd1860fe Add UVM support. 1998-06-12 23:08:52 +00:00
tv 11e9a04748 Add a hack to make the ofisa.o compile using the old MD isadma code, for
now.
1998-06-12 21:07:44 +00:00
tv 7ea013ce82 Include "pc.h" and check NPC - allows ofcons to be the system console. 1998-06-10 21:55:30 +00:00
tv 00ede2160e Change ddb_init() for a.out to provision for kernels which are not booted by
the current 'bootblock' method, like the Shark, which preloads and preformats
the symbol table right in the boot code.
1998-06-09 01:57:41 +00:00
tv 5ba723ecf2 Cleanup: move {SWAP,DEV,VNODE}PAGER to std.arm32; required for Mach VM, and
happily ignored by UVM.
1998-06-09 01:15:48 +00:00
mark 4c80d03830 Remove several cache invalidation instrcutions from routines like
sa110_context_switch() as they are not needed.
1998-06-09 01:02:14 +00:00
tv 46565ac270 Add disksubr_acorn.c as well. These could likely be changed to use kernel
options, but this gets the kernel at least to compile, link, and work.
1998-06-09 00:39:47 +00:00
tv b4511c9330 Add disksubr_mbr.c dependent on `disk'. 1998-06-09 00:31:23 +00:00
tv 8f428e3872 Kill non-NetBSD RCS tags. 1998-06-08 20:23:07 +00:00
mark 0f5f9c0221 Added support for DOS MBRs in addition to filecore boot blocks from
Chris Demetriou. Filecore and MBR handling has been split out into
separate files. Still needs some work before this could become MI.
Also fix the way in which arm32 filecore checksums are calculated so
that sectors filled with the same byte will not pass the checksum.
1998-06-08 20:21:17 +00:00
tv f19cf41458 Add rcsID. 1998-06-08 18:18:58 +00:00
tv ae1b70e048 ISA shark-dependent code. Missed this file on last commit. 1998-06-08 18:18:11 +00:00
tv ee69a0b0a0 Add ISA support needed for Shark and the CATS board (CATS isa_machdep not
here yet).
1998-06-08 17:49:42 +00:00
mark c6d1832868 Include all the correct header files to get the prototypes of all the
soft net interrupt functions.
Handle NETISR_NATM soft interrupts.
1998-06-04 17:45:50 +00:00
mark 61298c0cbf Type postmortem_active as an int. (Pointed out by Patrick Welche). 1998-06-04 17:44:18 +00:00
thorpej 2e846b8c1e Sync w/ i386 port. 1998-06-03 04:20:22 +00:00
mark 2c1cbdae75 Moved delay() from machdep.c to iomd_clock.c as delay will be dependant
on the system timers being used.
1998-06-02 21:57:58 +00:00
mark bdfeab3714 Merge in UVM support from Neil Carson <neil@causality.com>. 1998-06-02 20:41:46 +00:00
mark 0618ed7122 Define the maximum size of the kernel VM data area. 1998-06-02 20:33:01 +00:00
mark ea702a5130 Switch to MACHINE_NEW_NONCONTIG as the default. 1998-06-02 20:32:18 +00:00
mark 4ee7a131ad Don't allow the copyin and copyout routines to use bcopy() as this will
not work as the stack cannot be unwound if the copy aborts due to a fault.
1998-06-02 19:14:44 +00:00
mark 9a4b24a02a Simplify the stack filling code when using the STACKCHECKS option. 1998-06-02 14:34:55 +00:00
mark 09a9c016e3 Added Manuel Bouyer's recent i386 _bus_dmamap_load_buffer() patch :-
Add handling of DMA boundary barrier in _bus_dmamap_load_buffer(). This
affects all bus_dmamap_load* functions of bus_dma(9).
While I'm there fix a bug where the dm_segs array could be overflowded by one.
1998-06-01 22:47:27 +00:00
thorpej a7f360c6c9 Specify a non-profiling C rule. 1998-05-31 23:25:41 +00:00
tv ed42c358fd Revert. (wdc driver is still MD.) 1998-05-26 01:42:53 +00:00
mark 3a61502673 Initial commit of arm32 dependant PCI structures and type definitions. 1998-05-25 22:09:25 +00:00
mark 0b9fa28940 Initial commit of generic arm32 bus dma support. 1998-05-25 22:01:49 +00:00
kleink a97fc2f180 If any of _ANSI_SOURCE, _POSIX_C_SOURCE or _XOPEN_SOURCE are defined, don't
provide any identifiers other than sig_atomic_t.
1998-05-25 20:59:01 +00:00
tv 6cdddb35ee Don't duplicate device information: get ISA and ATAPI info (which is the
same) from dev/isa/files.isa and dev/ata/files.ata.
1998-05-25 04:32:12 +00:00
mark 073de471d7 Remove M68040 ifdefs from the driver inherited from the initial import
of the file from the arch/amiga/dev directory.
Leave reminders though that attention needs to be paid at these points
for when DMA is implemented.
1998-05-24 18:19:29 +00:00
mark 8ef62973c1 Comment out the rp variables as they are not currently used.
Removed the register keywords.
In setdisklabel() declare 'i' as an int.
1998-05-24 17:13:30 +00:00
cgd a2c213c028 fix code so that a 'generic' OFW kernel (which only uses OFW drivers)
will again compile.  This code needs a bunch of cleanup, and the
"generic OFW kernel" code should probably be split into a different
directory than the code which implements the interface to OFW.
1998-05-22 17:43:10 +00:00
thorpej 6626878e7b It is no longer necessary for pmap_pinit() and pmap_release() to be
pmap interface functions, as NetBSD no longer uses statically allocated
pmaps (except for the kernel pmap, which is special-cased anyhow).
1998-05-19 19:00:11 +00:00
mark 82d14dbeb2 Add MACHINE_NEW_NONCONTIG option. 1998-05-08 23:40:20 +00:00
mark f7eafd6679 Remove the standard option MACHINE_NONCONTIG. 1998-05-08 23:36:47 +00:00
mark a76affde1d Add MACHINE_NEW_NONCONTIG support. 1998-05-08 23:36:08 +00:00
mark d4a8f4cf29 Commit MACHINE_NEW_NONCONTIG support based on Chuck's conversion notes. 1998-05-08 23:34:00 +00:00
mark 7de24625c1 The reset address is no longer fixed so don't refer to it as 0x00000000. 1998-05-08 23:25:31 +00:00
mark a13ca3b4d2 Don't declare variables as register ...
Don't cast pointers to u_int for printing, use %p instead.
Minor restructure of curproc == NULL test in ast().
1998-05-08 23:24:08 +00:00
mark 51ce82ec50 Don't include machine/vmparam.h. 1998-05-08 23:21:31 +00:00
kleink 687ea7404c Fix some arithmetics lossage on typeless pointers. 1998-05-08 16:55:15 +00:00
kleink aa36ad1f55 Fix some arithmetics lossage on typeless pointers. 1998-05-07 21:01:41 +00:00
cgd dd0142f10f add NetBSD RCS IDs and delete other RCS keywords, per the standard style. 1998-05-01 21:18:39 +00:00
cgd c0c21ff62f clean up some warnings, adapt to the changed state of the world. 1998-05-01 21:14:46 +00:00
cgd 5317573641 adapt to OFW code changes 1998-05-01 21:13:53 +00:00
cgd 2fb206b0cf clean up, get it closer to compiling. (Note that this change includes
a change marked XXX, where gcc -Wall pointed out a bit of the original
code that looked wrong.  The jury's still out on whether or not it was
really wrong, but it looked _very_ suspicious.)
1998-05-01 21:13:02 +00:00
cgd 77e035bc38 kill bogus file 1998-05-01 21:11:34 +00:00
cgd 72797e4632 Import sys/arch/arm32/{shark,ofw} bits of the Digital Network Appliance
Reference Design NetBSD source code, obtained from the pages under
http://www.research.digital.com/SRC/iag .  Some of this code (badly)
needs to be cleaned up, and as-is it doesn't compile.  However, getting
it in the tree is a start.
1998-05-01 21:08:55 +00:00
mark c1a332e5f7 Use a separate variable to indicate whether the fault is from USR mode
or not rather than orring in a USER bit into the fault code variable.
This simplifies the fault switch statement and some of the addition
checks that are made of the fault code.
Move the printing of data abort information out into a separate function
rather then duplicating a lot of similar printf() statements.
Removed the fault_code variables from the prefetch abort handler as it
is not actually used for anything.
1998-05-01 15:44:51 +00:00
mark 782906b214 Remove inclusion of sys/device.h 1998-05-01 15:36:30 +00:00
mark 865f2563e1 Remove inclusion of sys/device.h
Declare exception_errors as const.
1998-05-01 15:35:43 +00:00
mark 07a0c680a7 Define the cpu_softc structure here.
Include armfpe.h to get the prototype for initialise_arm_fpe().
1998-05-01 15:33:42 +00:00
mark cce74dbcca Remove the definition of the cpu_softc structure from here. 1998-05-01 15:32:55 +00:00
mark 94a7e32beb Edited and added various comments. 1998-05-01 15:30:54 +00:00
mark 7c867905c5 Major overhaul of pagetable handing.
Page tables no longer occupy space in the processes vm_map. This
  means that page tables can now be allocated from pmap_enter() when the
  first entry is made in the page table rather than relying on taking
  a section fault and faulting in a page table. This also lowers
  the overheads in creating and deleting page tables and simplfies
  cpu_fork().
  A result of this change is that problems with mapping zero page and
  an associated pagetable when execing from a shared vm_map disappear
  fixing PR5178.
1998-04-30 21:22:00 +00:00
mark 773c8defa1 Removed several un-necessary includes. 1998-04-30 21:01:30 +00:00
thorpej 1686aca01d Pull in opt_gateway.h as appropriate. 1998-04-29 23:11:00 +00:00
kleink a53c1863fe Provide definitions for intptr_t and uintptr_t, signed resp. unsigned integral
types large enough to hold any pointer.
1998-04-27 17:39:10 +00:00
mark 7782adb98e Use r12 as a temporary register in setrunqueue() and remrunqueue() as it
does not need to be preserved across function calls. This means the use
of r4 can be eliminated thus saving a stack push and pop for r4.
1998-04-20 17:27:30 +00:00
mark ad8c2a5654 Fix the indenting of the comments in this file. 1998-04-19 23:37:22 +00:00
mark 7c57681a0b Guard several more abort information printf() calls with the
verbose_faults variable in the prefetch abort handler.
Remove a lurking spltty() just before a panic in the prefetch abort
handler.
1998-04-19 23:25:49 +00:00
mark 05a669badb General file cleanup. Grouped all the un-handled fault cases together
to share one panic string. Removed a number of postmortem() calls.
Use verbose_faults variable to dictate the printing of fault information.
In several address validation checks, reorder the conditions for more
optimial checking.
1998-04-19 23:18:45 +00:00
mark 98576781d3 Remove conditional compilation from around the exception handler
interrupt enables.
Remove the counting of the use of pcb_onfault.
Removed CONTINUE_AFTER_SVC_PREFETCH and associated code.
1998-04-19 22:45:39 +00:00
mark 66d1783927 Remove conditional compilation from around the exception handler
interrupt enables.
1998-04-19 22:43:27 +00:00
mark 464caff246 Since the kshell stuff is no longer ever built into the kernel,
the last possible hooks having been removed from rpc_machdep.c
and its use has been deprecated for a long long time lets finally
axe it.
1998-04-19 04:48:31 +00:00
mark 569be6d488 Change definitions of MCOUNT_ENTER and MCOUNT_EXIT to block interrupts
via the CPSR rather than via splhigh() due to the overheads involved
in using splhigh()/splx(). (From Chris Demetriou).
1998-04-19 04:16:25 +00:00
mark fcc1093bee Define bus_space_map flags BUS_SPACE_MAP_CACHEABLE and BUS_SPACE_MAP_LINEAR.
Comment arm32_bus_dma_segment structure members.
Remove the _dm_loadlen field from the arm32_bus_dmamap structure.
1998-04-19 04:13:24 +00:00
mark 47ec8f3afc Validate the source address in db_read_bytes() to avoid faulting when
reading invalid addresses.
1998-04-19 04:05:24 +00:00
mark 9bbde6c952 Overhaulled cpu_reboot(). Junked all the boot action garbage and just use
howto to dictate what operations to perform.
Removed support for calling the deprecated kshell stuff.
Cleaned up a few bits of dead code and renamed rpc_sa110_kickstart() to
rpc_sa110_cc_setup().
1998-04-19 03:59:19 +00:00
mark 33b4b52949 Define the prototypes for rtc_read() and rtc_write() here rather than
in machine/rtc.h
Update the rtc_read() and rtc_write() functions to take a private pointer
as the first argument (currently unused).
1998-04-19 03:55:44 +00:00
mark 1f5455aaaf Update the softc to hold the rtc_{write,write}() argument and update
the function pointer prototypes.
Pass the rtc_arg field as the first parameter when calling the todclock
rtc_{read,write} function pointers.
1998-04-19 03:54:24 +00:00
mark c4f9d5c4b0 Add a rtc argument field to the todclock_attach_args structure.
Update the ta_rtc_{read,write}() functions in the todclock_attach_args
structure to take an argument attach time defined argument field as the
first argument.
1998-04-19 03:51:44 +00:00
mark 15901d1be3 Remove rtc_read() and rtc_write prototypes. 1998-04-19 03:49:17 +00:00
mark effb702da4 Don't explicitly call the debugger on a reset exception. Just print
trap frame address and panic.
1998-04-19 03:41:14 +00:00
mark f9042ff05b Guard the PS/2 mouse attachment and ARM7500 IOC check with the
CPU_ARM7500 macro.
1998-04-17 18:44:09 +00:00
tv b21bfbde11 Add -Wno-main conditional on compiler being gcc 2.8 or egcs. (This adds
a HAVE_GCC28 check-variable that can now be used to add other gcc-2.8
flags in cases where they may be useful, or to remove gcc 2.7.2 "bug
workaround" flags.)
1998-04-12 23:47:41 +00:00
cgd edcb9b60e1 current_spl_level should be initialized to _SPL_HIGH. 1998-04-10 20:29:02 +00:00
mark af29a19dd0 Fix the interrupt number for the PS/2 mouse port on the ARM7500
(from David Forbes).
1998-04-10 06:54:30 +00:00
mark 447623df53 Correct the values of IOMD_MSDATA and IOMD_MSCR as they are 4 times too
big. Spotted by David Forbes.
1998-04-10 06:53:08 +00:00
mark 3d26c2dbf1 In cpu_fork() if the vmspace is shared don't fiddle with it. e.g. don't
try and replace the zero page pagetable and mapping.
1998-04-03 01:58:40 +00:00
mark d6fb052cdd Setup proc0.p_addr much earlier on in the startup. 1998-04-03 01:56:34 +00:00
mark 27af7137f4 Overhaulled cpu_reboot(). Junked all the boot action garbage and just use
howto to dictate what operations to perform.
Removed support for calling the deprecated kshell stuff.
1998-04-02 02:01:13 +00:00
mark ac4c80ec10 Include machine/asm.h and use the ENTRY() macro for all function entry
points.
1998-04-01 23:14:21 +00:00
mark 90a05fec98 Tidied up various comments. Use the function entry macros from asm.h for
all entry points and don't bother profiling cpu_reset().
Flush the I and D TLB's after turning the MMU and cache off in cpu_reset().
1998-04-01 23:12:32 +00:00
mark b2286e384a Include machine/asm.h and use the macros from there for declaring
the function entry points.
Removed some redundant .req statements.
1998-04-01 23:09:06 +00:00
mark a877b68db5 Don't include sys/device.h here. 1998-04-01 23:05:28 +00:00
mark f0393b3819 Remove a chunk of dead comments as they appears in disassem.c where
they make a lot more sense.
1998-04-01 23:04:16 +00:00
mark 4a96466f61 Remove redundant .req assembler statements. 1998-04-01 23:02:32 +00:00
mark eb81ac0bbc Remove a load of redundant .req statements. 1998-04-01 23:00:13 +00:00
mark ae5c857ba4 Remove redundant .req statements.
Make various entry points non-profiling.
1998-04-01 22:59:25 +00:00
mark fd18f1a45b Remove some redundant .req statements. 1998-04-01 22:55:45 +00:00
mark 077c15ab4d Remove some redundant .req statements.
Make various entry points non-profiling.
1998-04-01 22:55:05 +00:00
mark 268d889d0d Make the floppy_read_fiq and floppy_write_fiq entry points non-profiling. 1998-04-01 22:53:32 +00:00
mark 7f98e08105 Remove some redundant .req statements. 1998-04-01 22:52:24 +00:00
mark f4c5b8f91a Define profiling and non-profiling versions of the ENTRY and ASENTRY
macros. No extra profiling code is generated if profiling is turned
on yet, but get the structure ready. (from cgd).
1998-04-01 22:50:22 +00:00
mark 66477b8680 Only call dosoftints() from splx if there is a soft interrupt actually
pending. This save us doing a function call and a bunch of instructions
for every splx() call. (Patch from cgd).
1998-03-28 00:14:51 +00:00
mark b6fa862ee6 Remove un-necessary prototype of set_boot_devs() (from cgd). 1998-03-28 00:06:03 +00:00
mark fcade25040 Make physlock global rather than a static local to mmrw() (from cgd). 1998-03-28 00:04:46 +00:00
cgd 56eaa22285 kill some unused variables that i missed in my last checkin 1998-03-27 23:39:57 +00:00
cgd db74b327b9 fix a few bogus pointer checks (was checking pointers which would
never be against NULL, instead of checking the correct pointer against
NULL).  Pointed out (with diff) to Mark Brinicombe on March 17, no reply.
1998-03-27 19:28:52 +00:00
mark 653457f11b Remove the variable oldtm from diagnostic printf() statement as this
variable no longer exists.
1998-03-26 21:27:12 +00:00
mark 35dc347724 Bring this more up to date. 1998-03-26 20:43:02 +00:00
mark 8003976152 The ehbug option is dead now the etherH driver has been replaced with
an NE2000 attachment.
1998-03-26 20:42:34 +00:00
mark cd0f9898b5 Fix problems with microsecond timestamping in microtime().
Remove some old dead code.
1998-03-26 20:07:18 +00:00
mark 26634e5f83 Cleaned up the IOMD access macros. 1998-03-26 20:05:49 +00:00
mark 6fa49296d7 Include machine/asm.h. Removed un-necessary .req directives. Use the
ENTRY() macro for declaring function entry points.
1998-03-26 20:05:13 +00:00
mark c6b5400405 Add a couple of missing brackets in the arm_byte_to_page and
arm_page_to_byte macros.
1998-03-26 19:57:13 +00:00
mark 47ec7dab23 This file is no longer included by anything and is out of date. All
podule definitions can be found in the podulebus subdirectory.
1998-03-26 19:55:53 +00:00
cgd 4bbda026af The arm32 'char' is unsigned. Fix CHAR_MIN and CHAR_MAX to reflect that.
(they were incorrect, defined to be the values that they should have were
'char' signed.)
1998-03-24 23:13:28 +00:00
mark d968d727db Implement bus_space_read_multi_1() fucntion for podulebus. 1998-03-23 17:07:38 +00:00
mark 0c7f9767f4 Replace eh0 and em0 devices with ne* device. 1998-03-22 18:33:28 +00:00
mark f8fabd927a Use netslot_ea() function to obtain the machine ethernet address of the
netslot interface.
1998-03-22 18:30:04 +00:00
mycroft 0dae91d9af Eliminate uses of TS_WOPEN in hard-wired devices. 1998-03-21 22:52:59 +00:00
mark 46f5fd743a Add a call to vm_set_page_size() in pmap_bootstrap(). 1998-03-21 21:42:02 +00:00
mark 5fb8156c1c Replace the em and eh drivers with an attachment to the ne driver. 1998-03-21 21:39:16 +00:00
mark b8bbd98f2a This file is no longer needed now etherM driver is just an attachment
to the MI NE2000 driver.
1998-03-21 21:38:01 +00:00
mark 6aad6c26fd This driver has been replaced with a podulebus attachment to the MI
NE2000 driver.
1998-03-21 21:36:37 +00:00
mark 5241ea94ce Initial commit of podulebus attachments to the MI NE2000 driver for
etherH and etherM netslot interfaces.
1998-03-21 21:35:20 +00:00
mark a9dd30a5e0 Prototype netslot_ea() and podule_read(). 1998-03-21 21:30:29 +00:00
mark 3fbeab8ca4 Report podules that have been disabled by boottime options.
Provide a function netslot_ea() to return the ethernet address of the
RiscPC network slot.
1998-03-21 21:30:07 +00:00
bouyer 9f50fca1fd Add commented out "options FFS_EI" 1998-03-18 16:34:41 +00:00
mark 27ef26a468 Added csa device and scsibus attachments. 1998-03-14 17:15:52 +00:00
mark 29075565c0 Updated for new csa driver, the change to the oak driver and
the removal of the local ncr5380 driver.
1998-03-14 17:10:13 +00:00
mark d15ce201d7 This local version of the ncr5380 driver is not longer needed now the
oak driver has been rewritten to use the MI one is /dev/ic/
1998-03-14 17:08:19 +00:00
mark d6f6e4ee8e Complete re-write of the Oak SCSI 1 driver to use the generic ncr5380
driver. Currently only supports 8 bit PIO.
1998-03-14 17:06:17 +00:00
mark a1dd6a915a Initial commmit of csa driver for the Cumana SCSI 1 adapter.
This driver uses the generic ncr5380 driver and currently only supports
8 bit PIO data transfers.
1998-03-14 17:04:30 +00:00
mark fd250aecdd Remove the width specifier in the podule manufacturer printf(). 1998-03-09 19:14:44 +00:00
mark eff3470d02 Make this driver build again. Needs overhaulling. 1998-03-09 19:12:59 +00:00
mark c2efbb1d9a Implement the bus_space_write_multi_1() function for the podulebus
(podulebus_wm_1()).
1998-03-09 19:11:30 +00:00
perry 1ed8ea9966 note second parm of sysarch() is now void *, + trivial KNF, etc. 1998-02-25 21:41:55 +00:00
mark 1876c03a83 Only include armfpe.h if we are building FPE support into the kernel.
Missed from the last commit.
1998-02-22 23:45:13 +00:00
mark c67078a448 Update arm_fpe_[gs]etcontext() functions to take a struct fpreg pointer
as the second argument.
1998-02-22 23:39:53 +00:00
mark 5a2727a17e Fix arm_fpe_[gs]etcontext() prototype declarations to take a
struct fpreg pointer as the second argument.
1998-02-22 23:38:18 +00:00
mark b9ce4e7ddb Include arm32/fpe-arm/armfpe.h for arm_fpe_[gs]etcontext() prototypes.
Remove unnecessary include files and cleanup some dead code.
1998-02-22 23:35:45 +00:00
mark 39ce947f1a Add missing interrupt enable callbacks lost during the adding of ATAPI
support. Spotted while working on MI wdc support for the ICS interface.
1998-02-22 02:36:22 +00:00
mark 05fa7c54a5 Clean up the comments and correctly indent them. Change various RiscBSD
references to NetBSD ones.
1998-02-22 00:31:00 +00:00
mark 550b5bff23 Guard spl related variables and pmsputbuffer() with #ifdef MOUSE_IOC_ACK.
Declare pmsputbuffer() as static.
1998-02-22 00:25:03 +00:00
mark a0ce540d73 Guard spl related variables and qmsputbuffer() with #ifdef MOUSE_IOC_ACK 1998-02-22 00:24:12 +00:00
mark a55279da6a Updated to use cpu_reset() rather than boot0().
Set cpu_reset_address to 0x00000000 for currently supported systems.
Update associated comments.
1998-02-22 00:08:16 +00:00
mark d011ec2573 Provide a prototype for cpu_reset(). 1998-02-22 00:05:56 +00:00
mark dc37a51773 In the future we may want to branch somewhere other than zero when
reseting the CPU. Rename the boot0() function to cpu_reset() and
provide a variable to hold the cpu reset address.
1998-02-22 00:05:00 +00:00
mark 44e22f7606 Fix a couple of unused variable warnings for RC7500 builds. 1998-02-21 23:40:03 +00:00
mark 35c234d2a6 Replace -Wreturn-type with -Wall for CWARNFLAGS. 1998-02-21 23:30:56 +00:00
mark 88aa559e5e Remove inclusion of machine/katelib.h
Remove local prototype of savectx().
Comment all the #endif lines for PMAP_DEBUG
Remove un-necessary variable 'up' from cpu_fork().
Use %p rather than %x for several debug print messages.
1998-02-21 23:27:10 +00:00
mark 018ce60490 Remove functions for disable_interrupts(), enable_interrupts() and
restore_interrupts() as these have been replaced by macros in
machine/cpufunc.h.
1998-02-21 23:21:28 +00:00
mark 2553c95bde Include machine/cpufunc.h for interrupt disable/restore routines. 1998-02-21 23:19:36 +00:00
mark 24aaa5f9dd Add macros for the CPU functions disable_interrupts(), enable_interrupts()
and restore_interrupts().
1998-02-21 23:17:05 +00:00
mark ccb81fe3d3 Remove prototype declarations of disable_interrupts(), enable_interrupts()
and restore_interrupts() as these are CPU related functions.
1998-02-21 23:16:28 +00:00
mark 706589adb9 Update the L1_SEC() macro to take a cache enable mask.
Add a macro L1_SEC_SIZE to define the size of a L1 section.
1998-02-21 23:11:28 +00:00
mark 854d928a14 Fix typo in a DMA dummy stub function. 1998-02-21 23:09:37 +00:00
mark 6eccd50f49 Remove local prototype for savectx().
Update all map_section() function calls to map I/O sections as
non-cacheable.
1998-02-21 23:08:17 +00:00
mark c273b285d8 Remove local prototype of savectx().
Updated all map_section() function calls to map sections as non-cacheable.
1998-02-21 23:04:54 +00:00
mark 99ae0b08fe Updated all map_section() function calls to map I/O sections as
non-cacheable.
1998-02-21 23:02:34 +00:00
mark 1c782f5da1 Add a cacheable flag field to the map_section() function so that L1 page
table section mappings may be made cacheable.
Remove a few nasty hardcoded shifts and use macros from machine/pte.h
instead.
Cleaned up a few comments.
1998-02-21 23:00:57 +00:00
mark 745e11a2b1 Remove local prototype of savectx(). 1998-02-21 22:57:44 +00:00
mark 628ae33403 Remove register declarations. 1998-02-21 22:56:58 +00:00
mark 1bd5283fb7 Remove inclusion of katelib.h and include cpu.h and cpufunc.h. 1998-02-21 22:52:50 +00:00
mark ba8b28d360 Remove local prototypes of strstr(). 1998-02-21 22:51:43 +00:00
mark c81dae4473 Move some prototypes form katelib.h to a more suitable home in cpu.h 1998-02-21 22:49:18 +00:00
mark ea04275578 Remove local prototype of disassemble() and include disassm.h instead
for prototype.
Fix compiler warnings about unused variables with certain config options.
1998-02-21 22:43:29 +00:00
mark d13b903579 Remove local prototypes for disassemble() and include disassem.h instead
for the prototype.
1998-02-21 22:41:34 +00:00
mark 83fcf2d5c8 Define prototypes for disasm() and disassemble(). 1998-02-21 22:38:40 +00:00
mark 3fa53fb439 Check the for the TODCLOCK_FLAG_FAKE flag in the attach args to allow
a "real" driver to have priority.
Make sure that a todclock service does exist before trying to read and
write the time.
If no RTC read routine exists, just use the suggested time in inittodr().
1998-02-21 03:19:02 +00:00
mark fb161c5c9c Set the flags field in the todclock_attach_args to 0.
Fix typo in currently commented code.
1998-02-21 03:13:46 +00:00
mark 50f9bf3cb5 Add a flags field to the todclock_attach_args structure.
Define a flag bit to indicate that the todclock is faking the RTC
read and write routines.
1998-02-21 03:12:32 +00:00
mark 59be9f9e0e Don't configure the qms mouse device into A7000 kernels as the A7000
only supports a PS2 mouse and not a quad mouse.
1998-02-21 02:46:11 +00:00
mark 5b4cb30e30 Recognise the ARM7500FE IOMD id as supporting a podulebus. 1998-02-21 02:44:42 +00:00
mark b302819fbe Nuke db_show_fs_cmd() and the "machine fs" command in the debugger. The
command has not been used for years and is really broken now vfs_conf.c
is no more.
1998-02-21 02:42:42 +00:00
thorpej 772da350d4 Disable the message buffer during crash dumps by clearing msgbufenabled,
not msgbufmapped.
1998-02-19 04:18:30 +00:00
mycroft 3b9429b248 Minor changes to make all the float.h files match. 1998-02-18 11:01:27 +00:00
cgd 3bbb7f7d45 Move pmap_map() function definition to MD headers, as appropriate. It's
an internal function, and the VM system shouldn't try to prototype it.
(Note that some ports _don't_ prototype it.)
1998-02-18 02:05:32 +00:00
thorpej 8354e68508 Remove "class" declarations, and add "devclass" declarations where
appropriate.  Fix several inconsistencies between device class and
attributes.  Mostly from Chris Demetriou.
1998-02-16 22:12:45 +00:00
thorpej 8abe76d2f0 Add offset and length parameters to bus_dmamap_sync(), used for specifiying
partial syncs of a DMA mapping.
1998-02-04 05:12:46 +00:00
thorpej 99cc8482d1 Change the last argument of bus_dmamap_sync() from bus_dmasync_op_t to int,
and allow more than one synchronization operation to be specified in
a single call.  Dissallow mixing of PRE and POST operations.
1998-02-04 01:57:27 +00:00
thorpej 4e7c05e588 Add dm_mapsize to bus_dmamap_t and rename BUS_DMAMEM_NOSYNC to
BUS_DMA_COHERENT.
1998-02-04 00:31:33 +00:00
mark b280ec0268 Update copyright. 1998-02-03 19:08:27 +00:00
mycroft b5c132e4d2 Prototype __flt_rounds() consistently. 1998-02-03 01:26:20 +00:00
cgd f98d915597 remove gross temporary hacks implemented to pacify com.c. That's
been done in a cleaner way by cleaning up the com.c #ifdefs some.
Software tty interrupts should be implemented on NetBSD/arm32,
but these hacks are no longer necessary to work around the lack.
1998-02-02 23:05:50 +00:00
thorpej 2538ed1062 Use offsetof() from libkern.h 1998-01-28 02:23:04 +00:00
mycroft 15ae963bea When dumping, print out the device number as major,minor. 1998-01-24 16:46:23 +00:00
mark 09be9c026e Only update the intrcnt array if IRQSTATS is defined. 1998-01-22 00:04:10 +00:00
mark 2b66ad2b89 Implement severl missing prototypes. 1998-01-21 22:55:19 +00:00
mark 330df4c754 Added missing prototypes. 1998-01-21 22:51:38 +00:00
mark b0e99b3251 Cleanup various debugging printf format strings. 1998-01-21 22:34:39 +00:00
mark dfbf823cea Cleanup various debugging printf format strings. 1998-01-21 22:34:38 +00:00
mark a108da3f00 Cleanup function prototyping in disasm_interface structure. 1998-01-21 22:33:10 +00:00
mark ce1e283415 Axe some unused variables. 1998-01-21 22:28:12 +00:00
mark 74ff2dac9d Cleaned up various debugging printf format strings. 1998-01-21 22:25:37 +00:00
mark 52adaefc18 Include sys/systm.h for various prototypes. 1998-01-21 22:20:02 +00:00
mark 0c0da40168 Removed a load of unused variables. 1998-01-20 05:01:14 +00:00
mark 75b044ab61 Prefix the SPL macros to avoid clashes with userland macros (e.g. ipf). 1998-01-20 01:18:18 +00:00
mark 20323bb58c Enable disassembly of ldc and stc instructions.
Fix a couple of prototypes.
1998-01-20 00:51:24 +00:00
mark 6924ceb598 Declare arm8_clock_config() to return an int rather than void. 1998-01-19 23:51:01 +00:00
mark 3f9be879af Removed unused variables and prototypes.
Added missing prototypes.
1998-01-18 04:55:20 +00:00
mark ce9284e134 Make sure halt() is prototyped. 1998-01-18 04:16:06 +00:00
mark 057522ef3f Remove unused variables for the benefit of gcc -Wall -Werror. 1998-01-18 04:13:53 +00:00
mark 3a8b7284b0 Include sys/buf.h for the minphys() prototype.
Fix several printf() format strings.
1998-01-18 04:11:41 +00:00
mark 3224f7c301 Removed unused variables for the benefit of gcc -Wall -Werror. 1998-01-18 04:09:46 +00:00
mark bb12eeb85a Resync with podules file. 1998-01-18 04:02:53 +00:00
mark 0970bb601c Add IDs for Lingenuity and Castle SCSI cards. 1998-01-18 04:01:42 +00:00
mark 921d5339df Prototype kbdreset(). 1998-01-18 03:51:13 +00:00
mark 773c2f9abb Removed unused variables for the benefit of -Wall -Werror. 1998-01-18 03:48:37 +00:00
mark 56bac34cae Declare a prototype for arm8_clock_config(). 1998-01-18 03:43:46 +00:00
mark a89dd06bf2 Removed unused variables and prototypes for the benefit of -Wall -Werror. 1998-01-18 03:42:58 +00:00
mark 56fc27b288 Removed unused variables for the benefit of -Wall -Werror. 1998-01-18 03:39:23 +00:00
mark 405e360fa4 Include dev/scsipi/atapi_all.h 1998-01-17 20:00:59 +00:00
mark f62b027476 Include sys/user.h for the benefit of pmap_activate(). 1998-01-17 07:14:11 +00:00
mark 1c08f38f54 Fix cfdriver declaration broken in recent config change. 1998-01-17 07:06:45 +00:00
cgd d6e5187749 add 'sd* at atapibus? drive ?' to all kernel configs already containing
an analogous line for 'cd'.
1998-01-15 02:26:26 +00:00
cgd 4fdd07b4c5 remove 'ata' interface attribute. it now is define in the MI conf/files. 1998-01-14 23:56:23 +00:00
thorpej 687449a900 Update for changes to config. 1998-01-13 02:09:58 +00:00
thorpej e41a79ff38 Regen. 1998-01-09 06:58:04 +00:00
thorpej bd5df8e610 Put RCS IDs into generated files, in the correct place. 1998-01-09 06:57:44 +00:00
thorpej db8d7d755a Regen: Back out RCS ID related changes. 1998-01-08 01:05:10 +00:00
thorpej af0fb8a65a Back out RCS ID related changes. 1998-01-08 01:04:44 +00:00
perry 49ad493e50 RCSID Police. 1998-01-05 21:11:15 +00:00
perry 489c2f7e06 make script insert RCS ids into generated files 1998-01-05 21:10:18 +00:00
perry b46484bb8a RCSID Police. 1998-01-05 20:51:25 +00:00
perry 015e898c02 RCSID Police. 1998-01-05 07:02:46 +00:00
perry 3e0fad1868 RCSID Police. 1998-01-05 06:28:44 +00:00
thorpej b9f1b716f3 Now that all ports have pmap_activate(), and it has an identical interface,
prototype it in <vm/pmap.h>
1998-01-03 01:12:59 +00:00
thorpej a6f228e498 Make pmap_activate() take a struct proc *. 1998-01-02 22:36:33 +00:00
kleink c87631771e Add COMPAT_13. 1997-12-01 14:52:51 +00:00
kleink 66c2794142 Add _BSD_SUSECONDS_T_ and _BSD_USECONDS_T_; do some space vs. tab formatting
cleanup
1997-11-23 20:20:53 +00:00
fair 315f8de9c2 add pseudo-device rnd, commented out 1997-11-20 08:11:14 +00:00
lukem 6c986561ee * add commented out DDB_HISTORY_SIZE=100 if DDB exists in config file
* fix up use of 'options<SPACE><TAB>'
1997-11-17 01:57:23 +00:00
veego df6d37534b s/NETHER/NARP/ and s/ether.h/arp.h/ for the 'new' arp system. 1997-11-13 10:37:40 +00:00
thorpej ce4c770f88 Make sure CPP, AR, AS, and RANLIB are defined. 1997-11-12 23:11:50 +00:00
thorpej a421995756 Define LORDER, NM, and TSORT here, like we do the rest of the tools. 1997-11-12 22:25:31 +00:00
mark ae0af9300a Fix a bug in irq_release() when searching interrupt list for the handler
to remove. The address of the pointer rather than the address of what
is pointed to was use to track the previous handler resulting in problems
when releasing a chained irq. (from John Ballance)
1997-11-07 01:04:51 +00:00
mark b2b71ad982 Added amps device (Atomwide Multi-Port Serial card). 1997-11-06 02:16:03 +00:00
mark 012044674d Add deice, attachment and file information for the Atomwide Multi-Port
Serial card.
1997-11-06 02:12:27 +00:00
mark 4c86426324 Initial commit of the Atomwide Multi-Port Serial card driver. This driver
just provides attachments to the generic 16550 IC driver.
1997-11-06 02:08:51 +00:00
mark 1a05b5daa4 Cleanup and simplify the padding at the start of the mbuf chain so that
the IP packet is word aligned using the ALIGN macro.
1997-11-06 01:55:18 +00:00
mark 2b325ac968 Remove verbose printing when disabling interrupts on shutdown. 1997-11-06 01:52:43 +00:00
mark f5220ac842 MINIROOT_SIZE -> MINIROOTSIZE
Wildcard root device so that faked md device (MEMORY_DISK_IS_ROOT)
will be selected
1997-11-06 01:12:56 +00:00
mark 4245860a87 MINIROOT_SIZE -> MINIROOTSIZE
Wildcard root device so that faked md device (MEMORY_DISK_IS_ROOT)
will be selected
1997-11-06 01:01:01 +00:00
mark da3b854a7d Ignore memory disk hooks and boot args if MINIROOTSIZE is defined.
Added check for zero terminator after removing spaces in
get_bootconf_option(). This fixes a problem of matching NULL terminators
if there are trailing spaces in the boot args.
1997-11-06 00:57:02 +00:00
mark fe47853f6f Use the soft copy of the cpu control register instead of trying to read
the cpu control register as this register is write only on some processors.
1997-11-06 00:51:02 +00:00
mark 286f2f07bb Keep a global soft copy of the cpu control register in cpuctrl as some
processors have write only control registers.
1997-11-06 00:43:41 +00:00
mark 426af505f2 In cpufunc_control() only write to the cpu control register if the new
value is different from the old one.
1997-11-06 00:35:41 +00:00
thorpej 0b04d28454 Mark uses of long long with /* LONGLONG */ for lint. From
Chris Demetriou <cgd@pa.dec.com>.
1997-11-05 04:36:08 +00:00
thorpej fdcd077928 asm -> __asm__ 1997-11-05 00:34:15 +00:00
thorpej 4730a8cbec Bug fixes and cleanup from Chris Demetriou <cgd@pa.dec.com>:
- fix _C_LABEL so that it actually works.
- make __RENAME use _C_LABEL.
- fix __RENAME so that it expects an unquoted argument.
- fix __indr_reference and __warn_references so that they
  supply their own final semicolon.
- define __warn_references to nothing if not GNU C (required
  by the way it's used).

The __warn_references semicolon change has to be made
so that __warn_references can be defined into nothing.
(A ; all by itself isn't a great idea.)  The __indr_reference
change was made for consistency.
1997-11-04 23:09:23 +00:00
mark 07db350668 Define __STRING and __CONCAT macros for assembly routines. 1997-10-27 00:28:09 +00:00
mark 8df7358c90 Include asm.h instead of cdefs.h 1997-10-27 00:26:07 +00:00
thorpej 665f7d1a6e Implement __RENAME() in <machine/cdefs.h> 1997-10-22 05:20:32 +00:00
mark c1e2e66225 Handle a delay of zero in delay(). 1997-10-19 08:55:07 +00:00
augustss e7029fc0da Make the audio API (almost) SunOS compatible.
The changes is to allow some limited mixer manipulation through
the audio device (instead of the mixer device).
This rendered 4 methods in audio_hw_if unused so garbage collect these.
1997-10-19 07:41:33 +00:00
mark dd5b814bb5 Don't try and support serial consoles for the riscpc. 1997-10-18 04:47:57 +00:00
mark 441bad5ec5 Updated for a couple of changes to the arm32 dp8390 driver brought
upto date with respect to the MI one.
1997-10-18 04:39:12 +00:00
mark 35286a1259 arm32 specific version of the dp8390 driver from dev/ic. Really the
MI dp8390 and ne2000 drivers from dev/ic could / should be used but this
version has a few changes and has been well tested and thus should be
used for 1.3.
Hopefully this driver will be short lived.
1997-10-18 04:38:19 +00:00
mark 469dddc61d Updated to include atapibus as standard. 1997-10-18 04:23:32 +00:00
mark 7ee02db44d Link address is 0xf0000000 now we use the NetBSD ld.
Don't build makemodes etc. for configs that don't require it.
1997-10-18 04:20:17 +00:00
mark ea1c03acd8 Fix bug in last commit that only worked with cpp -traditional. 1997-10-18 02:46:09 +00:00
mark 1cc95a3df0 Fix .type directives to use #function rather than @function.
This is due to the problem of the @ character being a single character
comment in the asm assembler. The '#' character has now been chosen
instead for future versions of GCC and GAS so lets conform now.
1997-10-17 18:27:30 +00:00
mark 65295639f5 Updated for the new wd.c and wdc.c files in arm32/dev/ 1997-10-17 07:00:34 +00:00
mark 0b03e20959 Include <vm/vm.h> 1997-10-17 06:59:25 +00:00
mark 6886eff3c5 Updated for recent changes to the wd driver. Use wdlink.h instead
of wdcvar.h
1997-10-17 06:52:26 +00:00
mark 74c3a08d8d Updated for recent wd driver changes. Include wdlink.h instead of wdcvar.h 1997-10-17 06:49:17 +00:00
mark c004efb65e Remove redundant .req statements.
Use the ENTRY() macro from machine/asm.h for function declarations.
1997-10-17 06:46:27 +00:00
mark e9b9aedd51 Synchronise with recent changes to the ISA wd driver.
Remove the remaining ISA dependencies, busify and support 32 bit PIO.
1997-10-17 06:41:35 +00:00