thorpej
6d35f61035
In pmap_map_chunk(), if we can't use a section mapping, then
...
make sure that the L1 slot for the current VA points to an L2
table, and panic if it doesn't.
2002-02-21 06:36:11 +00:00
thorpej
15e0450397
Always pass the L1 table to pmap_map_chunk(). This allows pmap_map_chunk()
...
to perform some error checking.
2002-02-21 05:25:23 +00:00
thorpej
454e106a48
map_chunk() -> pmap_map_chunk(), and move it to pmap.c
2002-02-21 02:52:19 +00:00
skrll
f9d21f3995
Use shell arithmetic as much as possible and reduce the number of times
...
that awk is used to one.
No functional change.
2002-02-20 21:54:08 +00:00
thorpej
425011f621
map_pagetable() -> pmap_link_l2pt(), and move it to pmap.c
2002-02-20 20:41:15 +00:00
thorpej
c44b9117f0
Collapse map_entry{,ro,nc}() into a single pmap_map_entry() that
...
takes a prot and a "cacheable" indicator.
2002-02-20 02:32:56 +00:00
thorpej
9c31f51c34
Rename map_section() to pmap_map_section(), move it to pmap.c, and give it
...
an extra argument (prot - specifies protection of the mapping).
2002-02-20 00:10:15 +00:00
wiz
37e458fa45
strategy should have an 'r'. Inspired by similar change in OpenBSD.
2002-02-19 17:09:40 +00:00
simonb
2d8577fb83
Clean up some rampant code duplication wrt ieee number handling:
...
- Add alignment-safe double and float unions.
- Use the above for the __infinity and __nan constants on all
architectures that use the standard ieee754 representation of
those constants.
- Add a single copy of various ieee754 math functions (frexp, isinf,
isnan, ldexp and modf) that had numerous duplicates among the
arch-specific directories.
- Use the above functions on all architectures where the generic C
versions where used. Architectures that had local assembly
routines are untouched (for those functions only).
2002-02-19 13:08:12 +00:00
bjh21
ff94cc2ad5
Add prototype for getkey_polled().
2002-02-18 19:05:35 +00:00
bjh21
d4d3aa6468
Add internal prototype for cmd_mouse().
...
Also __RCSID() while I'm here.
2002-02-18 18:58:47 +00:00
bjh21
eb821c3860
Add a prototype for qms_console_freeze().
2002-02-18 18:43:55 +00:00
bjh21
1e6835687e
Rename prototype from sysbeep_vidc() to sysbeep() to match definition.
...
Pull in beepvar.h and vidcaudiovar.h for beep_generate() and
vidcaudio_beep_generate() prototypes.
__RCSID().
2002-02-18 16:23:54 +00:00
bjh21
2712a10c7c
Add a prototype for vidcvideo_config_wscons().
2002-02-18 14:30:20 +00:00
bjh21
761157905a
Add prototypes to all declarations of function pointers.
...
Include <arch/arm/iomd/vidcaudiovar.h> for vidcaudio_beep_generate() prototype.
Add in-core RCSID.
2002-02-18 12:55:47 +00:00
bjh21
a06b71e864
Add a vidcaudiovar.h to contain a prototype for vidcaudio_beep_generate().
2002-02-18 12:52:09 +00:00
bjh21
2aa99b4f12
Include <arch/arm/iomd/beepvar.h> for beep_generate() prototype.
...
Include <machine/conf.h> for cdevsw function prototypes.
Correct argument types of beepioctl().
Add in-core RCSID.
2002-02-18 12:36:27 +00:00
bjh21
668fc0d2b7
Add beepvar.h, to hold a prototype for beep_generate().
2002-02-18 12:34:11 +00:00
bjh21
c1f8e3aa21
Comment out vidcvideo_setbase() (it's unused).
...
Remove vidcvideo_mmap() (it's redundant).
Add in-core RCSID.
2002-02-18 12:23:24 +00:00
bjh21
1a140d2090
Add prototypes for clockhandler() and statclockhandler(), and adjust their
...
argument types to match other interrupt handlers.
Also minor KNF (add in-core RCSID).
2002-02-18 12:18:26 +00:00
bjh21
40933bf05e
Add prototype for yeartoday().
2002-02-18 12:03:38 +00:00
bjh21
57a6aecd77
Include <machine/conf.h> for cdevsw function prototypes.
...
Add internal prototypes for hexdectodec(), dectohexdec() and twodigits().
Correct signature of rtcioctl().
2002-02-18 11:59:16 +00:00
bjh21
b5c13de9bf
Pull in <machine/conf.h> to get prototypes for cdevsw functions, and correct
...
the signature of iicioctl() appropriately.
2002-02-18 11:51:57 +00:00
bjh21
216b4f1c81
Add prototypes for dma_reset(), dma_setup(), dma_isactive(), dma_isintr() and
...
dma_intr().
2002-02-18 11:41:18 +00:00
bjh21
dbc5effbc8
Change signature of dma_intr() to match other interrupt handlers.
2002-02-18 11:40:42 +00:00
bjh21
ca677d0d06
Add a prototype for linux_syscall(). It should be in a header file, but
...
other files that refer to it don't know its argument types anyway.
2002-02-17 23:37:18 +00:00
bjh21
e6e848ef6d
Our assembler handles FPA instructions fine, so don't use .word for them.
2002-02-17 20:41:02 +00:00
bjh21
cb7a3d0674
ANSIfy, and othe KNF cleanup.
2002-02-17 19:53:44 +00:00
bjh21
561984015b
Undo part of rev 1.8: SWP intructions really do both read and write
...
the referenced address.
2002-02-14 11:59:26 +00:00
chs
b744097a5f
allow writing to write-only mappings. fixes PR 3493.
2002-02-14 07:08:02 +00:00
briggs
b72d845476
Actually set the i80312_softc global.
2002-02-14 02:38:22 +00:00
rjs
9134bf2610
Add Cotulla CPU IDs.
2002-02-14 01:37:20 +00:00
thorpej
cd98cbf7fb
* For platforms which are already ELF, remove the definition of
...
MACHINE_ARCH since <arm/param.h> already sets it correctly to "arm".
* For platforms which are not yet ELF, defined MACHINE_ARCH to "arm32"
if __ELF__ is not defined by the C preprocessor.
* In <arm/param.h>, clarify the rules about when MACHINE and
MACHINE_ARCH are defined, and to what. Also, for ELF platforms,
int the non-_KERNEL case, force both MACHINE and MACHINE_ARCH to "arm",
rather than allowing platform-specifc code to define either.
2002-02-12 06:58:18 +00:00
reinoud
a74d22be50
Add some extra comments for the `booted_kernel' variable.
2002-02-10 13:20:26 +00:00
chris
a73dabb4b1
Following the demise of arch/arm32 update cats, and restore the isa files to a more sane location.
...
Also fix build break on GENERIC cats kernel, seems that conf.h should have been including arm/conf.h.
This completes the removal of arch/arm32.
2002-02-10 12:26:00 +00:00
reinoud
8843d04234
Please only return errno values !!! ... also doing a bit of KNF'ing
2002-02-10 00:53:28 +00:00
chris
2ba81d8c9c
Update elf2aout to cope with infile and outfile being the same.
...
Make the cats a.out kernel be called netbsd. This means that make install installs the correct kernel
2002-02-09 11:53:58 +00:00
thorpej
d17cc4f043
* Move some generic ARM OpenFirmware stuff into arch/arm/ofw (still
...
more can move, but not yet).
* Garbage-collect some cruft from arch/arm32 in preparation for
renaming to arch/shark.
2002-02-06 21:30:25 +00:00
thorpej
5113cbfb17
A slightly cleaned up version of chris/nick's elf2aout.sh for ARM
...
platforms.
2002-02-06 19:54:47 +00:00
thorpej
da13cb2fb5
Back out all the vm_page_md changes. They are causing some
...
mysterious problems (a similar change to the i386 pmap causes
mysterious problems there, as well), and the issue needs to
be investigated more.
2002-02-06 17:41:42 +00:00
thorpej
4611193917
Efficiency tweaks, some made possible by vm_page_md.
2002-02-06 17:32:35 +00:00
thorpej
58eebd58b3
Use vm_page_md rather than pmap_physseg. Saves lots of cycles in
...
common operations.
2002-02-05 21:14:36 +00:00
thorpej
9485327397
Allow platforms to use an extra level of indirection for FIQs,
...
enabled by definining __ARM_FIQ_INDIRECT in <machine/types.h>.
This is needed for OpenFirmware systems (like the Shark), where
the OFW vector page is used, and kernel entries merely patched
into it.
2002-02-05 18:26:07 +00:00
reinoud
fe0ecbaede
At last enable the real time clock again on acorn32 !! thanks a lot to Mike
...
Pumford for the patches.
2002-02-05 14:36:35 +00:00
chris
4253f3bbfc
Set LOOSE_PROTOTYPES to no for cats. This means cats now uses stricter prototype checking.
2002-01-31 09:53:33 +00:00
chris
3ead7271d5
Fix the type of irqmasks (any reason it's even been added as an extern when it's in irqhandler.h with the correct type and array size?)
2002-01-31 09:43:42 +00:00
thorpej
2bc996b0bc
New interrupt framework for NetBSD/evbarm, and accompanying new
...
interrupt code for the IQ80310 board support package.
XXX The Integrator board support package still uses the old-style
arm32 interrupt code, so some compatibility hacks have been added
for it. When the Integrator uses new-style interrupts, those hacks
can go away.
2002-01-30 03:59:39 +00:00
thorpej
5e0726b647
Set the CPU sleep routine to sa11x0_cpu_sleep() on SA-1100 and SA-1110
...
processors.
2002-01-30 00:37:18 +00:00
thorpej
50f7f1d785
Add prototype for sa11x0_cpu_sleep().
2002-01-30 00:36:32 +00:00
thorpej
2c0cb97fa8
Add a sleep routine for the SA-11x0.
2002-01-30 00:25:07 +00:00