Commit Graph

27953 Commits

Author SHA1 Message Date
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
ichiro
a97a7db97b regen 2001-07-11 09:57:29 +00:00
ichiro
d340add774 add iPAQ H3660 (64MB model) 2001-07-11 09:56:33 +00:00
ichiro
83d64d47f8 regen 2001-07-11 09:43:34 +00:00
ichiro
2a17f4b73c add iPAQ model H3100 2001-07-11 09:43:07 +00:00
toshii
ae6299f9d3 saip_sc (in struct sapcic_socket) is gone. 2001-07-11 03:54:19 +00:00
ichiro
83030a0348 cosmetic change, add more comment,
delete unused include file
2001-07-11 00:10:04 +00:00
ichiro
987e5b28ea I delete unused include file 2001-07-11 00:05:55 +00:00
chris
242cb56ca5 Fixup vidc files, VIDC_FREF is now vidc_fref. 2001-07-10 22:09:04 +00:00
bjh21
3eec98b7e8 Gratuitously print out the IOMD version at boot, since there's a register
for it.
2001-07-10 21:31:59 +00:00
bjh21
ea353a48e1 Purge CPU_ARM7500. Thanks to Reinoud's work, it's no longer needed. 2001-07-10 20:43:57 +00:00
leo
932578f354 Remove __BROKEN_CONFIG_UNIT_USAGE. 2001-07-10 20:23:36 +00:00
leo
522fff268d Nuke another cf_unit abuse. 2001-07-10 20:21:30 +00:00
bjh21
9c93fee83f Remove spurious inclusions of opt_cputypes.h. 2001-07-10 20:10:48 +00:00
ichiro
834543dabc ipaqlcd attach to ipaqbus 2001-07-10 18:10:46 +00:00
ichiro
034e3a0d6a moved sa11x0_lcd* to dev/ipaq_lcd* 2001-07-10 18:09:31 +00:00
toshii
124bde736e oops. two cookies are too much. use pcictag_cookie. 2001-07-10 17:35:15 +00:00
ichiro
f8f0c9040d I missed to add bus_space_tag_t mapping 2001-07-10 17:24:35 +00:00
ichiro
dcd782fb65 use sapcic_cookie 2001-07-10 17:23:18 +00:00
ichiro
e205409087 sapcic_socket shouldn't use ipaq_softc. use sapcic_cookie 2001-07-10 17:22:04 +00:00
ichiro
6952d8194a delete Extended-GPIOs mapping 2001-07-10 16:39:33 +00:00
ichiro
0d2e761def sa11x0_pcic* moved to arch/hpcarm/dev and renamed ipaqpcic* 2001-07-10 16:37:29 +00:00
ichiro
75f2a81776 sa11x0_softc -> ipaq_softc
because PCIC of sa11x0 moved to the bottom ipaqbus
2001-07-10 16:35:59 +00:00
ichiro
50ac712dbc add ipaqbus and ipaqpcic 2001-07-10 16:34:08 +00:00
ichiro
f408349001 add iPAQ virtual bus and PCIC of iPAQ 2001-07-10 16:31:52 +00:00
matt
0f5c5cb556 Add tlp* at pci? (for Netra X1). 2001-07-10 15:42:42 +00:00
kanaoka
9a9ba5a896 Add ukphy. 2001-07-10 15:33:18 +00:00
mrg
03faa7ca71 use CPU_READY(). add cross_call() code. 2001-07-10 15:15:24 +00:00
mrg
17f1119062 use CPU_READY(). disable smp_tlb_flush_*() for now; they hang. 2001-07-10 15:12:59 +00:00
mrg
cfde907d22 de-__P()ifify. prototype cross_call(). 2001-07-10 15:11:54 +00:00
mrg
781b07308a enable XPMSG_FUNC support. 2001-07-10 15:09:04 +00:00
mrg
8daf254cdc use CPU_READY() 2001-07-10 15:03:46 +00:00
mrg
7e7f85881b new CPU_READY() macro, determines if a CPU is accepting IPIs. 2001-07-10 15:02:50 +00:00
ichiro
4a84e3e7bd Separation of SA-11x0 GPIOs and iPAQ specific GPIOs. 2001-07-10 14:58:28 +00:00
eeh
51c13f6a22 Fix a 32-bit warning. 2001-07-10 06:06:16 +00:00
bjh21
d715053902 As far as I can tell "options IOMD" is never referenced, so remove it.
Anything that needs to know if we're building for an IOMD machine can check
NIOMD.
2001-07-10 00:52:29 +00:00
bjh21
55a4aace27 Use NIOMD to determine if we're on an IOMD system, rather than
RISCPC || CPU_ARM7500.  I think this removes that last substantive use
of CPU_ARM7500 in the kernel (hooray!).
2001-07-10 00:41:12 +00:00
bjh21
cf9453aeae iomd is marked "needs-flag", and this file is conditional on iomd, so
NIOMD == 1 whenever this file is included.  Don't bother asserting it.
2001-07-10 00:36:10 +00:00
bjh21
838c7e36a1 Remove a confused (probably outdated) comment. 2001-07-10 00:09:44 +00:00
bjh21
469339d93c Clean up some cruft left behind (but AFAIK never used) from poduleirqhandler(). 2001-07-10 00:04:30 +00:00
bjh21
368f9c15c1 Remove another spurious #ifdef CPU_ARM7500. 2001-07-09 23:35:58 +00:00
reinoud
8ca7d6ec9c Initial commit for merging A7000/NC with the RISCPC in order to get _one_
bootable GENERAL kernel for the 3 machines.

This is done by integrating the ARM7500 in a better way. In various places
the IOMD ID is checked and action is taken at runtime compared to
compiletime.

The small piece of assembler that is changed now uses the flag
`arm7500_ioc_found' that is set up by iomd.c at startup. When this chip
isnt found at startup it will skip reading the ARM7500 extended IRQ
registers and wont clear them either.

The next step will be getting the mode-definition files to the bootloader.
Currently they are compiled in.
2001-07-09 21:46:19 +00:00
reinoud
1f5b07de6a Changed the variable within the ARM6 late abort section from cpu_ctrl to
cpuctrl ...
2001-07-09 19:51:14 +00:00
uch
197743b640 remove unnecessary includes, initialize. 2001-07-09 18:18:25 +00:00
wiz
3aec94a3e1 Fix comments for EXEC_AOUT and EXEC_SCRIPT. 2001-07-09 16:09:02 +00:00
soren
ce3293accb ncr(8) is gone from the tree, so remove ^#ncr*. 2001-07-09 15:05:22 +00:00
leo
7a2ca439a7 defopt atari scsi options. 2001-07-09 14:49:49 +00:00
leo
7a68fa7e1d Regen. 2001-07-09 14:01:09 +00:00
leo
3c70de7dc9 Remove Ident. 2001-07-09 13:37:38 +00:00
leo
21315cd1f5 Add SysV Semaphore tunables. 2001-07-09 13:37:06 +00:00
leo
9c4c15292b Nuke some cf_unit abuses. 2001-07-09 12:06:35 +00:00
toshii
c90ac4b756 Sync with rev. 1.5 of sa11xx_pcicvar.h. 2001-07-09 06:20:31 +00:00
toshii
57755d7760 sapcic_socket shouldn't use sacc_softc, use opaque data type instead. 2001-07-09 05:19:05 +00:00
thorpej
ce8c5df2c6 Count and display the number of CPUs present on the system. 2001-07-09 02:00:19 +00:00
simonb
5d17649545 bcopy -> memcpy 2001-07-09 01:43:26 +00:00
thorpej
8ea809324e Fill in cpu_model[] 2001-07-09 00:30:35 +00:00
thorpej
af0e157b66 - Use the identifier strings that are fetched by the MI ARC BIOS
code.
- Garbage-collect some non-useful stuff from the mainbus_attach_args.
2001-07-08 23:59:31 +00:00
rjs
72c860d841 Initial copy of SA11x0 support from hpcarm. 2001-07-08 23:37:52 +00:00
rjs
35dc2ba462 Initial copy of SA11x0 support from hpcarm. 2001-07-08 23:20:04 +00:00
eeh
9481b31f8f Code cleanup. Add block_disable to let you turn on block set/copy routines. 2001-07-08 21:05:11 +00:00
thorpej
edeeafe82b bcopy -> memcpy, bzero -> memset 2001-07-08 21:04:50 +00:00
thorpej
2b351e4a6f - If the multicast address list changes, make sure to kick the chip.
- Remove unnecessary includes.
- Slight cosmetic change in sq_start().
2001-07-08 20:57:34 +00:00
thorpej
e9fd7a6a2b Use sys/dev/arcbios. 2001-07-08 20:30:13 +00:00
chs
b86053cc53 clean up pmap_k{enter_pa,remove}():
a page is allowed to be mapped normally when k-mapped.
use UVM_PGA_ZERO to get zeroed pages rather than zeroing here.
2001-07-08 19:44:43 +00:00
perry
4ae18c882f Since setrunqueue and remrunqueue now have documentation, remove my
obnoxious comments saying they should be documented, and reference
setrunqueue(9) and remrunqueue(9) instead. Thanks Nathan!
2001-07-08 19:33:44 +00:00
wiz
cc0b68092e Correct various misspellings of 'transfer' and inflected forms. 2001-07-08 18:06:42 +00:00
uch
ebad8fb5d8 when "safety message" check box is not checked, no symbol kernel is
loaded to memory silently. (its MessageBox will bother)
2001-07-08 17:19:02 +00:00
uch
4f4b4d40ed I forgot to commit. std.hpcsh.el -> std.hpcsh 2001-07-08 17:02:36 +00:00
abs
8b9a19cb3d Leave TCP_DEBUG commented out _everywhere_.
Time to replenish clueon charge with caffine...
2001-07-08 16:36:11 +00:00
abs
29dcb5e3f6 (Regenerated atari and amiga)
Standardise TCP_COMPAT_42 as commented out, grouped with other COMPAT options,
and with the comment '4.2BSD TCP/IP bug compat. Not recommended'
Add commented out 'TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG'
(All hail amiga and atari which make some attempt to automate the
multiplicity of config files...)
2001-07-08 16:34:03 +00:00
abs
01b024cd5b Standardise TCP_COMPAT_42 as commented out, grouped with other COMPAT options,
and with the comment '4.2BSD TCP/IP bug compat. Not recommended'
Add commented out 'TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG'
(All hail amiga and atari which make some attempt to automate the
multiplicity of config files...)
2001-07-08 16:32:12 +00:00
mrg
184c606354 modify setpgt4m_va() to clean up (remove) several #ifdef MULTIPROCESSOR points.
catchup pmap_kenter_pa4m() and pmap_kremove4m() with SMP safe PTE updates.
2001-07-08 15:58:42 +00:00
bjh21
260f6ffe33 Remove the old Ether3 and EtherB drivers, since the new ones seem to work fine. 2001-07-08 15:41:55 +00:00
uch
1a5b55dce9 dont' round up physical memory size. 2001-07-08 15:15:25 +00:00
rearnsha
471acbf74f Fix a couple of minor merge botches from the new scsipi merge.
More minor formatting tidyups.
2001-07-08 14:50:05 +00:00
ichiro
89ebce9618 comment out: bus_space_write_2 2001-07-08 14:45:36 +00:00
ichiro
ec7a32a628 cosmetic change 2001-07-08 14:45:03 +00:00
ichiro
320adf2df7 comment out: bus_space_write_2 2001-07-08 14:43:52 +00:00
ichiro
0e7c688b67 add definition of EGPIO_LCD_INIT 2001-07-08 14:41:14 +00:00
uch
b0b7628145 remove redundunt header include and function declaration.
(pointed by MAEKAWA Masahide.)
2001-07-08 10:42:37 +00:00
ichiro
9e80e9aca3 fix and fill Extended-GPIO 2001-07-08 10:36:31 +00:00