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