Commit Graph

28133 Commits

Author SHA1 Message Date
scw 27ae3aab7c Blah, yet another nit: s/irq/ipl/ 2001-07-27 21:56:10 +00:00
scw ea00e7cda2 Don't bother trying to initiate a DRAM scrub on startup as it requires
frobbing with registers which are marked as "For Test Purposes [only]".
2001-07-27 21:54:07 +00:00
bjh21 d8372315a2 Rudimentary OS_Byte support, and an extra VDU variable. 2001-07-27 21:10:04 +00:00
bjh21 d939fd1e55 Add support for OS_ReadVduVariables, with #defines for the variables that BBBB
uses.
2001-07-27 20:49:09 +00:00
scw c184f03348 Remove Mistakenly Left In comments around some `#ifdef DIAGNOSTIC' tests. 2001-07-27 20:48:58 +00:00
bjh21 a24c2adedf Limit the heap so as to allow 4 KB of stack, which should be enough for most
purposes.
2001-07-27 20:48:20 +00:00
scw 8343a1492f Forgot to shift the DRAM Bank identifiers by four. 2001-07-27 20:33:35 +00:00
scw f169034d7f Fix a braino in the check for a jumper across pins 1-2 of J1 (mvme1[67]7).
Spotted by Chuck Silvers.
2001-07-27 18:58:23 +00:00
scw 9ac6178585 memc attaches at mainbus now. 2001-07-27 18:40:27 +00:00
scw 7e2f2acb8e Flesh out the memory controller driver (at least for the MCECC chip)
and attach it at mainbus since it depends both PCCChip2 and VMEChip2
(or the VMEChip2 interrupter) starting first.

We can finally enable, detect and log DRAM ECC errors.
(The PROM disabled ECC checks by default)
2001-07-27 18:38:54 +00:00
ragge f5abeb5b4b Set MAXPHYS to 64k instead of 63k. 2001-07-27 12:58:21 +00:00
ragge 39a7595b28 Calculation of unibus map register size was wrong. 2001-07-27 12:57:20 +00:00
bjh21 ea2ae3689c Twiddle. 2001-07-27 01:03:34 +00:00
bjh21 f68048b4eb Fix bug in xosgbpb_read: Check the correct register when deciding whether to
store result.
2001-07-27 01:02:44 +00:00
bjh21 5080e94490 OS_Args only really has two cases (reading and setting values). Use a generic
assembler veneer for each of these, and implement the calls to read and set
specific values as macros.
2001-07-27 00:37:38 +00:00
thorpej 0fb6b9a8f8 Rework the interrupt code, shaving some cycles off in the process.
Rather than an "iointr" routine that decomposes a vector into an
IRQ, we maintain a vector table directly, hooking up each "iointr"
routine at the correct vector.  This also allows us to hook device
interrupts up to specific vectors (c.f. Jensen).

We can shave even more cycles off, here, and I will, but it requires
some changes to the alpha_shared_intr stuff.
2001-07-27 00:25:18 +00:00
bjh21 2256fe3c2a Clear the BSS at startup, since objdump --outputformat=binary seems not to
output the BSS.
2001-07-27 00:21:18 +00:00
bjh21 218ce892b1 Fix up a left-over SWINE in os_writec. 2001-07-27 00:00:25 +00:00
wiz 79b57114c9 auxilary -> auxiliary 2001-07-26 23:07:57 +00:00
wiz e11d04474c issueing -> issuing 2001-07-26 22:55:12 +00:00
wiz 035b63a542 auxilliary -> auxiliary 2001-07-26 22:53:13 +00:00
wiz 41df6b74a9 partiton -> partition 2001-07-26 22:47:34 +00:00
bjh21 7a181053ec Makefile for building standalone programs to run under RISC OS.
Not used yet, but it will be.
2001-07-26 22:16:26 +00:00
bjh21 9315195522 Simple library to interface stand-alone programs to RISC OS.
This comes in two parts:  riscoscalls.[Sh] provide definitions, and thin
wrappers around RISC OS SWIs (in the style of OsLib) for the use of both the
rest of the library and client code.  The rest of the library provides a
compatibility layer for libsa.
2001-07-26 22:11:08 +00:00
mjl ab94842af6 Add rnd entropy gathering. 2001-07-26 21:31:45 +00:00
drochner d2ef97080c make sure clockframe is __packed 2001-07-26 15:46:58 +00:00
drochner b841a8e7cc pmap_changebit() requires pv tracking, so replace it by manual PTE construction 2001-07-26 15:45:51 +00:00
drochner 688026c828 use pmap_kenter/remove in pagemove() to make it work with memory mapped
by pmap_kenter_pa() (ie buffer pages)
2001-07-26 15:43:39 +00:00
drochner 2286fed799 incorporate patch from Chuck Silvers which basically reduces
pmap_kenter_pa() / pmap_kremove() to the basics - ie, removes pv tracking
2001-07-26 15:41:14 +00:00
wiz 30b2bf87ed Various typos in comments (neccessary, sceme, choise, ...). 2001-07-26 15:05:07 +00:00
tsubai 8ab2c794fd Make this compile w/o -DMIPS3. 2001-07-26 11:46:44 +00:00
tsubai 071e4602d9 Avoid panic when polling is used. 2001-07-26 11:44:06 +00:00
tsubai 1b3871ef0f Change description of handler-ID == 195. 2001-07-26 11:36:40 +00:00
tsubai bacce8fb4c Fix a warning when compiled w/o DDB. 2001-07-26 11:23:37 +00:00
minoura 6ec544c64d implement pmap_k{enter_pa,remove}() correctly.
other misc cleanup.
patch written by chs; equivalent to hp300 pmap.c:1.95.
2001-07-26 02:21:58 +00:00
bouyer 21bcee4ec1 Return() if piomode == -1 (i.e. we have no drives), avoid reading an array with
a negative offset.
Thanks to Andrew Cagney for pointing this out.
2001-07-25 20:26:33 +00:00
tsutsui 9d5b24f779 Apply pmap_k{enter_pa,remove} patches provided by Chuck Silvers. 2001-07-25 15:59:48 +00:00
tsutsui 6fa8cc9467 Sync with hp300/vm_machdep.c rev 1.60:
> use pmap_k* for pagemove().
> call pmap_remove() explicitly in vunmapbuf() in preparation for
> upcoming UVM changes.
2001-07-25 15:56:30 +00:00
tsutsui 5db9f9aa7c Cosmetics. (some KNF, typo etc.) 2001-07-25 15:48:09 +00:00
drochner 23204e4b5f document 3c90xb support
use default settings which make more sense (for me)
2001-07-25 12:51:44 +00:00
drochner a3cdd518ad make it compile after i82557reg.h changes 2001-07-25 12:47:34 +00:00
aymeric 16d48eec82 These programs are for the host, not for the target, to execute. 2001-07-25 12:32:48 +00:00
eeh 7950c7dffd Don't match ebus nodes not called "ebus" like the ones on hme cards. 2001-07-25 03:49:54 +00:00
rafal e9ad38e77d Fix bug in mips3_proc_trampoline: SR wasn't disabled on entry, allowing an
interrupt to sneak in after EXL had been set; the interrupt EPC was stale
as PC isn't saved if EXL is set, causing the eret to return to the wrong
place and leading to kernel-mode TLB misses on user addresses.  The bug
was discovered by the japanese NetBSD/*mips folks and the same fix was
found independently by shinohara-san (shin@netbsd.org).
2001-07-24 23:13:33 +00:00
wiz d2cede024b Replace some memcpy()s with probably overlapping arguments with memmove()s. 2001-07-24 22:29:07 +00:00
eeh 57b56da169 Garbage collect. 2001-07-24 19:32:11 +00:00
eeh f13bad30d7 Use OF routines instead of internal ones. 2001-07-24 19:30:14 +00:00
eeh 24a5c4be70 Support for pc-style `rtc' real-time clocks.
Doesn't work right.  There are still issues w/register accesses.
2001-07-24 19:29:25 +00:00
eeh 64a9c222c0 Use OF_getprop instead of getprop. 2001-07-24 19:27:10 +00:00
wiz 0aa5d1cdfb s/accellerate/accelerate/ 2001-07-24 16:50:41 +00:00
tsutsui e4258b142d Remove sn_dma_init() for the old Sonic driver. 2001-07-24 16:26:53 +00:00
eeh a25d2e82ff Update this. 2001-07-23 21:06:37 +00:00
jdolecek 000f85917b Since ~all pckbc_poll_data1() callers had the appropriate pckbc
tag handy and we are going to need more of it in pckbc_poll_data1() soon,
change pckbc_poll_data1() to accept it as first arg. iot, ioh_d, ioh_c are
no longer passed separately. Use fabricated pckbc tag for calls from
arch/arc/jazz/pckbc_jazzio.c and dev/isa/pckbc_isa.c.
2001-07-23 21:03:19 +00:00
scw 5b69ac0a44 Apply pmap_k{enter_pa,remove} patches provided by Chuck Silvers. 2001-07-23 20:34:00 +00:00
eeh cc6781a464 Get rid of a bunch of obsolete files. 2001-07-23 18:21:26 +00:00
eeh f53d7d33ec Get rid of some debug code that really isn't all that useful any more. 2001-07-23 17:19:56 +00:00
matt 384a403ca5 Make sync_icache_args use more standard types. 2001-07-23 17:04:27 +00:00
tsutsui 8a34464ff6 Remove old homegrown sonic driver since now we have switched to
the MI one.
2001-07-23 16:40:32 +00:00
tsutsui 2a2e37ec6c Switch to the MI SONIC driver.
XXX Device declaration for the MI SONIC should be moved into sys/conf/files
XXX after all other ports switch to it from their own drivers.
2001-07-23 16:36:37 +00:00
eeh a555b32a7f Fix bootpath checks on machines with simbas. 2001-07-23 03:45:38 +00:00
itojun 71aa31a75a support multiple batteries (currently only # of batteris is visible -
need to tweak ioctl API more).  PR 10545.
2001-07-22 16:05:17 +00:00
wiz c95a92f84f bcopy -> memcpy, bzero -> memset 2001-07-22 15:51:16 +00:00
wiz 20ab98b30f bcopy -> memcpy 2001-07-22 15:48:11 +00:00
wiz 8eaf0a103e bcopy -> memcpy, bzero -> memset 2001-07-22 15:46:41 +00:00
wiz 9654501023 bcopy -> memmove, bzero -> memset, bcmp -> memcmp 2001-07-22 15:26:47 +00:00
wiz 6c8f415983 bzero -> memset 2001-07-22 15:23:53 +00:00
wiz 684d06bac8 bcopy -> memcpy, bzero -> memset 2001-07-22 15:17:30 +00:00
wiz ef8d715888 bzero -> memset 2001-07-22 15:11:01 +00:00
wiz 2f10ae1421 bcopy -> memcpy, bzero -> memset 2001-07-22 14:58:20 +00:00
wiz fda9343e10 bcopy -> memmove 2001-07-22 14:57:50 +00:00
wiz 3ed1e031ab bcopy -> memcpy, bzero -> memset 2001-07-22 14:43:14 +00:00
wiz a73374d9c8 bcopy -> memcpy, bcmp -> memcmp, bzero -> memset 2001-07-22 14:34:36 +00:00
wiz c29fb7279b bcopy -> memmove 2001-07-22 14:32:16 +00:00
tsubai f9493fa115 Make this compile again. 2001-07-22 14:20:13 +00:00
scw c4d9b998af ptest_addr() is prototyped (in pmap.c) to return a u_long not a pointer.
Therefore the return value should be in %d0, not %a0.
2001-07-22 14:11:05 +00:00
wiz f38345c6d9 bcopy -> memcpy 2001-07-22 14:09:04 +00:00
wiz a9356936b4 seperate -> separate 2001-07-22 13:33:58 +00:00
wiz 611461bc5e memcpy -> memmove. Noted by Tsubai Masanari. 2001-07-22 13:21:04 +00:00
wiz 0ef3731e14 Replace memcpy's of obviously overlapping regions with memmove.
Noted by Izumi Tsutsui.
2001-07-22 13:08:09 +00:00
wiz c5a6be17f4 bcopy -> memcpy, bzero -> memset, bcmp -> memcmp.
Reviewed by Matt Thomas, ok'd by Tsubai Masanari.
2001-07-22 11:29:44 +00:00
sato c84f4a5476 adhoc battery event creation for some vr machines.
XXX: temporary
this file is needed with vrpiu.c rev1.14
2001-07-22 10:40:09 +00:00
takemura 64b6b76a21 You must set 'HPCFB_SWAP_*' if bytes are stored in reverse order, i.e.
little endian like order, however, usage of 'HPCFB_SWAP_*' was widely
misunderstood because it reminded you of 'RI_BSWAP' in raster operation.
Please note that 'RI_BSWAP' indicate that frame buffer byte order is different
from natural order of system while 'HPCFB_REVORDER_*' is independent of
system byte order.
2001-07-22 09:56:39 +00:00
jdolecek 044d2dfafc Move former PS2 config to GENERIC_PS2, mostly so that it fits the
installation snapshot build machinery well; also improve some comments.
Adjust INSTALL_PS2 config accordingly.
2001-07-21 16:26:46 +00:00
jdolecek c55c49e5e3 Make a bit more like GENERIC - add I586_CPU, NTP, SYSVMSG, SYSVSEM, LKM,
CD9660, INET6, though bunch of entries enabled in GENERIC is commented out,
mostly due they being not appropriate for IBM PS/2.
2001-07-21 16:12:16 +00:00
jdolecek c013461507 add pcmb\* 2001-07-21 13:22:05 +00:00
jdolecek 230adf61d8 Installation kernel for PS/2 machines. Only wrapper around
PS2 config.
2001-07-21 13:16:23 +00:00
jdolecek 0be60fb28d remove MEMORY_DISK_HOOKS stuff 2001-07-21 13:15:00 +00:00
ichiro 025f122394 use definition of memory size for physical area
0x20000000 -> SH3_P1234SEG_SIZE
2001-07-20 14:19:59 +00:00
hpeyerl 7ef32026cd make slash, backslash, question, and pipe (bar?) keys work on US Jornada
keyboard.

We still don't have {}[]`~ since these require the 'fn' key modifier. Same
with num-lock, caps-lock or funky british currency symbols.
2001-07-20 04:28:50 +00:00
eeh 1fead733d9 PCI overhaul. 2001-07-20 00:07:12 +00:00
eeh 93d4ebfb55 Don't fall over if the TOD clock could not be found. 2001-07-19 23:59:51 +00:00
eeh 7e8421fa5b Also attach apropriate devices named "serial". 2001-07-19 23:55:50 +00:00
eeh 0c4549ab71 Don't bother flushing cache lines for un-cached accesses. 2001-07-19 23:47:37 +00:00
eeh b3edeb5745 Add 'ide' to the IPL table and fix things so we don't rely on the PROM
mapping things in for us.
2001-07-19 23:40:36 +00:00
eeh 76665dc463 Small code cleanup. 2001-07-19 23:38:11 +00:00
eeh 5150b485b4 Do ignore unregistered interrupts instead of faulting. 2001-07-19 23:37:17 +00:00
eeh 12fbdb7bb3 Make bus_space_debug default to off. 2001-07-19 23:35:42 +00:00
eeh 075ed881ad Print out PID and command name for alignment faults. 2001-07-19 23:33:09 +00:00
eeh a60e790efe Make a bigger hole between kernel text and data. 2001-07-19 23:31:06 +00:00
thorpej 030941bc0d Only match the "gbus" on the primary CPU's CPU module. 2001-07-19 20:34:08 +00:00
thorpej 13e63c6a43 Take a guess and initialize the prefetch threshold to 256 bytes. Haven't
found this one in the manual yet.
2001-07-19 19:09:22 +00:00
thorpej b0256ef005 DWLPx has a 256-byte DMA prefetch threshold. 2001-07-19 18:59:41 +00:00
thorpej 1e21ada1d9 MCPCIA has a 256 byte DMA prefetch threshold. 2001-07-19 18:55:40 +00:00
thorpej c563df226b The T2 has a 256 byte DMA prefetch threshold. 2001-07-19 18:50:25 +00:00
thorpej e6ab362da0 The LCA isn't supposed to have a DMA prefetch threshold, but experience
has shown is that if we don't allocate a spill page, we get a machine
check.  So, initialize the threshold to 256 bytes.
2001-07-19 18:47:38 +00:00
thorpej 4c4c88dbb7 ALCOR/ALCOR2/PYXIS have a 256-byte DMA prefetch threshold. 2001-07-19 18:42:42 +00:00
thorpej 908464bef9 APECS has a 256 byte DMA prefetch threshold. 2001-07-19 18:39:29 +00:00
thorpej 63bc6c1370 Since the SGMAP buffer load subroutine doesn't need to modify
the segment index, don't pass it by reference.
2001-07-19 18:20:20 +00:00
scw b4c68ef164 Descend into wrtvid in all but the install pass. 2001-07-19 18:18:30 +00:00
thorpej 77e1f86ad4 Implement dmamap_load_uio for SGMAPs. 2001-07-19 18:08:54 +00:00
thorpej e60fffea3b Pay attention to BUS_DMA_READ; don't need to allocate a spill
page if it is set.
2001-07-19 17:08:44 +00:00
wiz 1bc6d2cee9 Fix typo (`information' has an 'r'). 2001-07-19 16:13:00 +00:00
thorpej babefc5331 Add BUS_DMA_READ and BUS_DMA_WRITE flags, that hint the back-end
at dmamap load time that the mapping will be used for a unidirectional
transfer of the specified direction.
2001-07-19 15:32:10 +00:00
thorpej b70733d358 Since DMA frobbing can be done at interrupt time by devies at
multiple levels, protect the extent map w/ splvm().
2001-07-19 14:26:54 +00:00
sato 9ae3738ab5 adhoc battery event creation for some vr machines.
XXX: temporary
2001-07-19 13:11:27 +00:00
sato ab7530a18b change BATTERY event order. 2001-07-19 11:38:01 +00:00
sato b9d7f75a06 add more BATTERY events. 2001-07-19 11:36:07 +00:00
thorpej 18490eff62 Add support for mbufs to the Alpha SGMAP DMA maps. 2001-07-19 06:40:01 +00:00
thorpej 8617f2c7f5 Simplify the SGMAP code a bit, and move SGVA allocation out of a
common routine into the individual load routines, since each load
routine needs to muddle with the "internals" of this operation.

Add a `prefetch threshold' member to the bus_dma_tag_t, so that
eventually we can determine whether or not to allocate a spill
page on a per-mapping basis.
2001-07-19 04:27:37 +00:00
oster fd5247de51 By adding a well-placed space or two, 'make depend' no longer loses
due to a directory name like 'arc.current' messing up a sed substitution.
2001-07-19 01:46:15 +00:00
thorpej 09ab6c5da8 Duh, to set the user stack pointer, you have to frob the PALcode PCB,
not the trap frame.

Fixes clone(2) on the Alpha.
2001-07-18 22:22:49 +00:00
thorpej 6af9e1cf38 Print the stack pointer on a user unaligned access fault. 2001-07-18 22:22:02 +00:00
scw eef68ab123 In bus_dmamap_sync4060(), fold the POSTREAD case into the PREREAD case
where it belonged in the first place.
2001-07-18 17:21:49 +00:00
scw 6a9bccd130 Make absolutely sure page tables are not cacheable on 040/060 cpus.
(Not strictly required for the 040, but mandatory for the 060).
Also revamp cache enable/disable functions for the benefit of
bus_dmamem_map().
2001-07-18 17:18:53 +00:00
scw db111a0133 Restore FPU context properly on 68060-specific kernels... 2001-07-18 17:13:15 +00:00
rjs c1539a6ba2 Add Jazelle mode flag. 2001-07-18 16:31:17 +00:00
matt b499a7d558 Add -Wno-main since this is a standalone program. 2001-07-18 05:37:55 +00:00
simonb 19014d376c Modernise data and stack size limits. 2001-07-18 04:15:55 +00:00
thorpej 909084d90f Protect userland from the inlines and kernel variable decls. 2001-07-17 20:54:58 +00:00
mrg ef38b7e874 fix a statementless label that gcc-current picked up. 2001-07-17 13:53:15 +00:00
mrg 6d1680019c use a shift instead of a divide. 2001-07-17 13:52:24 +00:00
tsubai e0cf8bfa8f Eject PCMCIA card on ohare based models only. 2001-07-17 12:33:45 +00:00
fvdl d68e2c3f12 Redefine evil tXXX register offset defines into the trapframe structure
to use offsetof. These should be completely nuked.

Fixes math_emulate lossage.
2001-07-17 08:13:06 +00:00
toshii e267c67b60 "infomation" -> "information" 2001-07-17 01:37:43 +00:00
hpeyerl 949c8eb434 "infomation" -> "information" 2001-07-16 22:01:38 +00:00
thorpej 3e1e8af07b Don't use pmap_changebit() in pmap_protect(), and remove the
pager mapping check from pmap_changebit().
2001-07-16 21:37:21 +00:00
thorpej aff311a28c Remove I-sync stuff from pmap_changebit(). The AARM says that we
only have to sync the I-stream when the mapping is removed or chaged,
and since the I-stream is fetch-only, changing protection bits does
not constitute changing the mapping (the VA->PA translation is still
the same).
2001-07-16 19:48:03 +00:00
eeh 76f0e59e40 Make bcopy a 32-bit friendly. 2001-07-16 18:59:33 +00:00
thorpej 091e29f94f In i386_softintr_lock(), use splserial() rather than splhigh(),
because of splhigh() braindamage on the i386 port.

Fixes port-i386/13038 and port-i386/12985.
2001-07-16 16:53:00 +00:00
matt bb9bd28fa8 Change way PIC stuff is emitted for ELF to be more flexible. 2001-07-16 05:43:32 +00:00
matt 59ce75e3e7 Need to emit PLT magic for PIC ELF files. 2001-07-16 05:42:50 +00:00
elric 99e8b114e0 So, the PowerStorm 4d20 a.k.a. 32bit TGA2 w/ IBM RGB561 RAMDAC was causing
the kernel to panic since it is recognised as a TGA and the TGA driver
doesn't [yet] know what to do with it.

This patch fixes that by:
	o  making tgamatch() try to actually figure out what kind
	   of TGA card is there, rather than simply relying on the
	   vendor/product ids.
	o  creating a tga_cnmatch() so that the console code in
	   arch/alpha/pci/pci_machdep.c can cause the same to occur.
	o  breaking up some of tga_getdevconfig() into a few different
	   functions to re-use code that would have been duplicated.
	o  changed arch/alpha/pci/pci_machdep.c so that it calls out
	   to tga_cnmatch() if DEVICE_IS_TGA() matches before it decides
	   to attach the console as a TGA.

Addresses PR: port-alpha/12923
2001-07-16 00:55:16 +00:00
thorpej dcfd225d73 Defer sending shootdown IPIs a bit longer. Reduces traffic a fair
bit more.
2001-07-15 21:57:01 +00:00
ichiro 5cbb157eb8 initial commit UDA1341 CODEC 2001-07-15 20:19:31 +00:00
ichiro e5e13da17f Mapping the SSP registers 2001-07-15 17:18:53 +00:00
ichiro 5bc60be08a add handle of sc_ssph 2001-07-15 17:12:11 +00:00
thorpej ff62d4c0c5 - Tweak the pmap locking protocol slightly -- require that a pmap must
be locked before it can be marked as `active' on a processor.
- Require that pmaps other than the kernel pmap be locked when they
  are passed to pmap_tlb_shootdown().  This, combined with the locking
  protocol tweak, allow us to get a consistent view of `activeness' of
  a pmap, which means we can optmize away a lot of TLB shootdown traffic
  for user pmaps.
- Borrow an idea from the i386mp branch; use the normal SHOOTDOWN IPI
  to deal with hitting the entire TLB, and garbage-collect the TBIA
  and TBIAP IPIs.
2001-07-15 16:42:18 +00:00
fredette 7c89e5223a Added. 2001-07-15 16:29:29 +00:00
fredette b17cd016d5 Removed. It's easier to keep this file with MACHINE-specific
sources.
2001-07-15 16:28:55 +00:00
fredette 9308245f59 Replace vm_page_t with struct vm_page *. 2001-07-15 16:27:57 +00:00
ichiro fed0a40ba6 add definition I/Opins of UDA1341 2001-07-15 13:29:38 +00:00
ichiro cf1c37c9aa UDA1341TS economy audio CODEC for portable applications.
This is used for iPAQ CODEC.
2001-07-15 08:34:36 +00:00
takemura a0b378689f Suppress warning message:
warning: duplicate script for target "fp.o" ignored
And delete verbose ifs.
2001-07-15 06:38:07 +00:00
thorpej f79117f725 UVM never passes us a NULL pmap argument; remove that Mach VM leftover. 2001-07-15 05:24:20 +00:00
ichiro 60f2ec7ec1 enable extended gpio operation 2001-07-15 00:30:17 +00:00
matt 7a4fca28c6 Add a GOTSYM which emits the right stuff to GOT symbols under ELF and/or
a.out.
2001-07-14 18:24:41 +00:00
thorpej 6908e679ac Cosmetic change. 2001-07-14 17:55:42 +00:00
kanaoka 0158d481bd Add rnd, ppp and com* at pcmcia? function ?. 2001-07-14 17:02:57 +00:00
scottr 79e44b9f63 Hack writedisklabel() to re-read and analyze the Apple Disk Partition Map
to facilitate sysinst-based modification of the same.  From Bob Nestor.
2001-07-14 07:38:31 +00:00
matt 497b990687 Clarify when/where MACHINE & MACHINE_ARCH are defined. Add default
user-visible definitions.
2001-07-14 07:31:31 +00:00
thorpej 3eeb00e998 Oops, only register those event counters if the primary processor. 2001-07-14 05:48:45 +00:00
thorpej c022450f9c Instrument the lazy FP context switch path:
- fpevent_use is incremented the first time a process uses FP
  for the first time (note, FPUSED is inherited on fork, but
  cleared on exec).
- fpevent_reuse is incremented whenever a process that has previously
  used FP has to take a FEN trap in order to be able to use it again.
2001-07-14 05:10:38 +00:00
christos 825843808a add MACHO_MACHDEP_CASES 2001-07-14 03:05:51 +00:00
christos d6cbc8a99d add mach/macho files 2001-07-14 02:18:02 +00:00
christos 747d93e317 new i386 files for macho and mach. 2001-07-14 02:04:25 +00:00
christos 75dabe22c7 Use global descriptor 7 for mach traps. Unfortunately this is already
used by apm 16 bit code segments so we cannot have both at the same time.
2001-07-14 02:02:45 +00:00
christos 661d4f4564 Add COMPAT_MACH and EXEC_MACHO. Code works enough to start running a binary,
but we need to implement a few mach traps before the dynamic linker actually
works.
2001-07-14 02:00:39 +00:00
matt 24a2b394aa Make <sysarch.h> valid for all arm platforms. Adjust/remove port-specific
includes as required.
2001-07-14 00:23:09 +00:00
kristerw 42bb92201c Removed redundant (and slightly wrong) extern declaration of emul_svr4
(newer gcc complains that only one of the declarations are const.)
2001-07-13 23:32:26 +00:00
itojun ceb069ef00 sync with GENERIC 1.410. mention pkgsrc/sysutils/lambd. 2001-07-13 23:00:32 +00:00
fredette bb6c8bfadd Now mimic the sparc64's handling of NKBD/NSUNKBD and NMS/NSUNMS. 2001-07-13 22:27:02 +00:00
thorpej 335571bc61 Change the way we spin up CPUs. Now boot the CPU as soon as we
discover it, but make it block on a semaphore until the MI kernel
says that we can let the secondary processors loose.  This allows
us to announce the extensions on the secondary CPUs, and to compute
the intersection of all the extensions across all CPUs, like so:

cpu0 at mainbus0: ID 0 (primary), 21164A-2
cpu0: Architecture extensions: 1<BWX>
cpu1 at mainbus0: ID 1, 21164A-2
cpu1: Architecture extensions: 1<BWX>
2001-07-13 21:34:35 +00:00
matt c5e61ec6d5 Move user-visible MBUF constant here. Define MAXPHYS. Include DEV_BSIZE 2001-07-13 19:43:15 +00:00
uch 9b3338a9fe add ukphy 2001-07-13 16:27:48 +00:00
uch e71868d339 cosmetic changes. 2001-07-13 16:21:39 +00:00
uch eb255ec7a8 fix interrupt, voltage supply bug of channel 1.
(patch by Masanori Kanaoka).
2001-07-13 16:14:29 +00:00
ichiro 2d93d462a3 The definiton which overlapped was erased. 2001-07-13 06:54:35 +00:00
ichiro 073132a7b9 define GPIO alternate functions
They become effective by turning on GAFR.
2001-07-13 03:33:38 +00:00
thorpej d819792e68 Use memcpy() in kcopy(), copyin(), and copyout(). XXX This means we have
to burn 3 insns to swap the arguments.  Need to change the interface to
these routines to match memcpy().

G/C bcopy() from here.  We'll let it be provided by libkern (which is
what provides memcpy()) until bcopy() is exorcised completely.
2001-07-13 00:06:06 +00:00
thorpej 97d7c635b0 bcopy -> memcpy 2001-07-12 23:35:42 +00:00
thorpej 1dd3ea59f6 bcmp -> memcmp 2001-07-12 23:26:30 +00:00
thorpej 294259060c bzero -> memset 2001-07-12 23:25:39 +00:00
eeh 8210f5a2f2 Set up proper cache colors. 2001-07-12 23:13:15 +00:00
fredette cc468086e7 Fixed the known obio address range for the Multibus
machines to avoid bwtwo matching on obio.
2001-07-12 19:24:40 +00:00
scw d228a76237 Use PCB_ONFAULT instead of hardcoding a value of 64. This is fine
for Amiga and Atari but not for other m68k ports which use m68k/pcb.h.
2001-07-12 17:17:45 +00:00
reinoud 0d6f7550d9 A new setup for the fastboot file... a lot more clear. 2001-07-12 15:55:42 +00:00
matt d09cef0906 Gah!. Use the variable name (LINKENTRY). 2001-07-12 07:02:00 +00:00
matt b87f0f71b5 Allow ELF to be executed. Remove any depenence on a.out header. Instead
use etext & end to establish text and kernel size.
2001-07-12 07:01:12 +00:00
matt 84a6046c6c Add LINKENTRY makeoption for "-e nwstart" 2001-07-12 06:58:27 +00:00
matt 2d9f71a0d9 Fix a few things for NetWinder. NetWinder needs to override the
std entry point so add a hook for that.  Also pick up the port
specific .inc file from the right directory.
2001-07-12 06:25:07 +00:00
nathanw dda83b1771 Add the keyboard ID found on the American versions of the PowerBook G4 and
iBook (dual USB).
2001-07-12 04:16:58 +00:00
ichiro 6244e7b3a1 add more MCP status register definition 2001-07-12 03:58:35 +00:00
eeh 6d9a58bd0b Fix problems booting 32-bit kernels and dispatching level-15 interrupts. 2001-07-11 23:02:56 +00:00
eeh ec450c39d5 Fix math calculating the number of pages the kernel takes up.
Add some more asserts.
2001-07-11 23:00:02 +00:00
briggs d0dae0b07e Allow build with KGDB defined. 2001-07-11 22:11:29 +00:00
ichiro 4e28fbd762 add SA-1110 MCP(Multimedia communications Port) register definition 2001-07-11 16:02:25 +00:00
ichiro 88874f0037 add MCP control register1
this resides within the same address space as PPC
2001-07-11 15:56:00 +00:00
ichiro b5bb8c348f add MCP address register 2001-07-11 15:20:23 +00:00
ichiro d100f4ef02 regen 2001-07-11 10:00:08 +00:00
ichiro 6c04cf6b98 Upps, 3[16]XX -> H3[16]XX 2001-07-11 09:59:30 +00:00