Commit Graph

24910 Commits

Author SHA1 Message Date
sato 1ed5e58cb7 * implimant CONFIG_HOOK_PMEVENT_BATTERY&CONFIG_HOOK_PMEVENT_AC
based apm state transition.
- change CONFIG_HOOK_PMEVENT_BATTERY message.
XXX: currentry none send these events.
2000-12-29 08:12:08 +00:00
sommerfeld 851de295eb Change pci_intr_map to get interrupt source information from a "struct
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".

This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.

Tested on alpha and i386; welcome to 1.5Q
2000-12-28 22:59:06 +00:00
castor a698752050 Disable FPU in sys___sigreturn14() so floating point registers are
properly restored.
2000-12-28 09:27:09 +00:00
sato e527c3f384 add platid_search() for search platid related data from tables.
add platid_search() test program in platid_test.c. it's sample.
2000-12-28 07:10:14 +00:00
matt a589927cbc Make identical to arm32 version. (add same parens, use __P, etc.) 2000-12-28 03:55:14 +00:00
matt f1f4acfb4d Remove reference to CLBYTES 2000-12-28 03:54:15 +00:00
matt 1ea4047532 Add __ELF__ case for RCSID. Now identical to arm26 version. 2000-12-28 03:53:31 +00:00
matt 61b05af542 Except for the RCSID, this file is now identical with arm32/include/ansi.h 2000-12-28 03:52:50 +00:00
sommerfeld 5217f6335b Let COMPAT_LINUX build with DEBUG 2000-12-27 23:47:58 +00:00
jdolecek 69fa90cc78 s/SYS_NSYSENT/FREEBSD_&/ 2000-12-27 23:20:29 +00:00
bjh21 c00a8ab5fd Calculate the required amount of screen memory, rather than just trusting the
number that RISC OS gives us (which may be far too large).
2000-12-27 22:13:42 +00:00
jdolecek c6a69abc26 adapt to recent changes of signal structures 2000-12-27 21:58:52 +00:00
bjh21 9822871467 Add a special call to uvm_page_physload to register RISC OS's zero page as
free at startup.
2000-12-27 20:43:44 +00:00
bjh21 1b364c5082 pmap_confess() is unused and doesn't work any more. G/C it. 2000-12-27 18:38:50 +00:00
bjh21 c481cdca92 Overhaul of data-abort handling:
- Make data_abort_address() return the whole affected range, rather than
   just one end.
 - Don't rely on pmap_confess().  Instead, for LDM/STM, behave as if two faults
   had occurred, one at each end of the range.
 - Separate out fault handling into do_fault(), and call it from
   data_abort_handler() (twice) and prefetch_abort_handler().
2000-12-27 18:35:18 +00:00
bjh21 58e80f030f Two batches of changes:
1: Cleanup of syscall() -- treat the arguments as an array of register_t
   throughout.  This saves a few casts, and generally makes seeing what's
   going on easier.
2: Be a little more careful in the handling of data aborts on kernel
   addresses: don't use the kernel's map unless the access was actually from
   a kernel mode.  This is how the arm32 data abort handler behaves.
2000-12-27 16:57:09 +00:00
bjh21 186792c5b7 Use KASSERT for simple assertions. 2000-12-27 16:50:12 +00:00
bjh21 2433e71e6e Medium-sized pmap overhaul:
- Use UVMHIST for debugging messages, rather than printf
 - Rely on the caller of pmap_enter to tell us how to manipulate referenced/
   modified bits in the kernel pmap.
   [ Suggested by chs -- may need work on the rest of the kernel. ]
 - Split third-stage initialisation out of pmap_create() into pmap_init2().
 - Bug fix: when relocating pv_table, fix up all references to it as well.
 - Bug fix: in pv_release(), if pulling up a pv_entry to the head of the
   list, correct the reference from its pmap.
2000-12-27 15:16:04 +00:00
sato 6276ccbc58 - rewrite codes using new CONFIG_HOOK_SET. 2000-12-27 12:22:07 +00:00
sato 4b9ae225e0 -rewite codes by using new CONFIG_HOOK_SET and CONFIG_HOOK_EVENT. 2000-12-27 12:10:05 +00:00
sato dc6a141444 - rewite codes by using new CONFIG_HOOK_SET and CONFIG_HOOK_EVENT. 2000-12-27 12:08:03 +00:00
sato 22b3467f71 - merge CONFIG_HOOK_OUT and CONFIG_HOOK_SET and CONFIG_HOOK_POWERCONTROL
to CONFIG_HOOK_SET.
- merge CONFIG_HOOK_GET and CONFIG_HOOK_GETPOWER to CONFIG_HOOK_GET.
- merge CONFIG_HOOK_EVENT and CONFIG_HOOK_BUTTONEVENT to CONFIG_HOOK_ENENT.
- new CONFIG_HOOK_EVENT and CONFIG_HOOK_GET and CONFIG_HOOK_SET always have
  msg argument as pointer.
- new CONFIG_HOOK_EVENT and CONFIG_HOOK_GET and CONFIG_HOOK_SET use
  same event ids.
- CONFIG_HOOK_POWERCONTROL and CONFIG_HOOK_BUTTONEVENT still exist.
  i shall rewite codes by using new CONFIG_HOOK_SET and CONFIG_HOOK_EVENT.
2000-12-27 12:04:02 +00:00
castor a099ff1f75 Preserve the status register process_write_regs() to avoid confusion
about the current floating point context.
2000-12-27 08:28:12 +00:00
sato 0ebc2f12c2 fix typo. 2000-12-27 07:52:00 +00:00
bjh21 ce3cd11d08 Unreasonably simple fix for PR#11817: Don't worry about duplicate mappings,
just get pmap_fault to shove them back in.  Crude, but effective.  Fix inspired
by Chuck Silvers.

This breaks pmap_confess, but it probably deserves to die.
2000-12-26 23:18:50 +00:00
bjh21 939baa9f0d Follow the herd: Use the MI md_root.c. 2000-12-26 19:55:52 +00:00
itojun efa2b7073c make mbstate_t bigger (32 -> 128 bytes).
XXX if you have libc after citrus locale import, please recompile libc,
and your applications that use mbstate_t (rather rare).  really sorry
for the mess.
2000-12-26 10:35:28 +00:00
dbj e992baf394 fix logic error in bus_dmamap_sync that was preventing from flush/purging
full pages instead of only by cache lines
2000-12-26 07:27:01 +00:00
sato e05cd448e3 make compilable for HPCFB_JUMP codes. 2000-12-25 10:27:28 +00:00
sato 45b32e79e8 * add iodone&font entry in struct hpcfb_accessops.
* update HPCFB_JUMP codes.
* change tvram initialization out of hpcfb_init().
* use dc_fbaddr for switching screen (for HPCFB_MULTI codes).
2000-12-25 10:09:31 +00:00
nisimura 752dce24ae - fix typos in mips_user_cacheflush() and mips_user_cachectl().
- relocate those function declarations from include/pmap.h.
2000-12-25 08:56:12 +00:00
tsubai 3102ae2c25 Work around of "trap type 700 at ff8099b8".
It seems to work for me but I'm not sure...
2000-12-25 02:15:52 +00:00
ur 63f060c06a Use MI md_root.c 2000-12-24 09:35:28 +00:00
ur 459f2585f4 Switch pica to jazzio.
Split shared MD portion between algor and jazzio.
2000-12-24 09:25:24 +00:00
jhawk be1e7e391c Spell "physical" correctly in comment. 2000-12-24 07:13:36 +00:00
wiz 7ae9423d3b Honour SCSI command timeout -- fixes problems with SCSI commands that take
longer than 10s and were falling into a timeout, e.g. fixating.
2000-12-24 02:42:04 +00:00
bjh21 f1fc4edf08 In pmap_enter(), seed referenced and modified bits from access type passed in. 2000-12-23 23:06:51 +00:00
bjh21 5568314c66 Since the Arc's interrupt layout is fixed, only print IRQ numbers in
verbose mode.  This helps to ensure the kernel version number doesn't disappear
too quickly.
2000-12-23 21:49:13 +00:00
bjh21 7cce6a2816 Remove "machine" subcommands that duplicate "show".
Add "machine bsw" which does a bus_space_write_*().
2000-12-23 15:18:34 +00:00
bjh21 da1e6b7cfb Don't SIGSEGV a process just because we get KERN_RESOURCE_SHORTAGE. It might
go away.

Yes, this is a grotty hack.  The right solution is for uvm_fault to be less
pessimistic.
2000-12-23 15:12:54 +00:00
bjh21 95920110c7 Stub FPU driver -- identifies FPUs and warns they aren't supported. e.g:
cpu0 (root): ARM2
fpu0 at cpu0: FPPC/WE32206
fpu0: WARNING: FPU type not supported by kernel
2000-12-23 13:37:02 +00:00
tron 37f9e37daf Fix typo in last commit. 2000-12-23 13:11:57 +00:00
bjh21 85aa3d3b8d G/c unused declarations. 2000-12-23 12:57:55 +00:00
jdolecek de31133f1d split off thread specific stuff from struct sigacts to struct sigctx, leaving
only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx

This addresses kern/10981 by Matthew Orgass.

XXX I wish m68k ports would share trap.c
2000-12-23 09:35:51 +00:00
enami 6242a87506 Fix text address. 2000-12-23 07:40:51 +00:00
jdolecek e9e91a0fb5 split off thread specific stuff from struct sigacts to struct sigctx, leaving
only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx

This addresses kern/10981 by Matthew Orgass.
2000-12-22 22:58:52 +00:00
bjh21 0c0d8f3775 Support for identifying MAUs attached to EtherLan 200-series cards. 2000-12-22 22:21:37 +00:00
scw 8336df62f7 Some small optimisations:
o Avoid checking cputype when the kernel is built for one cpu variant only.
 o In writeback(), don't use bcopy() to write a mere 16 bytes of 16-byte
   aligned data; it's much quicker to copy it inline.
2000-12-22 21:02:05 +00:00
scw d11562c429 A couple of minor functions which return pointers need to do so in %a0 now.
Spotted by Chuck Silvers.
2000-12-22 20:57:21 +00:00
tsutsui 7541fda9d4 Add missing printf args. 2000-12-22 18:16:37 +00:00