Commit Graph

28660 Commits

Author SHA1 Message Date
fvdl 5b6f2046cc Add MTRR option. 2001-09-10 10:17:29 +00:00
fvdl 30bd1cf759 Clean up 'volatile' MTRRs owned by a process when it exits. 2001-09-10 10:14:57 +00:00
fvdl 5b0257ed49 Backend for MTRRs on PII and up or Athlon CPUs. The only other implementation
is on the AMD K6.
2001-09-10 10:14:21 +00:00
fvdl 86b144f468 Syscall frontend for mtrr functions. 2001-09-10 10:13:04 +00:00
fvdl 38db8748a4 Initialize MTRRs on startup if they're enabled. 2001-09-10 10:12:16 +00:00
fvdl 78742dd0e0 Add flag to indicate that a process set some mtrrs that need to be
cleaned up automatically on exit.
2001-09-10 10:11:21 +00:00
fvdl c823d05ca0 Add definitions for mtrr syscalls. 2001-09-10 10:10:57 +00:00
fvdl e0a68652a8 MTRR include file, based on the one by Bill Sommerfeld from the i386 mp
branch.
2001-09-10 10:10:33 +00:00
fvdl a46fbfc5a8 Add agp device. 2001-09-10 10:08:40 +00:00
fvdl d106bb1f19 Add agp files (enabled only on i386, but the main code itself should not
be MD, so could be enabled on other platforms).
2001-09-10 10:08:10 +00:00
fvdl 2c8172cbd3 Attach agp gart support @ pchb. Not very clean, but agp support may
be spread over several devices, and the phcb is usually the main one.

Add agp_machdep.c file which implements MD agp functions (currently
just agp_flush_cache).
2001-09-10 10:06:54 +00:00
msaitoh 78db8b9715 add missing check for framing error 2001-09-10 08:50:33 +00:00
perry edea1a2c17 Make it possible to query each battery individually by making the
APM_IOC_GETPOWER ioctl read/write. Setting the batteryid in the passed
structure returns the data for just that battery. The old ioctl
remains for binary compatibility but has been renamed.

Itojun already did the hard work -- I just added a couple of lines.

reviewed by: thorpej
2001-09-10 05:23:30 +00:00
reinoud a425cc29ac Make it compile again if for some configuration there are no FIQ's ... It
complained about the unused label.
2001-09-10 02:21:42 +00:00
reinoud 7bace466ad Initial commitment of the bus_space_mmap() functions as proposed by Jason R
Thorpe as an extension to the bus_space(9) API.

Only the mainbus has a working mmap... iomd, podulebus and isa dont have
one yet. Its trivial to add the iomd and isa's memory part but am a bit
hessistant to add it without knowing its implications by heart.

Podulebus might be implemented in 32 bits EASI but otherwise its not really
transparent since there is AFAIK no function to explicitly read one byte or
so .. or is this implemented in a higher level ?

ARM26 and arch/arm32/dnard (Shark) kernels compile and RiscPC and Shark
kernels are tested and function OK.

Implications of other ARM systems like hpcarm and ebarm are propably
minimal or solved trivially.
2001-09-10 02:20:19 +00:00
matt 97c7e7fe8d Always include -Wno-main 2001-09-09 22:53:02 +00:00
chs 7d353e82b0 - in PMAP_IS_ACTIVE(), the kernel pmap is always active, and we don't
need to check for curproc being non-NULL since none of the pmap
   interfaces which are legal to use in interrupt handlers use this macro.
 - use the hit op when flushing the cache in pmap_kremove().
 - avoid trusting the optimizer in pmap_clear_reference().
 - fix pmap_clear_modify() to reset the mod-bit emulation so we can
   detect further modifications to the page, also flushing the cache
   for any mappings which might have dirty lines.
2001-09-09 19:48:12 +00:00
perry fe9074d8dc boost maximum MAXUSERS to 128 2001-09-09 18:36:36 +00:00
bouyer a4638cc6d5 Properly initiatize sc->sc_wdcdev.set_modes for non-DMA controllers. 2001-09-09 16:08:49 +00:00
reinoud 180a40eb5b A long int for kernel sizes is a bit overdone for an arm32 ... make it
compile again by changing the format string to use ints.
2001-09-09 15:15:14 +00:00
tls 3d4146e21f Add asm versions of blowfish and des transforms for i386.
This also involved updating the in-kernel DES functions to correspond
to the versions in our in-tree OpenSSL, because the des_SPtrans table
has changed; the asm code will not work with the old permutation table!

C and i386 asm code for the DES, 3DES, and Blowfish CBC modes is also
included; it is not currently built as the ESP processing in esp_core.c
splits the CBC operation and the cipher transform apart.  Hopefully that
will be fixed as there is a substantial performance improvement to be had
from doing so.  It will remain necessary to use the C version of the
Blowfish CBC function on some i386 machines, however, as the asm version
uses bswapl, which ony 486 and later processors have.  The DES CBC code
doesn't have this problem.

Finally, change esp_core.c to use the ecb3_encrypt function instead of
calling ecb_encrypt three times; this improves performance a bit, in
particular in the asm case.
2001-09-09 11:00:59 +00:00
toshii 7c9e82d6e3 Don't define pcb_* register macros.
pcb_sp macro conflicts with sys/netinet6/ipsec.c.
2001-09-09 10:33:42 +00:00
toshii 9665c1bcc3 Use arm/arm32/vm_machdep.c instead of hpcarm one. 2001-09-09 09:59:24 +00:00
toshii b45ffd445a Readd sacom to cdevsw. 2001-09-09 09:54:13 +00:00
toshii 17e80273eb #include "sacom.h" for constab[]. 2001-09-09 08:07:36 +00:00
matt 8402e4d93f Fix a missing restore interrupt. disable interrupts around pvo_enter in
pmap_kenter.  Shouldn't be needed but ...
2001-09-09 04:35:22 +00:00
simonb a41b7a380e Clean up and standardise across MIPS ports. 2001-09-09 04:20:25 +00:00
enami d182b51372 Don't print extra space when printing information about cpu of unknown vendor.
# and minor stylistic change while i'm here.
2001-09-09 02:10:44 +00:00
enami bab65a8da3 Mix random data directly into the pool and increase entropy instead of
estimating entropy with polling based timing.
2001-09-09 00:48:54 +00:00
thomas 35ad82f0df Make the bootloader ELF aware.
It can load either a.out or ELF, depending on compile options.
2001-09-08 16:57:09 +00:00
thomas b2990af499 ELF adaption. 2001-09-08 11:21:02 +00:00
thomas f433d91346 Now the default ecexutable is ELF.
Add COMPAT_AOUT_M68K to GENERIC options.
2001-09-08 11:19:06 +00:00
thomas d059704139 ELF adaption, clockframe must be packed. 2001-09-08 11:16:43 +00:00
thomas e97e2309f0 ELF abaption. 2001-09-08 11:15:35 +00:00
thomas eb5341b79a Some ELF adaption. 2001-09-08 11:14:33 +00:00
thomas f34c1c216e Return a useful exit status. 2001-09-07 23:09:36 +00:00
sato 9545f31823 initial support of vr4131 bcu. 2001-09-07 16:06:03 +00:00
sato a18f21f23e VR4131 have same restriction as VR4122. 2001-09-07 16:04:03 +00:00
sato 5e44e9de0e add VR4131 releated definisions and change. 2001-09-07 16:02:56 +00:00
tsutsui 66187ea9e9 Fix function names in panic messages. 2001-09-07 10:35:59 +00:00
lukem cb33448ead use options SPACE TAB 2001-09-07 00:18:27 +00:00
thorpej b42556773f Driver for the Dreamcast mouse, based on the programming info
on Marcus's web site.

Not yet thoroughly tested, but does appear to generate events
that look okay.
2001-09-06 22:07:39 +00:00
fredette 2468247eff In _bus_dmamap_load, now check the return value of pmap_extract
under DIAGNOSTIC, and fixed a bug where we weren't putting the
right size into a newly valid map.
2001-09-06 21:38:40 +00:00
nathanw 78d8966e59 Remove the infamous "DANGER WILL ROBINSON: FEN SET in cpu_fork!"
diagnostic. It's not indicative of an error condition.

The code sequence in question calls fpusave_proc(), which ultimately
calls alpha_pal_wrfen(0), which clears the FEN bit in the current
PCB. However, the diagnostic message is based on reading that bit from
the PCB representation in memory, which is not guaranteed to be kept
up-to-date with respect to the real PCB contents. According to the
AARM, third edition, II-B 4.2:

"If the PCB is read while ownership resides with the processor, it is
UNPREDICTABLE whether the original or an updated value of a field is
read."

The Alpha architecture does not provide a way to read the true value
of the FEN bit of the current PCB, so the test is simply removed.
2001-09-06 21:20:43 +00:00
thorpej 2d2a66209d Indent. 2001-09-06 20:04:49 +00:00
fredette b1b29ae867 Added -D__SVR4_ABI__ to XDEFS. Without it, m68k libkern assembly
functions don't return pointer values in %a0.
2001-09-06 20:04:16 +00:00
augustss 283601a95c Comment out tr at pcmcia. 2001-09-06 13:29:29 +00:00
leo 558c39f10c Changes for Chuck Silvers:
implement pmap_k{enter_pa,remove}() correctly.
  remove various checks for impossible conditions.
  other misc cleanup.
2001-09-06 06:27:54 +00:00
leo 975c7a2466 Make this finally compile again. It hasn't worked since the C_LABEL() got in. 2001-09-06 06:24:17 +00:00
thorpej b6783070d6 Don't require tp->t_dev to be filled in in cold_sccparam(). 2001-09-06 06:18:40 +00:00
thorpej 6203b547a5 Garbage-collect all the (outdated and totally useless) pmax stuff
in this code.
2001-09-06 05:31:49 +00:00
nathanw 2b5671fb41 The return address register ($ra) is callee-saved, not caller-saved. 2001-09-05 20:12:53 +00:00
thomas 42f770df19 Make the bootblocks build with ELF assembler. 2001-09-05 19:48:12 +00:00
matt ff5f5ea027 Don't compile SPL/INTR stuff if NEWINTR is defined. 2001-09-05 17:08:41 +00:00
matt 779b9b4649 Fix some register definitions. 2001-09-05 17:05:36 +00:00
matt 2df33a5b6b Add a NEWINTR option to reflect the new interrupt/spl being implemented in
evbarm.
2001-09-05 17:00:20 +00:00
matt 0b5b9ca90e Change <machine/irqhandler.h> to <machine/intr.h>. Change
{irq,fiq}handler_t to struct XXXhandler
2001-09-05 16:23:10 +00:00
matt 792b7ebd13 Change <machine/irqhandler.h> to <machine/intr.h> since the latter always
includes the former and is a standard include file.
2001-09-05 16:17:35 +00:00
matt c9fd88afcf Don't clean the minidata cache by default on XScale. 2001-09-05 16:14:49 +00:00
matt 4370f884b2 Flesh XSCALE support. 2001-09-05 16:13:18 +00:00
matt 78944c67e3 Add an obio bus. 2001-09-05 16:12:36 +00:00
sato 3198fedb64 add VR4131 infomation. 2001-09-05 16:08:46 +00:00
sato 4891a8aac2 add more battery event. 2001-09-05 15:46:52 +00:00
sato e085d9eae5 add option VR4131 2001-09-05 15:46:10 +00:00
tsutsui 38c6005c47 obio_find_mapping() takes PA. (missed in the previous commit) 2001-09-05 14:26:08 +00:00
tsutsui 1abb4c9be6 bcopy() -> memcpy(), bzero() -> memset() 2001-09-05 14:18:10 +00:00
tsutsui fa5d9f83c2 bcopy() -> memcpy(), bzero() -> memset() 2001-09-05 14:03:48 +00:00
tsutsui 714fc1c519 - bcopy() -> memcpy(), strcpy()
- bcmp() -> (static inline) ether_cmp()
- 6 -> ETHER_ADDR_LEN
2001-09-05 13:55:27 +00:00
tsutsui 0427bd63a4 Remove register prefixes. 2001-09-05 13:35:30 +00:00
tsutsui fb91456ba6 vm_offset_t -> vaddr_t 2001-09-05 13:31:36 +00:00
tsutsui a02361c8d9 vm_offset_t -> db_addr_t 2001-09-05 13:30:24 +00:00
tsutsui eabd6921ca Remove register prefixes. 2001-09-05 13:27:53 +00:00
tsutsui 7fabaaf7e8 - vm_offset_t -> vaddr_t, vsize_t, paddr_t
- vm_size_t -> vsize_t
- remove register prefixes
- misc cleanup
2001-09-05 13:21:09 +00:00
tsutsui 573961b5bb - vm_offset_t -> [pv]addr_t
- vm_size_t -> vsize_t
- remove register prefixes
2001-09-05 12:37:25 +00:00
tsutsui 0637b20a58 vm_offset_t -> [pv]addr_t (sync with sun3x/pmap.c rev 1.69) 2001-09-05 12:15:21 +00:00
tsutsui 6d1cb2df8e Add pcn(4), sip(4) and tlp(4).
XXX epic(4) seems to have problem, while it works on macppc...
2001-09-05 11:54:43 +00:00
matt 1bf6aa62be more evbarm files (very incomplete). 2001-09-05 04:53:39 +00:00
wiz b2365a9603 Typo fix (specifc instead of specific). 2001-09-04 21:46:11 +00:00
wiz b940fa8a83 Fix typos (CONS instead of CONF, and specifc instead of specific). 2001-09-04 21:45:19 +00:00
thorpej 81bcece4d4 Implement bus_space_mmap(). 2001-09-04 16:32:42 +00:00
thorpej 4ce0b90ae3 Typos, pointed out by Luke Mewburn (gee, I guess I built a kernel
other than GENERIC).
2001-09-04 16:14:49 +00:00
matt c9706a6175 include "fcom.h" since this is the only cats-specific device. 2001-09-04 14:47:05 +00:00
chris 55ccaa806a Fix typos in conf.h. This stops the kernel from panicing on boot. 2001-09-04 10:21:28 +00:00
simonb c3c682fc46 Oops, <sys/sched.h> isn't asm safe, move inside an "#ifndef LOCORE" block. 2001-09-04 09:23:27 +00:00
sato 0d347adcef regen. 2001-09-04 08:46:59 +00:00
sato b6f32dcf67 add VR4131 and some cpu.
add sigmarion2, MPC-304 and so on.
2001-09-04 08:46:39 +00:00
simonb 099f117735 Standardise the format of MIPS' <machine/db_machdep.h>. 2001-09-04 07:43:29 +00:00
simonb a04de48d4b Remove comment duplicated in <mips/bsd-aout.h>. 2001-09-04 07:36:11 +00:00
simonb 9c54b886a2 Make this the same as the other MIPS ports; ok'd by Wayne Knowles. 2001-09-04 07:24:23 +00:00
simonb 7970ec8018 More RCS ID cleanup. 2001-09-04 07:22:03 +00:00
simonb 156b308a83 Remove some more useless RCS ids. 2001-09-04 07:12:28 +00:00
thorpej a08af3853a Implement bus_space_mmap(). 2001-09-04 06:57:26 +00:00
simonb c91e08563f Clean up. 2001-09-04 06:26:18 +00:00
simonb 3839989a12 Remove unneeded RCS header. 2001-09-04 06:24:54 +00:00
simonb 62fb390c64 May as well include <mips/cpuregs.h> in <mips/cpu.h> once rather than
in every MIPS port's <machine/cpu.h>.
2001-09-04 06:23:15 +00:00
simonb 214f5366ea Centralise struct cpu_info declaration and related info to <mips/cpu.h>. 2001-09-04 06:19:21 +00:00
thorpej 102190b8fe Implement bus_space_mmap(). 2001-09-04 05:31:27 +00:00
nisimura 1bd02088cf + include "dev/wsfont/files.wsfont" for VGA change. 2001-09-04 02:59:32 +00:00
thorpej 47920741b0 Implement bus_space_mmap(). 2001-09-04 02:37:08 +00:00
matt 3c50edd8fb Switch hpcarm to common arm32 conf.c ; (small changes to vm_machdep.c to
make it compile under ELF)
2001-09-03 19:38:13 +00:00
matt 7ce6450eac Add a merged <pcb.h> for arm26/arm32. 2001-09-03 19:20:27 +00:00
thorpej f5c35acc6c Eliminate a needless test, pointed out by Bill Sommerfeld. 2001-09-03 17:49:31 +00:00
drochner fd065bcd87 add wsfont pseudo device 2001-09-03 17:18:22 +00:00
tsutsui cc46ca4327 Add more working PCI devices on arc:
pcscp* at pci?
 epic* at pci?
 pcn* at pci?
 rtk* at pci?
 sip* at pci?
and remove le at pci, which is superseded by pcn.
2001-09-03 14:39:08 +00:00
mrg be4df68bb5 don't explicitly size the intrhand[] array; fixes PR#13859 from <martti.kuparinen@iki.fi> 2001-09-03 13:07:21 +00:00
matt 9b16bbab9f Move constab from conf.c to autoconf.c (since conf.c is going away shortly). 2001-09-03 05:02:18 +00:00
matt e940b67ae4 Use new shared arm/arm32/conf.c 2001-09-03 04:28:51 +00:00
matt d7c7a3ea02 Add __ELF__ stuff for resized types under ELF. 2001-09-03 01:51:39 +00:00
matt b0f89169ee Switch netwinder to use a common conf.c for the arm ports. 2001-09-03 01:50:00 +00:00
matt cc353c4912 Sync hpcarm & arm32 conf.c (this entails shifting the i4b major numbers
up by one on arm32 and and adding notdef entries on hpcarm).
2001-09-03 01:33:38 +00:00
uwe 73b5928070 _bus_dmamap_load_mbuf: panic with correct function name. 2001-09-03 01:14:14 +00:00
matt 64bde37d3a com (16550) attachment for iq80310 2001-09-02 18:50:13 +00:00
tsutsui 1f2768852a Enable siop at pci. 2001-09-02 08:27:07 +00:00
mrg 3ec1b99028 place the main chunk of POWEROFSEVEN's config into the .inc file, and have
the 32 and 64 files define MACHINE_ARCH, CC, LD and AS appropriately to build
a 32 or 64 bit kernel, respectively.  this allows either to be built on a
system that can generate 32 or 64 bit code.
2001-09-02 05:53:38 +00:00
eeh 2102cef10c Add an entry for level-15 interrupts. 2001-09-02 01:45:47 +00:00
eeh 87bb8014dc Get rid of all simba references. 2001-09-02 01:18:56 +00:00
atatat 5f25c01eff Comment out bridge pseudo devices from ports that don't
__HAVE_GENERIC_SOFT_INTERRUPTS.  bridge(4) doesn't compile there.
2001-09-01 23:08:40 +00:00
atatat 97c67a9bae Add bridge pseudo devices to GENERIC configs 2001-09-01 21:52:23 +00:00
chs 8677b0ddf4 rearrange pmap_kenter_pa() to map unmanaged pages uncached as well.
this is apparently needed on the arc port.
slight optimization in pmap_kremove().
2001-09-01 17:08:19 +00:00
msaitoh d3e7333a60 s/cpu_startup/sh3_startup/g in panic messages 2001-09-01 03:02:31 +00:00
martin c51e03edde Move struct segmap declaration inside #ifndef _LOCORE to make locore.s
compilable again.
2001-08-31 18:06:13 +00:00
eeh 5783dd5873 instance-to-path works on instances not nodes. 2001-08-31 17:10:54 +00:00
eeh ed373b780a Change data segment size calculations so we don't need to resize if the
bootloader did it for us.
2001-08-31 16:47:41 +00:00
simonb 023bdd2bf2 Use comments around the token after a #endif. 2001-08-31 04:44:54 +00:00
simonb e5b3cbb4cd Use comments around the token after a #endif. 2001-08-31 04:18:52 +00:00
simonb a6b8c86af0 Remove an unneeded comment; ``sync'' with other "just include <mips/foo.h>"
files.
2001-08-31 03:53:22 +00:00
simonb 4ac4da1c52 G/C the unused kernel-only CLK_TCK #define.
XXX: does include/time.h still need <machine/limits.h>?
2001-08-31 03:46:03 +00:00
eeh 84fb62aba0 Handle kernels with data+BSS segments larger than 4MB. 2001-08-30 23:00:19 +00:00
eeh f2e3486b5b Preliminary UltraSPARC III suport (not enabled yet). 2001-08-30 22:58:30 +00:00
matt 04bdd02c1a Make pmap_pte_insert STATIC so it will show up in DEBUG kernel with DDB
traces.
2001-08-30 22:06:44 +00:00
matt 4a580ee45e Make sure to restore SR 0 since returning from a syscall is actually
one way of doing a process context switch.
2001-08-30 22:00:48 +00:00
matt a140263932 Add new 7450 SPRs 2001-08-30 21:55:27 +00:00
matt 50b056bc3a Teach db_trace that some low addresses are ok to trace. 2001-08-30 21:44:58 +00:00
rearnsha 46f383bde2 Adjust printf format string for size_t change. 2001-08-30 17:16:02 +00:00
mrg 10516949e9 add some sun4/sun4c/sun4m compat code so we can build 32 bit kvm. (these files are not even vaguely syncable.) 2001-08-30 09:32:23 +00:00
briggs 89829e4825 defines for OPENPIC_ICR / serial mode. 2001-08-30 03:08:52 +00:00
briggs 0ea9d87eb1 Create an opt_openpic.h and add both OPENPIC and OPENPIC_SERIAL_MODE to it. 2001-08-30 03:08:22 +00:00
briggs f05abdee3c - Change default time frequency to 100MHz from 66MHz.
- Support the serial mode interrupts (with a kernel configuration option)
  on the Sandpoint X3.
- Initialize cpu_timebase.
- Enable tulip driver.
2001-08-30 02:08:42 +00:00
matt e4892d7157 When invaliding single icache line on XScale, the branch target buffer
also needs to be invalidated.  Also, but in the right sequence to empty
the pipeline on XScale.
2001-08-30 01:15:39 +00:00
simonb 352f878e45 Gah, fix a number of channel status/select bitfields. 2001-08-29 23:32:21 +00:00
nathanw 4666070137 Correct a comment: The address of the signal handler is passed to the
sigcode trampoline in pv (t12), not a3, and has been since the
beginning of time.
2001-08-29 20:17:08 +00:00
briggs c50646a1f3 Add adw 2001-08-29 17:37:47 +00:00
itohy a0f0f74348 Print extra information on machine check (AS500, AS600). 2001-08-29 14:14:33 +00:00
tsutsui ab8b3ce5d3 Remove descriotion about homegrown sonic driver from TODO list
since it has been replaced with the MI driver.
2001-08-28 15:17:47 +00:00
eeh b14bf2ceef Fix incorrect parentheses. 2001-08-28 14:51:28 +00:00
ad d46bbf4926 In the absense of any objection, move the rbus I/O range to 0x600-0x700
in the ARMADA config. On the M700 at least, the SMBus host controller lies
it 0x4000 (the beginning of the range allocated by default to rbus), and
stomping all over it causes bad things to happen.
2001-08-28 09:25:52 +00:00
matt df0327518e Add evbarm, ibmnws, mvmw88k, m88k 2001-08-28 05:59:48 +00:00
matt dfbb14ad68 __syncicache needs to be exports to userspace as well as the kernel. 2001-08-28 03:03:43 +00:00
eeh 2879b54794 Enable some additional useful options like NFS_SERVER and RAID. 2001-08-28 02:43:49 +00:00
simonb 2d4d9f7fdc Stop pci_configure_bus() from mapping PCI expansion ROMs. Fixes problems
with at least some sip (and possibly siop) cards on the walnut.
2001-08-28 01:35:06 +00:00
augustss 494454a87d Comment out the hme driver; it's not totally MI yet. 2001-08-27 22:25:42 +00:00
augustss b5937bf1d0 Add some missing network drivers. 2001-08-27 22:23:47 +00:00
eeh 228006bcc3 Add the driver for the LMC WAN adapter. 2001-08-27 18:52:09 +00:00
fredette 1676190cef adjust the hack to build the SRT*.o files. 2001-08-27 13:07:03 +00:00
kanaoka 3b4f143fd8 - Correct a value of subend.
Pointed out by enami tsugutomo <enami@but-b.or.jp>.
2001-08-27 13:02:12 +00:00
augustss 0432180062 Add 7 new PHYs. 2001-08-27 12:08:00 +00:00
chris 37fb92dcab Remove unused entries from the pcb. This is with a long term view of merging the arm26 and arm32 pcb's. 2001-08-27 11:39:43 +00:00
haya 31d98218e8 Add support for ALi M1543 in pcibios. 2001-08-27 08:21:20 +00:00
simonb bbe2823aee ANSIfy, KNF. 2001-08-27 06:18:08 +00:00
briggs 0667ea6c1c text address is 0x90000, not 0x9000. 2001-08-27 04:53:27 +00:00
nisimura df657b5158 Count and record memory error interrupts with evcnt(9). 2001-08-27 02:00:16 +00:00
matt edc83ba7f4 Add xscale cpufuncs (using the sa110 ones when they are identical). 2001-08-27 00:00:27 +00:00
matt e8f317bba8 Add xscale cpu functions 2001-08-26 19:41:57 +00:00
matt 4e642cc5fd Add i80312 register definitions (just registers for now). 2001-08-26 19:25:47 +00:00
matt 08f4bcddf3 files file for xscale (i80312 aka iopxs) 2001-08-26 19:19:09 +00:00
fredette d77c828c64 Fixed a bug processing options - we were ORing
an uninitialized auto into boothowto.
2001-08-26 18:39:15 +00:00
fredette 6682ab1fbf Under __ELF__, getvbr must return its pointer value
in %a0, not %d0.  This fixes many problems with
getting the PROM to halt and reboot the machine.
2001-08-26 17:12:11 +00:00
simonb 9d7facdb6e Yanking a pmax-specific header should not have broken Alpha
compiles!  Remove all pmax include files, copying 'struct pdma'
from <pmax/dev/pdma.h> into sccvar.h.

XXX: diffs between current pmax and alpha scc.c are almost as large
     as the files themselves.  Should clean this up...
2001-08-26 16:39:56 +00:00
tsutsui 62c3bdeea4 sysctl(2) -> sysctl(3) (in comments) 2001-08-26 16:22:20 +00:00
tsutsui e1921cd311 Add one more pmap_update() missed in rev 1.14. 2001-08-26 16:05:25 +00:00
bjh21 6825e7d5ea Garbage-collect pcb_onfault_lj, since it's unused and doesn't exist on
arm32 ports.
2001-08-26 14:15:07 +00:00
bjh21 66da5fecf2 KASSERT the presence of a FIQ downgrade handler before we try to call it. 2001-08-26 12:25:38 +00:00
bjh21 9c45cae8df Make cmos_read() and cmos_write() globally visible, and make the instance
they operate on implicit.  Also, stop abusing cf_unit, and remove a vast
swathe of unused code.
2001-08-26 12:24:24 +00:00
bjh21 0ff76b5187 Add fiq_off() and fiq_on(). 2001-08-26 12:20:59 +00:00
mrg e309f80412 remove bogus comment. noted by Tetsuya Isaki <isaki@par.odn.ne.jp> in private email. 2001-08-26 12:14:22 +00:00
ad 5bfd050aa7 Fix typo. 2001-08-26 12:05:55 +00:00
simonb cddf6cf55b Switch to MI SCSI and drop old pmax MD SCSI support completely. 2001-08-26 11:47:18 +00:00
simonb 47bb32d470 Use the common Makefile.powerpc. 2001-08-26 11:00:07 +00:00
simonb 7ec91f6656 Include ${THISPPC}/conf/Makefile.${TARGET_MACHINE}.inc if it exists (ala
mips' Makefile.mips).
2001-08-26 10:59:26 +00:00
chs a026d7bc78 handle unmanaged pages correctly in pmap_remove_pv(),
fixes crashes when exiting X.
2001-08-26 06:03:11 +00:00
eeh 90ce2985e4 Do a more accurate compare. 2001-08-26 05:46:31 +00:00
eeh 5b0492f05e Fix debug printf. 2001-08-26 05:44:46 +00:00
mhitch ba61a3cc19 Fix memsize_scan() - cut and pasted code can't use physmem because it hasn't
been set yet.
2001-08-26 05:16:52 +00:00
matt 550ffff41b Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports.  Make
other mpc6xx ports use it.  Add evcnts for mpc6xx traps.
2001-08-26 02:47:33 +00:00
chs d0e2aef09a add register prefixes. no change in generated .o files. 2001-08-25 23:08:39 +00:00
is e2ad09e624 synchronize (addition of repulse driver). 2001-08-25 21:19:20 +00:00
is bd5a12de41 Driver for the ALiENDESiGN Repulse board.
- only 8/16 bit precision supported
- no support for the Repulse special S/P-DIF I/O yet
- I think ac97.c needs some work.
2001-08-25 21:15:44 +00:00
chs 753f885263 add register prefixes in asms. 2001-08-25 21:14:44 +00:00
chs db7d3946ac add register prefixes. no change in generated .o file. 2001-08-25 21:08:02 +00:00
chs d38ac3477c remove -mwarn-no-reg-prefixes, it doesn't work with new gas. 2001-08-25 18:57:37 +00:00
chs 6fbd291760 add COMPAT_AOUT_M68K stuff. 2001-08-25 18:37:20 +00:00
bjh21 3f9dc1b3e8 In ioc_attach(), use ioc_irq_setmask() and ioc_fiq_setmask() rather than
twiddling registers directly.  Also, remove an outdated comment.
2001-08-25 17:59:38 +00:00
bjh21 7da5d70599 Add fiq_on() and fiq_off(), to enable and disable FIQs at the CPU.
Call fiq_off() from start() and fiq_on() from cpu_configure(), so we're certain
not to get any FIQs during autoconfiguration.
2001-08-25 17:55:24 +00:00
bjh21 bf5b029d44 Make sure that soft interrupts are initialised in a "not pending" state. 2001-08-25 17:45:32 +00:00
mrg 71552c86a0 s/sparc/sparc64/ in a printf() 2001-08-25 15:05:22 +00:00
mrg 05403a4b92 turn off compat & some exec options 2001-08-25 15:04:26 +00:00
mrg 48fcc1a2c3 update a comment about R_UA_32 relocs. 2001-08-25 15:03:19 +00:00
bjh21 ed5e27cc44 Increase the size of a jmp_buf when using ELF, since this will be our last
chance to do so for a while.  We don't use the extra space yet, but VFP
support is likely to need it.
2001-08-25 14:45:59 +00:00
mhitch 20039b1dd8 Use the PROM bitmap, if available, to determine available memory. Also
add support of multiple memory segments so machines that allow mixed
memory sizes can utilize all available memory.
2001-08-24 15:33:16 +00:00
chs ba2c8088f4 use pmap_k* for buffer cache pages. 2001-08-24 04:34:25 +00:00
simonb bcdac55add Fix the display of the CPU clock speed. 2001-08-24 02:11:01 +00:00
simonb 8375df5b6a Whitespace nits. 2001-08-24 02:07:34 +00:00
simonb c8d4938fb4 Fix compile problems for kernels configured for MIPS1 support only.
Patch from Thilo Manske in PR #13703.
2001-08-24 00:22:53 +00:00
eeh 1007ef1595 Fix backwards compare. (From Jason Wright) 2001-08-23 16:14:12 +00:00
tsubai e20342e78d Fix a bug introduced when machine_type.h was removed.
Now the kernel can read symbol table again.
2001-08-23 14:17:27 +00:00
chs c540e9e70b add a missing pmap_update(). 2001-08-23 06:18:47 +00:00
chs 9fa41ab3b9 use cli/sti instead of splhigh/splx for MCOUNT_ENTER/MCOUNT_EXIT.
this makes clearer how much time mcount() is really taking.
2001-08-23 06:17:00 +00:00
nisimura 4d28b238b5 Add MX (PMAG-A) and TX (PMAG-RO/PMAG[B]-J) supports and replace CX
(PMAG-B) code with one found in dev/tc/ directory.
2001-08-23 01:29:31 +00:00
nisimura 9a409cff3e Add MX (PMAG-A), CX (PMAG-B), TX (PMAG-RO/PMAG[B]-J) TC framebuffer
supports.  None of them has any acceleration capability.
2001-08-23 01:16:52 +00:00
matt d98bf76f56 Fix bootstrap loss of memory. Fix pmap_activate problem. Revamp debug
messages.
2001-08-22 22:17:57 +00:00
matt ae5ab93687 Add 7450 recognization. 7450s use NAP mode. print out HID0 register
contents.
2001-08-22 21:09:05 +00:00
matt 076780a19c Include the 7410/7450 hid definitions 2001-08-22 21:05:25 +00:00
thorpej 15dcb4a98e Link the kernel at 1MB. 2001-08-22 19:44:47 +00:00
thorpej 9f019df56f Allow a keypress on the console to transition from "halted" to "returning
to monitor".
2001-08-22 19:13:09 +00:00
thorpej f0ea5cb1e9 Don't need to do the Alpha boot block checksum here :-) 2001-08-22 17:53:44 +00:00
hubertf 5366e197e2 More comment changes: 90x[B] -> 90x[BC] 2001-08-22 15:39:04 +00:00
hubertf d08ed3cb49 90x[B] -> 90x[BC] 2001-08-22 15:28:57 +00:00
msaitoh e380d9806e devclass of sci[f] is tty 2001-08-22 13:32:45 +00:00
nisimura 153449a2b4 Restore icsr value assignment op which was lost since r1.21. 2001-08-22 09:20:38 +00:00
nisimura 9fac675c1e Forgot to commit changes of intrcnt[] array and its indices. 2001-08-22 08:23:09 +00:00
nisimura d3320a155b NetBSD/pmax now has GENERIC_SOFT_INTERRUPTS. 2001-08-22 06:59:38 +00:00
thorpej 17c22a634f Set PCI_NETBSD_ENABLE_IDE to 0x01, so that the first IDE channel
will be enabled.
2001-08-22 00:42:43 +00:00
thorpej f5e6f05c1a If PCI_NETBSD_ENABLE_IDE is set, enable the PIIX{3,4} southbridge
IDE channels on the P-5064 and P-6032, since PMON doesn't do it
for us (thus causing the `pciide' driver to ignore them).
2001-08-22 00:40:38 +00:00
bjh21 35228f775a Two related changes:
Make splhigh disable IRQs at the CPU rather than at the IOC.  This has the
potential to be faster, and more importantly ensures that splhigh() blocks
FIQ downgrades.

Have a variable which indicates that a FIQ downgrade is required, and ensure
that the IOC "force IRQ" bit is turned on in this case.  This ensures that
FIQ downgrades don't get lost if something happens to be fiddling with the
interrupt mask at the wrong moment.
2001-08-21 22:47:17 +00:00
bjh21 8a979a066f Change various return sequences to the APCS-32 versions. 2001-08-21 22:42:17 +00:00
bjh21 1def612c66 Correctly restore the spl if we fail to claim the FIQ. 2001-08-21 22:40:39 +00:00
reinoud d7964c6e78 Initial commit for Xserver support for the wscons interface; it isn't fully
functional yet since the keyboard changes are not committed yet but it
should compile and work independently.

Initial support for mouse and screen takeovers / screen hardware scroll
reset is done.
2001-08-21 14:48:54 +00:00
sato 3f9cc29da9 fix vr4181 register offset. 2001-08-21 10:31:26 +00:00
bjh21 1d4ae5d285 Use int_off_save and int_restore rather than int_off and int_on. 2001-08-20 23:28:05 +00:00
bjh21 45b5bdc5e5 Split off the pm_entries array from the rest of struct pmap. This makes
memory allocation for it more efficient (since pm_entries is 4096 bytes long),
and will allow pm_entries to be freed for swapped processes.
2001-08-20 23:12:54 +00:00
bjh21 8ec27f2ebe Implementation of fiq_{get,set}regs.
Also, don't leave space for a FIQ handler in kernels with no FIQing devices.
2001-08-20 23:10:51 +00:00
bjh21 13f36f67c6 Don't initialise a podule's loader multiple times. 2001-08-20 23:09:12 +00:00
bjh21 9aa4896361 More FIQ support. This gives me enough to handle FIQs, and to downgrade them
to IRQs as necessary.  All these interfaces are subject to change in the light
of experience.
2001-08-20 23:08:10 +00:00
bjh21 1061e51a8a One from the vaults: Add lint stubs. 2001-08-20 22:56:10 +00:00
chris 140252be2b Arm has a vac, so we must use pmap_enter/remove for vmapbuf rather than k* versions, otherwise we may not be doing the right caching thing. 2001-08-20 21:52:09 +00:00
matt 078a9a2206 Netwinders have ISC phys, not LXT phys. 2001-08-20 16:17:12 +00:00
wiz c52d355d71 "wierd" is weird. 2001-08-20 12:20:01 +00:00
wiz 1e378c4c12 precede, not preceed. 2001-08-20 12:00:46 +00:00
wiz d375535396 Fix typo in comment (suceed). 2001-08-20 11:49:11 +00:00
mrg dc4e692845 add a commented "options NETATALK" 2001-08-20 04:49:17 +00:00
chs 9e8e4c5bdc I was wrong, sh4 does have a VAC.
change vmapbuf()/vmunmapbuf() back to using pmap_enter()/pmap_remove().
2001-08-19 20:44:41 +00:00
chs c489e9bff4 add missing pmap_update(). 2001-08-19 18:09:20 +00:00
chs 72b6b0b123 in vunmapbuf(), call pmap_*remove() explicitly since uvm_km_free_wakeup()
will soon no longer do it for us.
2001-08-19 18:08:30 +00:00
chs eddbcd2f47 use pmap_k* in vmapbuf() and vunmapbuf() since there's no VAC on this platform.
in vunmapbuf(), call pmap_*remove() explicitly since uvm_km_free_wakeup()
will soon no longer do it for us.
2001-08-19 17:45:57 +00:00
chs dd3f84513a typo in previous. 2001-08-19 17:45:15 +00:00
chs 316cd176c8 in vunmapbuf(), call pmap_*remove() explicitly since uvm_km_free_wakeup()
will soon no longer do it for us.
2001-08-19 17:43:44 +00:00
chs 17d06a7ad7 use pmap_k* in vmapbuf() and vunmapbuf() since there's no VAC on this platform.
in vunmapbuf(), call pmap_*remove() explicitly since uvm_km_free_wakeup()
will soon no longer do it for us.
2001-08-19 17:37:35 +00:00
chs b356420a02 in vunmapbuf(), call pmap_*remove() explicitly since uvm_km_free_wakeup()
will soon no longer do it for us.
2001-08-19 17:36:28 +00:00
chs 2cdad949d0 use pmap_k* in vmapbuf() and vunmapbuf() since there's no VAC on this platform.
in vunmapbuf(), call pmap_*remove() explicitly since uvm_km_free_wakeup()
will soon no longer do it for us.
2001-08-19 17:34:49 +00:00
chs 3f98593d27 in vunmapbuf(), call pmap_*remove() explicitly since uvm_km_free_wakeup()
will soon no longer do it for us.
2001-08-19 17:34:01 +00:00