Commit Graph

57176 Commits

Author SHA1 Message Date
matt
bbab86c27b Enable COMPAT_LINUX 2002-07-12 05:30:24 +00:00
thorpej
b13f958c53 Match the BCM5421, found on the Apple Xserve. From Matt Thomas. 2002-07-12 04:00:10 +00:00
simonb
0e084cea1c Add a comment; fix white-space niggle. 2002-07-12 00:40:00 +00:00
simonb
bb0c5d7d98 Don't need to include <sys/malloc.h>, <machine/locore.h> or
<uvm/uvm_extern.h> here.
2002-07-12 00:27:18 +00:00
simonb
85c8470e73 Fix a typo in a comment. 2002-07-12 00:23:04 +00:00
scw
f0643885eb Fix a mem_region botch:
physmemr and availmemr both need to be arrays, where the last element
has `size' set to zero to act as a terminator.
2002-07-11 21:50:22 +00:00
augustss
ca8d36994e Add a quirk for Trumpion device (extracted from OpenBSD). 2002-07-11 21:42:23 +00:00
augustss
8db4c51ebe Regen. 2002-07-11 21:41:32 +00:00
augustss
5128e283d3 Add Trumpion device (from OpenBSD). 2002-07-11 21:41:12 +00:00
yamt
43b3a8007f don't access freed memory. 2002-07-11 21:37:51 +00:00
scw
60fb656ee5 Validate the branch target registers and saved PC using the
appropriate macro.
2002-07-11 21:23:30 +00:00
scw
14013f679d Add a macro which verifies that a 64-bit value is a valid effective
address as defined by the cpu's Implemented Effective Address bits.
2002-07-11 21:21:58 +00:00
yamt
c56faa76d8 don't access freed memory. 2002-07-11 21:21:53 +00:00
scw
d08670adc8 Sync with reality. 2002-07-11 21:20:23 +00:00
augustss
86650920c9 Get rid of trailing white space. 2002-07-11 21:14:24 +00:00
perseant
8f30dc2c9b Remove lying comment on SEGM_PROT seglock. 2002-07-11 21:09:00 +00:00
matt
b35e786de2 Add a linux_syscall_intern entry (appropriately ifdef'ed COMPAT_LINUX).
When/if PPC ever supports LKMs, this should be moved to a separate file.
2002-07-11 19:32:43 +00:00
jdolecek
adaf086af4 do not install apbus.h, apcall.h, romcall.h 2002-07-11 19:04:19 +00:00
thorpej
37422dde7e Add 64-bit quirk for the Accton EN1407-T/Planex GN-1000TE. IDs provided
by SAITOH Masanobu <msaitoh@netbsd.org>.
2002-07-11 18:07:56 +00:00
mycroft
ade1f1e303 Oops; add scsibus too. 2002-07-11 18:07:22 +00:00
mycroft
8c81ec0a3c Enable the SCSI driver. 2002-07-11 17:56:31 +00:00
matt
79d770a01a Add wchan to a panic (must have NOWAIT). 2002-07-11 17:18:48 +00:00
christos
f12f20db6c Apply patches from Christian Limpach:
- NeXT label reading support
    - SCSI dma fixes
    - media support for if_xe.c

Some of these need more cleanup, but at least make SCSI support usable on
the NeXT.
2002-07-11 16:03:09 +00:00
scw
0d0a6374ef Some cleanups for the MACHINE_ARCH endian suffix change. 2002-07-11 14:42:55 +00:00
scw
d55184012a Cleanup the sigcontext structure, and sync {,sig}jmp_buf size and
offsets with it.
2002-07-11 14:16:42 +00:00
scw
5c90e3c0d6 In sys___sigreturn14(), validate the saved branch target registers and
program counter to avoid a possible kernel-mode IADDERR exception when
we try to restore the trapframe on return to user-mode.
2002-07-11 14:15:32 +00:00
scw
384b76c19b Install <sh5/pte.h> for the benefit of cpu.h. 2002-07-11 14:11:18 +00:00
scw
e0e8310758 Include <machine/frame.h>, not <sh5/frame.h> 2002-07-11 14:10:39 +00:00
scw
026df6bf33 Cleanup the frame link/unlink macroes. 2002-07-11 14:09:34 +00:00
scw
b234c1aa10 Moved MID_MACHINE definition from <machine/param.h> 2002-07-11 14:08:45 +00:00
scw
e700a799a3 Follow convention for MACHINE_ARCH endian suffix. 2002-07-11 14:07:41 +00:00
simonb
00f3022be0 Remove unused MCLOFSET define. 2002-07-11 13:36:45 +00:00
scw
185627f408 Add MIDs for SH5. 2002-07-11 13:10:16 +00:00
wiz
7b9b4ac6f7 'environment', not 'enviroment' 2002-07-11 10:53:19 +00:00
pooka
15d9246bb2 Add FORK_NOWAIT flag, which sets init as the parent of the forked
process. Useful for FreeBSD rfork() emulation.

ok'd by Christos
2002-07-11 10:37:26 +00:00
drochner
ef054011f7 -if getting info for a mode fails, print out the mode
and continue with the next
-check that text modes are VGA compatible (haven't seen it
 otherwise yet, but to be sure...)
2002-07-11 10:02:21 +00:00
simonb
873edaed34 Clean up some white space niggles. 2002-07-11 01:38:48 +00:00
simonb
dd2d708bd5 Echo the MKING command before executing it. 2002-07-11 01:29:28 +00:00
simonb
ffb069c949 Change the (intentionally) illegal "movd 0,0" to it's .word
equivalent; newer GAS complains about the illegal construct
and errors out.

XXX: what is the illegal instruction for exactly?
2002-07-11 00:41:50 +00:00
simonb
3350e73517 Add kttcp device. 2002-07-11 00:17:39 +00:00
wiz
4b20971f01 Spell acquire with a 'c'. 2002-07-10 23:16:32 +00:00
jdolecek
c96cc85feb enable KERNFS and PROCFS - this is GENERIC after all, right?
adresses port-alpha/15348 by Ray Phillips
2002-07-10 22:05:29 +00:00
wiz
654db6f5fc Fix two typos in comments. From OpenBSD. 2002-07-10 21:56:42 +00:00
itojun
db705b375f use iana-assigned value for IFT_STF. sync w/kame 2002-07-10 21:01:06 +00:00
drochner
1719b0ab59 get some more info out of the VESA BIOS and attach subdevices for
8-bit pseudo color and text modes
still doesn't do anything useful
(It would be easy to attach a wsdisplay, but we have to cooperate with the
PCI or ISA attached VGA drivers. There are open issues.)
2002-07-10 19:15:42 +00:00
drochner
cd34aa2e82 add a function to read from the BIOS vm86
(most of it is already mapped to KVM, but it appears easier to me
to do it this way instead of a lot of range checks)
2002-07-10 19:09:35 +00:00
drochner
c318ca38c7 fix off-by-one error in string len check 2002-07-10 19:04:09 +00:00
scw
52876ee77d First cut of the kernel side support for sh5 signals. 2002-07-10 15:55:01 +00:00
scw
528a743ee9 Update sh5_fpsave() prototype to match reality. 2002-07-10 15:53:57 +00:00
scw
a30ba3dd9a Need <sys/types.h> 2002-07-10 15:52:49 +00:00
scw
f78244feaf Before returning to userland, clear the FPU regs saved flag. 2002-07-10 15:52:07 +00:00
scw
0f3678d589 Track FPU register save status. 2002-07-10 15:49:33 +00:00
christos
bdd3768afd Add missing messages from FreeBSD's driver. Re-organize a bit how the
message is formatted and printed.
2002-07-10 15:37:30 +00:00
fredette
6e248e0a29 Define __HAVE_FUNCTION_DESCRIPTORS, which is used by ld.elf_so. 2002-07-10 15:18:06 +00:00
simonb
dbdcffef4f Add kttcp device. 2002-07-10 13:44:02 +00:00
scw
51f3f8ff9c More superh toolchain hacks. This time, it expects wchar_t to be a short. 2002-07-10 12:23:08 +00:00
scw
187f1ae3a1 Some hacks which will go away when we switch to a native NetBSD toolchain.
The SuperH compiler erroneously prepends underscores to global syms...
2002-07-10 11:36:23 +00:00
scw
5f0c27f158 Missed some semi-colons. 2002-07-10 11:31:25 +00:00
scw
0b074fa253 SH5 floating point support, based on sh3. 2002-07-10 10:38:22 +00:00
scw
f616928985 Doh, missed a #endif 2002-07-10 10:30:19 +00:00
scw
ea38860915 SH5 profiling support. 2002-07-10 10:24:16 +00:00
scw
c7510b3b78 Fix FP reg names 2002-07-10 10:22:43 +00:00
scw
293298968a Descend into include subdirs and install relevant headers. 2002-07-10 08:56:11 +00:00
itojun
941a391c59 sync with GENERIC 1.501. comment out devices that are not present.
(you can strip it down even more by commenting out unneeded filesystems)
2002-07-10 08:41:28 +00:00
itojun
0e727055ba whitespace 2002-07-10 08:37:40 +00:00
ichiro
83c0b66d47 add cpu id for "PXA250/210 3rd version CPUcore".
for using many PDA/xscale-core.
2002-07-10 07:00:50 +00:00
kent
6789db7962 Avoid redundant memory access. 2002-07-10 06:02:09 +00:00
kent
9dcee9625e Line 281-304:
Use %edi instead of %edx to keep destination address because memcpy() MAY
break %edx.
2002-07-10 05:56:44 +00:00
matt
6e81c6293f Bump VM kernel buffer space from 128MB to 192MB now that we have 512MB of
KVA space.
2002-07-10 05:25:12 +00:00
itojun
51bd9285d5 correct ping6 -w result wth hostname with [A-Z]. PR 17540. sync w/kame 2002-07-10 05:05:01 +00:00
gson
94addcb364 When a recording interrupt happened in the middle of audio_read(),
changes to cb->used by audio_rint() could be overwritten by audio_read().
2002-07-10 02:25:49 +00:00
chuck
17162d7b0f only power down on suspend, not standby (sugested by thorpej).
fixes problem noted at bottom of PR#17537.
2002-07-10 02:05:25 +00:00
fvdl
e539a84832 Since the return address is now part of struct sigframe, adjust the stack
accordingly to match alignment when copying it out.
2002-07-10 01:55:43 +00:00
fvdl
4ddf293c2e Hand-align the fxsave area to be able to determine its offset in structures
more precisely.
2002-07-10 01:54:00 +00:00
matt
e8598c806f Match Apple GMAC id #3. 2002-07-09 23:57:59 +00:00
matt
2df1a9cfb4 Add more host-bridges. 2002-07-09 23:51:15 +00:00
matt
f695a73e85 Regen. 2002-07-09 23:50:29 +00:00
matt
f3076f3bd7 Add Apple Xserve PCI devices (more UniNorth) stuff. 2002-07-09 23:47:45 +00:00
simonb
926ac99cd5 Use the interrupt numbers for emac and pckbc. 2002-07-09 23:34:28 +00:00
matt
97f6bca3e2 Regen. 2002-07-09 23:25:07 +00:00
matt
537e1f17d9 Add Broadcom BCM5421 2002-07-09 23:24:33 +00:00
simonb
cf4396a2d7 During native signal delivery, arrange to have the signal handler invoked
directly, using the trampoline only for the return path.  Saves a jsr and
movqd insn in the trampoline.
Changes gratuitously ripped off the i386 work for same.
2002-07-09 23:10:03 +00:00
jdolecek
f4e3c06369 always include ci_s*_locks in struct cpu_info, so that the size doesn't depend
on DIAGNOSTIC/LOCKDEBUG settings
2002-07-09 22:28:30 +00:00
thorpej
baecca774e * Shuffle the TODO list a bit.
* Fix outbound IPv4 header checksums (missing add of an offset).
* When enabling Rx TCP/UDP checksum offload, make sure that IPv4
  header checksum Rx offload is enabled on the chip, as well.
2002-07-09 21:05:03 +00:00
chuck
9b667cf839 only powerdown on a suspend. do not powerdown on a standby (PR#17537). 2002-07-09 20:19:57 +00:00
scw
f3309b8981 Redefine USER_SR to avoid clashing with MVMEPPC_PHYS_BASE_MEM in bat[12].
Thanks to Matt Thomas for pointing out the problem.
2002-07-09 20:06:35 +00:00
thorpej
77ef1df52c Don't use internal names to identify chips. Add types for the
i82540, i82545, and i82546 (but don't match them yet).
2002-07-09 19:47:46 +00:00
thorpej
511c4a1947 Regen:
Clean up Intel i8254x product names, and add i82540, i82545, and i82546
product IDs.
2002-07-09 19:43:57 +00:00
thorpej
e62cf5409d Clean up Intel i8254x product names, and add i82540, i82545, and i82546
product IDs.
2002-07-09 19:43:03 +00:00
matt
4f983e2982 Common OFW code has been moved to powerpc/mpc6xx/ofw_subr.S. Now use it. 2002-07-09 19:21:03 +00:00
matt
7c3dbdc01d When allocate VA for the msgbuf, don't allocate pages too since we have
already done that in pmap_bootstrap.  (fixes a small page leak at startup).
2002-07-09 19:05:00 +00:00
matt
66eaa16742 Change fpuproc to curcpu()->ci_fpuproc. 2002-07-09 17:41:27 +00:00
mycroft
79d0ee0424 Remove VNODE_OP_NOINLINE, which is already in TX3912. 2002-07-09 14:54:39 +00:00
thorpej
297ae331d6 Make a few performance tweaks:
* Bump the number of Rx descriptors from 128 to 256.
* Don't use a sliding Tx interrupt window.  Instead, just do reap-behind
  when we have <= 1/8 of our available descriptors in wm_start().
* Don't use Tx Queue Empty interrupts, and always set the Tx Interrupt
  Delay bit in the Tx descriptor.
* In wm_intr(), always call wm_rxintr() and wm_txintr(), regardless of
  their respective ISR bits being set.  We're here, might as well do some
  work.
* Adjust the Tx and Rx interrupt delay timer values.  New values from
  Intel's driver for FreeBSD via Allen Briggs.

With these changes, NetBSD can sustain > 900Mb/s userland to userland
*without* using TCP checksum offload using Intel PRO/1000 XT cards.
2002-07-09 14:52:37 +00:00
simonb
cb09cbdc32 Work around an egcs internal compiler error when compiling ip6_mroute.c
with -O2 or greater.
2002-07-09 12:55:47 +00:00
hamajima
b99ebea79a comment out "options OFB_ENABLE_CACHE" again,
because this makes PowerMac 8500 + Millennium II broken.
OKed by tsubai.
2002-07-09 10:14:18 +00:00
junyoung
2009b23147 switch/case KNF. 2002-07-09 07:15:21 +00:00
junyoung
b9f82fe6d3 ANSIfy. 2002-07-09 06:55:09 +00:00
uwe
401b8356c5 Print correct io addresses in sm attachment message (pasto). 2002-07-09 00:24:52 +00:00
jdolecek
9cfce187c5 track rev. 1.36 of GENERIC:
adapted to new interrupt code and shb changes.

also disable tlphy - no bus_dma, so it doesn't compile
2002-07-08 22:49:01 +00:00
jdolecek
07f9e74b2d change to be just wrapper around MMTA 2002-07-08 22:48:04 +00:00
jdolecek
ee95800a31 g/c COMPAT_13 - there wasn't any 1.3 release of mmeye. According
to removal log of sys/arch/sh3/sh3/compat_13_machdep.c, COMPAT_13 was trace
of i386 port.
2002-07-08 22:14:35 +00:00
drochner
32f7789dd7 there is at least one VGA chip (Silicon Motion Lynx EM+) where fast scrolling
by moving the display offset pointer doesn't work
2002-07-08 19:48:37 +00:00
drochner
2693ad5a05 save quirks in softc, obey VGA_QUIRK_NOFASTSCROLL 2002-07-08 19:45:28 +00:00
drochner
d10ae84f7b save the "quirks" in the softc 2002-07-08 19:43:23 +00:00
mycroft
8a3f8605fb Add a missing DELAY() in the initial GPIO setup for the 21140. 2002-07-08 18:43:54 +00:00
augustss
5059a3264c s/__FUNCTION__/__func__/ 2002-07-08 17:46:23 +00:00
rearnsha
a1614f2bc8 Changes to allow for the fact that the kernel is now mapped at
0xc0200000.  Tidy up to remove dead comments and code.
Allow more than one L1 entry for the kernel space and use the 'spare'
memory below the kernel code for the initial page tables in the same
way that the iq80310 does.
2002-07-08 16:20:07 +00:00
rearnsha
20ea379ed5 Map the low 4M of memory at 0xc0000000. 2002-07-08 16:17:42 +00:00
rearnsha
9fb9bc0c8a Use the Integrator ldscript and build .bin and .srec versions of the
kernel.
2002-07-08 16:15:44 +00:00
rearnsha
165a2e8904 Script file for linking an Integrator kernel image. 2002-07-08 16:14:54 +00:00
rh
8f8b29ff6b Add support for the SMC 2206USB/ETH EZ Connect adapter (Pegasus II) 2002-07-08 09:00:56 +00:00
rh
1825e92eb4 regen for SMC 2206USB/ETH 2002-07-08 08:58:33 +00:00
rh
ad61ce9c89 Add product code for SMC 2206USB/ETH EZ Connect Ethernet adapter 2002-07-08 08:57:33 +00:00
martin
fb950301fe Apply patch from Peter Seebach (in private Mail, similar to the one proposed
in PR kern/17506):

If we reset the mouse and discover a different protocol after the reset
than before, reset it again after one second. This makes protocol detection
after a KVA switched to another machine more reliable and should not affect
the standard situation with one mouse connected to one machine.
2002-07-08 07:43:31 +00:00
fvdl
b0ba7094b2 netbsd32_sysarch moved here. 2002-07-07 23:28:04 +00:00
fvdl
728043f0da Add definitions for 32bit sysarch calls. 2002-07-07 23:27:00 +00:00
fvdl
c1593a7671 Implement a few 32bit sysarch calls. 2002-07-07 23:25:37 +00:00
fvdl
e877145e56 Move netbsd32_sysarch to netbsd32_machdep.c 2002-07-07 23:23:41 +00:00
fredette
c9bdddaac5 Regen. 2002-07-07 23:01:51 +00:00
fredette
f79af764d7 Now include the HPPA trap number in a user backtrace, and display
backtraces for more traps.
2002-07-07 22:52:54 +00:00
augustss
9ee8616e07 Add quirk for ADS HD controller. From Scott Ellis in kern/17495. 2002-07-07 19:52:48 +00:00
augustss
c1367622d6 Regen. 2002-07-07 19:49:09 +00:00
augustss
5fba395c90 Add some Sandburst products. 2002-07-07 19:48:41 +00:00
matt
0d4f94281d Change OFB_ENABLE_CACHE to be enabled. 2002-07-07 19:40:05 +00:00
matt
1a8d29efcb Make the gem driver the default now, not the macppc specific gm. 2002-07-07 19:36:47 +00:00
matt
4577742ff6 Use SR 11 as USER_SR. (12 is used as an I/O BAT). 2002-07-07 19:32:49 +00:00
matt
e64bc5acc1 Allow USER_SR to be overriden on a per-port basis 2002-07-07 19:29:18 +00:00
matt
902fd38614 Update OFB_ENABLE_CACHE to search for a empty bat that does not
conflict the USER_SR or one of the kernel SRs.
2002-07-07 18:35:10 +00:00
oki
33e652ebfd Regen. 2002-07-07 18:07:43 +00:00
oki
52bdeef730 PECOFF version of stat13 and lstat13 couldn't look for
alternative path at first.  Fixed it.
2002-07-07 18:06:02 +00:00
drochner
373b39f1d2 put the "VGA_CONSOLE_SCREENTYPE" parameter into opt_vga.h 2002-07-07 15:09:52 +00:00
briggs
77f5558791 Fix a printf format warning. 2002-07-07 14:29:06 +00:00
drochner
cff6339e49 attach "vesabios"
(well, not really yet)
2002-07-07 13:25:43 +00:00
drochner
2eb946d46c call kvm86's GPF handler 2002-07-07 13:24:36 +00:00
drochner
5641e4d726 Initialize the kernel vm86 code before autoconfiguration, so that
BIOS calls can be used for device probing etc.

And now it's getting nasty:
The kvm86 code needs a TSS, and it is most convenient to use proc0's
instead of doing some static allocation. (We might reconsider this if
we want to use vm86 for console initialization, ie much earlier.)
For the TSS slot to be allocated, we have to move the call to
i386_proc0_tss_ldt_init() up.
Since the npx code twiddles CR0 the corresponding pcb field must
be synchronized later. It would probably be cleaner to do this in
the npx driver.
2002-07-07 13:23:17 +00:00
drochner
bc442c7173 -if APM_USE_KVM86 is set, use BIOS calls in virtual 8086 mode
-make sure the register frame is really cleared before use
 (someone added a field to the frame later which didn't get zeroed)
2002-07-07 13:06:56 +00:00
drochner
da32c6df4a add definitions for the in-kernel vm86 code and vesabios attachment,
add an option APM_USE_KVM86 which does what its name implies
2002-07-07 13:03:47 +00:00
drochner
c359f53282 First cut on VESA BIOS access to get extended video modes and framebuffer
access. For now, there is just probing code.
2002-07-07 12:59:58 +00:00
drochner
3b22d7973b This is a (still experimental) framework to run BIOS code in a virtual
8086 machine. Ifff it works, it is much easier and more elegant than
going to real real mode:
-simpler code
-no need for "identity" memory mappings
-easy passing of buffers for bulk data to functions
-some more control
There is no interrupt support ATM, and it lacks a function to access
random virtual memory of the VM. MP issues to consider.
2002-07-07 12:56:34 +00:00
tron
7db7acdde8 Fix a typo in last commit which caused build failures if
"PCDISPLAY_SOFTCURSOR" is not defined.
2002-07-07 10:52:18 +00:00
junyoung
f73c9efaab No need to include opt_vga.h here, since it is included in vgavar.h. 2002-07-07 07:37:50 +00:00
junyoung
da843e013f There's no function like vga_common_setup. 2002-07-07 07:34:54 +00:00
junyoung
64a231036c Remove __P. 2002-07-07 07:05:40 +00:00
junyoung
798d30c8d5 - ANSI & KNF, notably remove __P.
- Some cosmetic changes.
2002-07-07 06:49:22 +00:00
junyoung
472e54071a Rename vc_ccol and vc_crow in struct pcdisplayscreen to cursorcol
and cursorrow, respectively, to be consistent with other members
in the structure.
2002-07-07 06:36:32 +00:00
matt
140a273f7a Use lvewx/stvewx for VSCR and save ourselves 12 bytes we don't need to load. 2002-07-07 00:46:20 +00:00
dbj
397ff5c82a protect Debugger() call with ifdef DDB 2002-07-07 00:43:11 +00:00
gmcgarry
4b0692e70a Don't invoke MachFPInterrupt() if we're using SOFTFLOAT. 2002-07-07 00:22:18 +00:00
gmcgarry
cc4037a913 Overhaul the emulation facility. We do this by:
- accumulating all emulation code (including floating-point) in one place
- steal MachFPInterrupt() back from SOFTFLOAT for use only with interrupts
  and traps from *real* FPUs
- introducing MachEmulateInst() as a common dispatch point for all
  emulated instructions
- cleaning up emulation dispatch in trap()

Also, while we're here, implement MIPS2 LL/SC/SYNC emulation for MIPS1.

Tested on r3k with and without SOFTFLOAT enabled.
2002-07-06 23:59:18 +00:00