toddpw
a865af9ad5
Enable attachment for Kingston KNE-PC2 Ethernet.
2001-06-13 13:41:01 +00:00
rafal
68306a9bf0
Implement a db_trap_callback which turns off the watchdog on entry to DDB
...
and turns it back on on exit. Hook the callback in early in the boot, so
it's there as soon as DDB is available.
2001-06-13 12:34:24 +00:00
wiz
c03a48d64f
withough -> without
2001-06-13 10:45:57 +00:00
scw
e13606c37b
Workaround for buggy OPTi pciide chipset revisions, as reported
...
in PR/11644.
2001-06-13 09:55:25 +00:00
enami
4553af4ee5
Add minimal support for vr4122/vrc4173 pci.
2001-06-13 07:32:47 +00:00
lukem
6b358ba879
remove interlan np100 entry as the referenced files don't exist
2001-06-13 06:43:08 +00:00
lukem
d9db68b3fe
be more specific about which interlan controller the qbus/if_il supports
2001-06-13 06:40:19 +00:00
simonb
85ded6700b
Add a sanity check for ubc_winshift.
2001-06-13 06:06:19 +00:00
simonb
6c4e6292a5
Regen; add IBM 405GP PCI Bridge & ROB-in i960RP Microprocessor.
2001-06-13 06:04:25 +00:00
enami
3df61fa9d9
Generic softintr for hpcmips.
2001-06-13 06:03:10 +00:00
simonb
18b2f7e6a1
Add a port to IBM's PPC405GP Reference Board (the "walnut")
...
by Eduardo Horvath and Simon Burge of Wasabi Systems.
IBM 4xx series CPU features:
- New pmap and revised trap handler.
- Support on-chip timers, PCI controller, UARTs
- Framework for on-chip ethernet and watchdog timer.
General PowerPC features:
- Add in-kernel PPC floating point emulation
- New in{,4}_cksum that is between 1.5 and 5 times faster than the
old version depending on CPU type.
General changes:
- Kernel support for generic dbsym-style symbols.
2001-06-13 06:01:44 +00:00
thorpej
015345c74b
Don't need INET or NS includes here.
2001-06-12 22:32:51 +00:00
thorpej
7e59a1be7a
No longer need MIPS3_5200 here.
2001-06-12 22:32:50 +00:00
thorpej
9988acd41e
Don't need INET or NS includes here.
2001-06-12 22:28:15 +00:00
thorpej
e103dbb4b0
Don't need NS-related headers here.
2001-06-12 22:05:53 +00:00
uwe
02293e0ea7
Be prepared to get OpenFirmware client entry in either %o3 (PROM way)
...
or %o0 (our boot code passes romp in %o0 even for OF machines).
Discussed with pk.
2001-06-12 21:01:26 +00:00
bjh21
18e8d752f6
No need to pull in INET or NS headers -- that's all done by ether_ioctl() now.
2001-06-12 20:53:39 +00:00
bjh21
ca5de264b4
Change the structure of a bus_space_handle_t in a desperate bid to avoid using
...
function pointers. It now contains two base addresses, one for 8-bit
transfers and one for 16-bit transfers. This should make it possible for me
to handle the Castle EtherSCSI card, which uses and address line to select
transfer width to the i82595.
2001-06-12 20:16:22 +00:00
matt
2b283d77df
For arm ports where machine != arm??, descend into the cats,dnard,netwinder
...
directories and install their include files too.
2001-06-12 18:16:31 +00:00
matt
6506d53f68
Nuke include files which are just <arm/foo.h>. Adjust Makefile accordingly.
2001-06-12 18:03:55 +00:00
matt
d4dcda551f
Revert back to arm32 (for now).
2001-06-12 18:02:20 +00:00
matt
5571e920d6
senderr needs only be declared when PFIL_HOOKS is defined
2001-06-12 17:55:52 +00:00
matt
12635e46a1
The machine is cats, the machine_arch is arm (not arm32).
2001-06-12 17:38:41 +00:00
matt
0aff179f16
Eliminate all files that are just #include <arm.foo.h>. Update Makefile
...
to refer to cats, not netwinder.
2001-06-12 17:37:35 +00:00
tsubai
f1d3ac74a5
Change comment.
2001-06-12 17:36:55 +00:00
tsubai
66c1ffd9be
Remove cpu_dumpconf(); it's in powerpc_machdep.
2001-06-12 17:23:13 +00:00
tsubai
713feac239
Include powerpc/mpc6xx/{bat.h,pte.h} if PPC_MPC6XX is defined.
2001-06-12 17:20:50 +00:00
tsubai
bee211fc53
Move "file .../bus_dma.c" line to MD place.
...
Add options PPC_MPC6XX on missed ports.
XXX I think PPC_OEA is better name.
2001-06-12 17:13:34 +00:00
matt
fa3621e3be
Move netwinder_machdep.c to files.netwinder. Eliminate opt_netwinder.h and
...
use #ifdef netwinder insead. XXX ebsa285_machdep.c should move to the cats
directory and files.cats
2001-06-12 17:10:25 +00:00
minoura
f8ce82f817
Another steps for ELF.
...
- register prefix
- machine/asm.h
- deprecated -T option for ld(1)
2001-06-12 16:57:27 +00:00
tsubai
cbad4436c2
One more.
2001-06-12 16:32:00 +00:00
tsubai
51a013241c
Make this compile w/o akbd or ukbd.
2001-06-12 16:29:07 +00:00
wiz
0a600be867
receive, not recieve
2001-06-12 15:17:10 +00:00
itojun
bdbfdf946d
run pfil_hooks for IPv6 forwarding path (note: ip6_forward() does not
...
call ip6_output()).
2001-06-12 15:12:33 +00:00
thorpej
4f7cad1c02
On a non-simplex interface, check incoming multicast (this catches
...
the broadcast case as well) to see if they came from us, and drop
them if they did.
This fixed IPv6 DAD on non-simplex interfaces, e.g. the Seeq 8003
found on my SGI Indy.
2001-06-12 15:03:26 +00:00
wiz
2a8c778f1b
retrieve, not retreive
2001-06-12 14:59:27 +00:00
ragge
3bd0afbc54
Make tracing of stack by frame argument work.
2001-06-12 13:22:06 +00:00
ragge
5335780e31
Support to get into DDB from hardclock interrupts by putting a value in
...
the RPB wait field.
2001-06-12 13:20:29 +00:00
ragge
8f96f4b21c
Fix problem where console interrupts never got enabled after RB_ASKNAME.
2001-06-12 13:18:38 +00:00
bjh21
cb6b68a931
Mention where I got the information for writing the driver.
2001-06-12 11:52:03 +00:00
bjh21
f6f3c9b35f
Add a hefty comment about the stray IR bug, so I don't forget it.
2001-06-12 11:49:18 +00:00
wiz
b50f28c38a
underrun, not underun
2001-06-12 11:48:51 +00:00
minoura
55e73f8bc1
I was too careless. Do not throw away the prepared string. :p
2001-06-12 11:29:31 +00:00
ragge
8f68bebb7e
Detect 4000/VLC correctly + make halt/reboot work.
...
From Michael L. Hitch (mhitch@montana.edu ).
2001-06-12 11:24:50 +00:00
minoura
5d6ce3b75c
Make this compile again.
2001-06-12 10:30:04 +00:00
minoura
b1b468a365
Remove unneeded whitespace.
2001-06-12 10:03:04 +00:00
chris
be97fea093
Remove Makefile.cats. We now use the arch/arm/conf/Makefile.arm.
2001-06-12 08:33:48 +00:00
chris
eb541612a0
Add cats specific makefile for tags and includes.
2001-06-12 08:32:46 +00:00
chris
f90999bd42
Cats doesn't need io.h any more as it has it's own conf.c files.
2001-06-12 08:31:53 +00:00
chris
a7b8789da8
Add cats specific autoconf and conf.c. Also add defopt NETWINDER to files.cats, this is so a few things that include opt_netwinder compile.
2001-06-12 08:30:47 +00:00
chris
8c53bc98ee
comment out MEMORY_DISK_HOOKS, currently cats can only use an in-kernel memory disk.
2001-06-12 08:27:08 +00:00
thorpej
42a2e688fe
If the parent interface can do hardware-assisted VLAN encapsulation,
...
then propagate its hardware-assisted checksumming flags.
2001-06-12 06:16:59 +00:00
simonb
0bdd2faeed
Get the opcode mask right for almost all the Op_OE opcodes (only two were
...
correct).
2001-06-12 05:31:44 +00:00
uwe
1f4eee4c21
In wsfont_map_unichar: when checking that 'lo' is within 'map2' range,
...
compare 'lo', not 'hi' (only partially edited cut-n-paste it seems).
2001-06-12 00:57:10 +00:00
thorpej
ba52d7a5d0
Always indirect through the "locoresw" to get the cache ops, since
...
there are just far too many combinations to handle with magic
#ifdefs in any sane way. Also, add a HitFlushDCache op to the
"locoresw", and fill it in as appropriate (it's NULL on MIPS-I,
so watch out).
These changes ensure that my R4600 Indy (with 2-way cache) gets
the correct cache ops when the kernel is built with only MIPS3
support, resulting in a kernel that is significantly more stable.
2001-06-11 23:52:38 +00:00
perry
df452bb9b8
clean up some comments, per a request from sommerfeld
2001-06-11 22:56:26 +00:00
chris
1825c7b68a
Move defopt FOOTBRIDGE to where it really should be in files.footbridge, which is where I should have left it.
2001-06-11 22:25:09 +00:00
chris
ed72dec945
Remove locore dependancy on opt_netwinder and use the netwinder define from the command line.
2001-06-11 22:08:42 +00:00
fredette
8d1b187a4c
Fixed pte_print to display the correct names
...
for VME device pages.
2001-06-11 21:35:59 +00:00
fredette
6e5f704918
Now use hand-defined macros instead of relying
...
on structure layout to find registers. Added
a VME attachment.
2001-06-11 21:33:47 +00:00
bjh21
33afab3251
Add a short-circuit return from wdcprobe for IDE controllers without pullup
...
resistors, which return the last value written to the bus on a read. This
makes detecting empty channels on my HCCS and D.T. Software IDE interfaces
rather faster.
2001-06-11 21:18:36 +00:00
thorpej
fb2f3ce7e5
Regen; Add Level One vendor ID, and LXT-1001 10/100/1000 Ethernet
...
product ID.
2001-06-11 21:13:49 +00:00
thorpej
ec5280c1ed
Add Level One product ID, and LXT-1001 10/100/1000 Ethernet
...
product ID.
2001-06-11 21:12:29 +00:00
sommerfeld
0463a8a3d7
Replace magic numbers in trap code with offsetof()
...
Deal better with traps during register restore.
Explain a bit more about what's going on here.
2001-06-11 20:04:02 +00:00
bjh21
bd73477f94
Parentheses around definition of PODULE_GAP.
2001-06-11 19:07:14 +00:00
matt
95be56d2e1
Only include dependency on include-dirs if the include directory doesn't
...
exist.
2001-06-11 17:50:34 +00:00
matt
ba4b09844f
Use command Makefile.arm. Move non-std LOADADDRESS to std.netwinder. Add
...
netwinder-specific inclusion Makefile.
2001-06-11 17:46:23 +00:00
matt
d87a9f23c3
Add common Makefile for arm ports. Only include (for now) machine/io.h
...
if arm32 is defined. io.h is RISCPC specific and isn't needed for other
ports.
2001-06-11 17:44:38 +00:00
fredette
274629aa08
Added support for the VME `sc' SCSI board. Compiles,
...
but needs testers as the author doesn't actually have
the hardware.
2001-06-11 15:09:54 +00:00
pk
b9e61207ff
Add nolun/nosync quirk for "IBM CDRM00201 !F"
...
See PR#13031.
2001-06-11 13:58:18 +00:00
rearnsha
3d85ba9ab2
include-dir: A relative 'S' is up 4-levels.
2001-06-11 13:49:28 +00:00
itojun
8b646a5273
remove IPV6FIREWALL case, which is never used
2001-06-11 13:49:18 +00:00
rearnsha
afd5ba073b
Defopt FOOTBRIDGE.
2001-06-11 13:48:28 +00:00
pk
c522c18479
Use NFB from "fb.h" to include console framebuffer support.
2001-06-11 13:34:51 +00:00
rearnsha
bf3fad1043
Split consinit functionality out of machdep.c into platform-specific
...
files. G/c include files for machdep.c
Only include dev/cninit.c in ofw-based kernels.
2001-06-11 11:56:57 +00:00
scw
712d37e53b
G/C an unused parameter to isrdispatch_vectored().
2001-06-11 11:26:42 +00:00
scw
9b0b23c664
Stack adjustment for autovectored interrupts wasn't quite right...
2001-06-11 11:24:40 +00:00
rearnsha
b20634eca1
Footbridge files have moved from arm32 to arm sub-tree.
2001-06-11 10:51:09 +00:00
enami
43b992855b
Comment about start address of LED unit in vr4122.
2001-06-11 10:04:27 +00:00
sato
a2c4938b03
not set HPCFB_SWAP_BYTE
2001-06-11 09:36:44 +00:00
sato
c1922a2158
not set HPCFB_SWAP_BYTE.
2001-06-11 09:21:15 +00:00
tron
848a0e68f6
Lower interrupt priortiy properly if setting the setting the kernel time
...
is denied in a securelevel above 1. This fixes PR kern/13158.
2001-06-11 07:07:12 +00:00
tron
a4401a8e5d
Regen from "pcidevs".
2001-06-11 06:36:51 +00:00
tron
6caf1041cb
Add support for the D-Link DFE-530TX+. Patch supplied by
...
Gabriel Rosenkoetter in PR kern/13161.
2001-06-11 06:36:23 +00:00
tron
ea44bc48d3
Make arplookup error messages more informative. Patch supplied by
...
Andrew Brown in PR kern/13162.
2001-06-11 06:19:50 +00:00
enami
1c426d533e
make GENERIC compile again.
2001-06-11 06:11:01 +00:00
enami
48a9b87617
Move some struct definition into header file.
2001-06-11 06:04:55 +00:00
enami
79524e25e0
- add comment about start address of PMU in vr4122.
...
- wrap long line.
- add regsiter offset found in PMU of vr4122.
2001-06-11 06:02:21 +00:00
enami
d011344fca
Cosmetic changes; lineup some struct members.
2001-06-11 05:56:21 +00:00
enami
1898d1dcc6
- make this file compile even if either hpcfb or vrkiu isn't included.
...
- introduce new cpp symbol VR_FIND_DRAMLIM not to probe dram beyound this.
for example, MP-C303 hangs hard if memoy beyond 0x03800000 is probed.
2001-06-11 05:52:21 +00:00
enami
f81775f030
Cosmetic changes.
2001-06-11 05:24:06 +00:00
enami
2bcc128c2b
Print space after colon.
2001-06-11 05:22:10 +00:00
enami
3dabdff631
Cosmetic changes:
...
- Use tab instead of many spaces
- options<SPC><TAB>
2001-06-11 05:17:45 +00:00
chs
49ba960b09
make this compile with DEBUG.
2001-06-11 04:58:33 +00:00
wiz
40ac848024
Fix various misspellings of compatible/compatibility.
2001-06-11 01:50:48 +00:00
wiz
0a3b1c29a1
transceiver, not transciever.
2001-06-11 01:19:53 +00:00
gmcgarry
6fee8596c7
Packet includes CRC, so mark it in the mbuf header. Fixes the
...
"discarding oversize frame (len=1518)" problem.
2001-06-10 21:53:08 +00:00
ragge
83e47d5e8d
Revision line #1 broke, fixed.
2001-06-10 20:47:49 +00:00
ragge
b47f638d85
Check in work done by bjc@openbsd.org, OpenBSD revs 1.4 and 1.5 of the
...
same file. No other changes, OpenBSD log messages below.
> More EMODD work:
> - Using CVTDL and subtracting to seperate integer from fraction does
> not work if the integer is >32 bits long; instead, rearrange the bits
> into a quadword, use ASHQ to truncate, and then subtract.
>
> Also:
> - Set the condition codes properly; this fixes the other problem with
> >32-bit-integer parts in libm by letting modf subtract the fractional
> part (which *is* a double) to get the integral part in a double.
> - move the zero checks earlier in the routine
>
> - instead of 'ret' in zeroexit, use brw goback
> Switch a "BGTR foo" to a "BLSS bar; BRW foo; bar:". In this case, the
> difference between the BGTR and foo: is too large for a byte displacement.
> as should give an error or at least a warning here, but it doesn't;
> instead it merrily outputs a completely bogus displacement.
> This fixes problems with EMODD on numbers with negative exponents.
>
2001-06-10 20:46:18 +00:00
msaitoh
e29b0f085f
.type xxx,@function isn't supported under COFF
2001-06-10 19:06:26 +00:00
ragge
7921723fdc
Update b_proc comment to reality.
2001-06-10 18:43:25 +00:00
ragge
01c6253206
Only use b_proc if B_PHYS is set.
2001-06-10 18:41:27 +00:00
scw
179dd3e579
sigh. It also helps to switch back to .text ...
2001-06-10 17:31:38 +00:00
sommerfeld
b55c21bb0d
Copy in segment descriptors all at once rather than one at a time.
2001-06-10 17:30:41 +00:00
tsubai
8561123ccf
-Wreturn-type is included in -Wall.
2001-06-10 17:05:11 +00:00
scw
08fb0e543b
Pick the right bit to check...
2001-06-10 17:03:01 +00:00
scw
8aad61265b
On 162 and up, get the CPU speed from the firmware and only fall back
...
to calculating it on the fly if the firmware's value is bogus.
This fixes problems caused by rounding errors on some board/speed
combinations.
2001-06-10 16:48:19 +00:00
scw
aab2376d45
Refuse to boot on 162/172 and 167/177 if the user has not removed
...
the jumper which tells 1xx-Bug where to locate its scratch data.
Instead, print a message informing the user to RTFM (which needs to
be updated to include this info. ;-)
2001-06-10 16:45:52 +00:00
tsubai
a3496ef8a8
When invoking the pcb_onfault mechanism, pass the return value of uvm_fault()
...
to the onfault routine.
2001-06-10 16:31:59 +00:00
tsubai
29d06d028c
Fix printf format error.
2001-06-10 15:54:05 +00:00
tsubai
7f2d136a9a
Remove options NMBCLUSTERS=1024 -- it's default now.
2001-06-10 15:41:13 +00:00
tsubai
b736ff678e
Use machine/bat.h rather than powerpc/mpc6xx/bat.h.
2001-06-10 15:32:57 +00:00
tsubai
afa0c16167
include powerpc/mpc6xx/bat.h.
2001-06-10 15:24:57 +00:00
tsubai
bedfcf904c
libkern.h is included in systm.h. Not needed here.
2001-06-10 15:05:44 +00:00
scw
89546c98a1
Enable DHCP and BOOTP as supported diskless NFS boot options.
2001-06-10 14:40:47 +00:00
scw
967e648941
Use the versions of dev_net.[ch] in libsa in order to get DHCP support.
...
In other words, mvme68k's "netboot" finally supports DHCP.
2001-06-10 14:12:48 +00:00
tsubai
8b0b4ecd3f
Forgot to commit this; s/offb/ofb/.
2001-06-10 13:56:13 +00:00
scw
ea5249214a
Add rnd(4) pseudo-device.
2001-06-10 13:16:07 +00:00
tron
d29b7bb88c
Regen from "usbdevs".
2001-06-10 13:10:46 +00:00
tron
8a6a34f18e
Add Philips PCA646VC PC Camera.
2001-06-10 13:10:25 +00:00
sato
9d87ee4b59
add MC-R700, 730 touch panel parameter
2001-06-10 12:37:43 +00:00
tsubai
4911bdc582
Use ofb_softc again.
2001-06-10 11:38:21 +00:00
tsubai
5a051092e4
Rename ofb_softc to ofbus_softc. (XXX Is this good name?)
2001-06-10 11:36:03 +00:00
tsubai
f6482742de
pte_spill -> pmap_pte_spill.
2001-06-10 11:09:28 +00:00
tsubai
6650a1901e
Use the new pmap to compile again (sorry).
2001-06-10 11:07:36 +00:00
tsubai
fafb5d4bc3
Make the new pmap optional. Use the old (stable!) pmap by default.
2001-06-10 11:01:26 +00:00
mrg
53e9189ae7
oops; non-primary cpus should still spin, not jump to idle.
2001-06-10 10:50:20 +00:00
ad
bfac43a1c8
Centralise the geometry fudge.
2001-06-10 10:48:42 +00:00
ad
5f1286dfb9
Don't make assumptions about the contents of the system drive table.
2001-06-10 10:34:44 +00:00
tsubai
27c2892f13
Enable color! call in ofb_putcmap again.
...
Matt, please don't remove codes silently without confirmation.
(At least, leave a log message!)
2001-06-10 10:34:27 +00:00
thorpej
be7629b7e0
Hand off intr evcnt responsiblity in a reasonable way on the 5064.
2001-06-10 09:28:26 +00:00
thorpej
7c074dc806
Check in work-in-progress of generic ISA interrupt support. The
...
goal here is to get the P-5064 PCMCIA slots working, and serve as
the basis for P-6032 interrupt support.
PCMCIA interrupt auto-detection not working -- more work to be
done here.
2001-06-10 09:13:06 +00:00
thorpej
82418a77b0
Add PCMCIA devices.
2001-06-10 08:45:09 +00:00
scw
737763fde7
Forgot to commit this as part of the mvme68k evcnt(9) changes.
2001-06-10 08:27:42 +00:00
matt
66822e55be
Fix a spl issues. Turn on PMAPCHECK until instability problems are found.
...
Add a pmap_pvo_verify call you call it from it ddb and verify the pmap
data structures are sound. Fix warnings when DEBUG was turned on.
2001-06-10 07:56:36 +00:00
matt
b9ef9e99da
Print a more informative is a uncatchabl DSI or ISI exeception happens in
...
kernel mode.
2001-06-10 07:49:13 +00:00
thorpej
1930cfd7dc
Correct for a data structure change.
2001-06-10 06:17:15 +00:00
thorpej
ce66bf0803
Rewrite the interrupt handling code:
...
- Compute the number of CPU pipeline cycles per second using the
mc146818.
- Use the COMPARE interrupt for the hardclock interrupt.
- Collapse all interrupt priorities into a single priority, and use
the CPU interrupt inputs to determine the interrupt source (local
device, PCI device, ISA device, etc.)
This allows us to have interrupt sharing.
2001-06-10 05:26:58 +00:00
thorpej
0e82abb5de
Add MIPS3_5200.
2001-06-10 05:02:33 +00:00
briggs
b1db1fba38
Adapt to new PowerPC pmap.
...
Use more common PowerPC code including bus_dma and unified bus_space.
2001-06-10 03:16:29 +00:00
briggs
c97896cd4d
Pull avail_start/avail_end logic for bus_dmamem_alloc() from macppc port,
...
as suggested by matt@netbsd.org--the vm_physmem array may not be in order.
2001-06-10 02:31:25 +00:00
briggs
a2b115fa4c
Up the default # of NMBCLUSTERS to 2048 (GATEWAY) & 1024 (non-GATEWAY)
...
from 512/256.
2001-06-10 02:28:57 +00:00
briggs
acf06d2e27
If the adapter is returning a selection timeout, then we should be
...
returning XS_SELTIMEOUT, not XS_TIMEOUT. Pointed out by Andrew Doran.
2001-06-09 18:08:20 +00:00
chs
7408b77903
include ioctl_compat.h for LKMs.
2001-06-09 17:28:32 +00:00
briggs
8c948a0386
Patches from takashi.yamamoto@bigfoot.com in kern/13139.
...
- Set XS_TIMEOUT on a selection timeout condition.
- Do not bother to call AscStartChip() in AscResetChipAndScsiBus()--
just clear the chip status.
- Make sure address is word-aligned in AscWriteLramByte().
Tested on my adv (AdvanSys ABP-9xxUA) with CRW8424S and UMAX SuperVista S-12.
Earlier versions of the system would get stuck trying to recover from error
conditions when the CD-RW drive was in heavy use. I have not seen that
behavior with these small patches.
2001-06-09 17:18:21 +00:00
bjh21
810a0b00f4
dtide is MI now.
2001-06-09 13:51:49 +00:00
tsutsui
14f1650c62
Remove unused members from SCSI command block structure.
2001-06-09 13:43:02 +00:00
tsutsui
9cd36c6539
Fix an uninitialized variable in #ifdef DIAGNOSTIC.
...
Pointed out by soda.
2001-06-09 12:59:50 +00:00
bjh21
ce17af0c82
Very crude changes to ensure we never call malloc passing M_WAITOK from
...
pmap_enter. Instead, we panic if allocation fails. This is bad, and should
be reworked.
2001-06-09 12:22:11 +00:00
wiz
09b77243bc
Some more corrections by Michael K. Sanders.
2001-06-09 11:02:08 +00:00
chris
b0a79f686c
Typo police: 28285 -> 21285
...
Also garbage collect the old kernel VM map defines for footbridge.
2001-06-09 10:44:10 +00:00
chris
4c30449347
Remove the old kernel config files for cats, also remove isa_cats_machdep, as
...
it now lives in cats/isa/isa_machdep.c
2001-06-09 10:35:55 +00:00
chris
af8ce95972
Move the footbridge dir out of arm32 into arm.
2001-06-09 10:29:11 +00:00
matt
3cad96a936
Move towards common Makefile.arm
...
Add a netwinder/autoconf.c
2001-06-09 05:38:23 +00:00
matt
e27941e917
Eliminate some unavailable devices on netwinder.
2001-06-09 05:36:28 +00:00
bjh21
bfddba9825
Separate podule and netslot cases in poduleread() into separate functions,
...
with the correct one referenced by a pointer in the podule structure. This is
in aid of eventually making the netslot and podulebus code a little more
separate from one another.
2001-06-08 22:38:07 +00:00
bjh21
e609865bbc
Correct reference to dtide.c, and don't bother with the "channel" locator to
...
dtide, since ata provides that anyway.
2001-06-08 22:33:59 +00:00
chris
9e26feedf2
Finish off the cats arch dir by creating an include dir and populating it from
...
arm32/include.
Make use of std.cats in the kernel config.
Fixup files.cats so it actually works.
2001-06-08 22:22:59 +00:00
bjh21
ca2047f7c6
Adapt the dtide driver to the MI podulebus framework, and move it to its new
...
home. It still doesn't actually work, but that's a SMOP.
2001-06-08 20:13:24 +00:00
bjh21
837afd713e
Regen
2001-06-08 20:09:07 +00:00
bjh21
e918a481e5
Move D.T. Software to their rightful place in the list, and correct the product
...
ID for their IDE interface. I've no idea where 0x00ae came from.
2001-06-08 20:08:35 +00:00
fredette
cca6e28421
Added comments and fixed some macros now that I correctly
...
understand how to address the sun2 VME bus in the VM hardware.
2001-06-08 18:00:51 +00:00
mrg
1375a0c31e
don't run SMP flush routines if (cold); be sure cpus[n] is valid.
2001-06-08 16:25:04 +00:00
mrg
72c1d9df6d
more SMP work: finish up ipi's, SMP DDB support, cpu startup issues, and
...
idle() u area issues:
in nmi_sun4m(), if this is a soft NMI and DDB is configured, setup a trapframe
and pass it to nmi_soft(). in cpu_hatch(), spin until our cpu's flags no longer
have CPUFLG_STARTUP set. then, setup registers and jump to
idle_enter_no_schedlock. in idle(), if MULTIPROCESSOR, always switch to this
cpus idle u. a minor optimisation to cpu_switch().
2001-06-08 16:15:23 +00:00
mrg
5849352bfc
_KERNEL_OPT is your friend.
2001-06-08 15:43:34 +00:00
thorpej
37c37861b9
Make sure to always re-sync the rx buffer dmamap if recycling the
...
rx buffer.
2001-06-08 14:32:05 +00:00
mrg
7a84fc0483
use real \n's copyright[]; avoids gcc 3.0-prerelease warnings.
2001-06-08 12:53:30 +00:00
mrg
054673b07c
#endif /* takes no argument */
2001-06-08 12:51:17 +00:00
mrg
0b7f4cf1ba
avoid trigraphs
2001-06-08 12:50:11 +00:00
mrg
aa2443e7c8
if DDB, when pausing, save a copy of this cpus registers while paused.
2001-06-08 09:51:40 +00:00
mrg
67fc8c19be
if MULTIPROCESSOR, make the registers virtual, so that we can access other
...
processors registers. rework enter/exit ddb code to look more like the i386
code. make "mach cpu" and "mach cpu N" work.
2001-06-08 09:49:28 +00:00
mrg
7666800896
need a per-cpu ddb_regs pointer.
2001-06-08 09:45:50 +00:00
mrg
1ae283fcdd
use raise_ipi_wait_and_unlock().
2001-06-08 09:40:31 +00:00
hannken
a343eba6d6
Close coment of CVS tag.
2001-06-08 09:24:28 +00:00
enami
578730c551
Initialize sc->sc_anegticks to 5 on attach to prevent panic due to
...
assertion failure.
2001-06-08 07:09:40 +00:00
matt
e3b20fd18d
options PROG32 for now.
2001-06-08 06:16:09 +00:00
matt
85656841a3
Change _ARM32* to _NETWINDER* Include <machine/psl.h> to get psl
...
definitions.
2001-06-08 06:14:25 +00:00
matt
1f4156858b
add an include subdir rule in the Makefile to make netwinder use the
...
"new" include file structure to be used on arm ports.
2001-06-08 06:13:02 +00:00
matt
7c77092fcf
Change options<tab> to options<space>
2001-06-08 06:10:40 +00:00
chs
68e8e6ff9c
make this compile again.
2001-06-08 05:43:00 +00:00
mrg
7bb4cfc2db
split {sunos,svr4}_sigcode out for LKMs
2001-06-08 04:49:45 +00:00
simonb
e5bd00e48d
For ports that wire up pciide in compatibility mode, have
...
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.
Ports that don't need to do this no longer need to supply a
dummy function.
2001-06-08 04:48:54 +00:00
mrg
9a3de71872
add CPUINFO_FLAGS
2001-06-08 04:21:41 +00:00
uwe
9634e929d1
Oops, missed in the previous commit: bump PIL_SER to 13 as well.
...
It seems to be unused...
2001-06-08 01:33:32 +00:00
matt
d2f0c68d47
Make macppc compile by default with -Wall -Wmissing-prototype in addition
...
to its currently enabled warnings. For the lack of a better place, most
global function prototype wound up in <machine/autoconf.h> unless there
was a better place for them. ofb_* structs renamed to offb_* to avoid
conflict with ofb_softc in <dev/ofw/openfirm.h>
2001-06-08 00:32:01 +00:00
matt
f6d422beb8
Fix warning about braces & if. Include libkern.h for strncpy prototype
2001-06-08 00:21:45 +00:00
matt
ef047f21f8
Add multiple inclusion protection. Define prototypes for openfirm
...
routines used in cdevsw.
2001-06-08 00:19:17 +00:00
itojun
7f6ce64273
inject outgoing packet to bpf. KAME PR 358.
2001-06-08 00:17:05 +00:00
matt
75a27eccff
Rename pte_spill to pmap_pte_spill. Fix pmap_clear_{referenced,modify}
...
to return the previous state of the bit. Make it compile under
-Wmissing-prototypes -Wall. Change around some debug stuff.
2001-06-08 00:16:24 +00:00
rafal
a8bb9b127a
All soft interrupts are currently handled by soft interrupt 1, so make
...
all splsoftxxx() calls block soft interrupt 1 and make spllowersoftclock()
re-enable soft interrupt 1.
XXX: This needs to be reworked so that spllowersoftclock() only turns on
softclock interrupts, not all soft interrupt. That change is coming soon.
2001-06-08 00:09:28 +00:00
rafal
86d8f950ef
Fix initial interrupt mask settings for `hard' interupts to mask out soft
...
interrupts as well. The system is quite stable now that soft interrupts
don't pop up at random places where they're unexpected 8-)
Also, while here, fix CPU clock speed calculation for the Indy.
2001-06-08 00:02:41 +00:00
thorpej
0859a7601d
- Differentiate beteen the 8003 and 80c03 (the 80c03 has some additional
...
features).
- Implement crude multicast support -- enable reception of all multicast
frames if we have any addresses on the multicast list. TODO: use the
64-bit hash table on the 80c03.
- Implement promiscuous mode.
IPv6 doesn't quite work yet -- DAD finds a duplicate for the
link-local. The 8003 hears its own transmissions, but IFF_SIMPLEX
is not set, so I'm a little confused.
2001-06-07 23:05:51 +00:00
chris
4e6f32c9d7
Fix the broken stray irq handling for footbridge, this needs to be
...
propegated to other arm32 irq handlers, until there's a common core part
for doing irq handling.
Untested as I've no cards that generate stray irq's.
2001-06-07 21:47:36 +00:00
chris
75d8b9d463
Checkin fix to ARM7TDMI support. As per patch from John Fremlin to
...
port-arm32.
2001-06-07 21:07:22 +00:00
thorpej
b4e0748bf3
Don't use PCLK as the baud rate generator, as the Indy doens't
...
like that, and it has no effect on the Indigo2.
From Christopher SEKIYA <wileyc@rezrov.net>.
Also, query the "ConsoleOut" ARCS variable (i.e. "what the console
really is") rather than "console" ("what the console is configured
as").
2001-06-07 19:23:03 +00:00
mrg
d3b1cc167d
more SMP work:
...
make IPI's work. modify boot_secondary_processors() to clear the startup flag
in each cpu. new raise_ipi_wait_and_unlock() that calls raise_ipi(), waits
for the cpu to acknowledge it got the message, and then unlocks the msglock.
use the new framework in mp_{pause,resume}_cpus(). nmi_soft() takes a
`struct trapframe *', to be used by ddb.
2001-06-07 17:59:47 +00:00
mrg
ba991d978b
move ev_out32() here.
2001-06-07 17:54:35 +00:00
mrg
59024512bd
LKM friendly: move ev_out32() to netbsd32 specific code; add an ev_out32 hook.
2001-06-07 17:52:52 +00:00
mrg
51b7188429
make lkm friendly.
2001-06-07 17:49:51 +00:00
briggs
5d512c674c
GENERIC + memory disk hooks.
2001-06-07 17:08:13 +00:00
briggs
af0929e6ce
Enable a few more devices (adw, dpt, siop, sip, sd). Do not compile DEBUG.
2001-06-07 17:05:11 +00:00
briggs
7a3a78cfa3
Compile on sandpoint.
2001-06-07 16:48:09 +00:00
mrg
6246dceb77
print p_pid & p_comm for alignment errors.
2001-06-07 15:31:16 +00:00
thorpej
a7df60e8e9
Pass -N to the linker, so that it will generate a single PT_LOAD
...
section (a'la OMAGIC).
2001-06-07 15:26:31 +00:00
bouyer
df4739c8cb
Set TI_OPMODE_1_DMA_ACTIVE only if hardware assisted checksum isn't used
...
(FreeBSD does it this way). My Tigon II works with hardware assisted checksum
now.
2001-06-07 14:35:58 +00:00
wiz
e265f98875
Typos and grammer fixes in comments (misc/13133 by Michael K. Sanders)
2001-06-07 13:44:46 +00:00
wiz
fa87a2091d
Typos in comments (misc/13133 by Michael K. Sanders)
2001-06-07 13:32:46 +00:00
mrg
6b94f57396
make ifioctl() compat lkm friendly.
2001-06-07 13:26:48 +00:00
rafal
a1830df1bb
Fix a deadlock in the tx code -- the code checked the DMA status before
...
sync'ing the descriptor, leading to a race where the packet could complete
after the DMA check but before the sync of the descriptor, sending the code
into unknown territory and the DMA engine into space. Also, fix a bug with
spurious watchdog resets going off due to the if_timer not always being set
on transmit.
Finally, clean up use of hardcoded magic numbers, get them from hpcreg.h
when possible.
2001-06-07 12:20:42 +00:00
rafal
63f856cb2e
Add a bunch of defines for bits withing the ethernet-related registers so
...
the Seeq driver can use them instead of hardcoded constants.
2001-06-07 12:10:34 +00:00
enami
85fb541842
Fix typo; print sc->aue_intr_errs instead of sc->aue_rx_errs when
...
reporting interrupt errors.
2001-06-07 10:55:15 +00:00
leo
3aa99cbeac
We really need a wsdisplay on the Milan.
2001-06-07 08:41:11 +00:00
leo
e371e8a5ae
Try to search for an isa bus during console configuration too... Otherwise,
...
we miss the console keyboard on the Milan.
2001-06-07 08:35:29 +00:00
leo
3700ec551e
The newly generated config files.
2001-06-07 08:01:19 +00:00
leo
d355dc319f
Oops, we don't want 'MILAN' anymore....
2001-06-07 08:00:24 +00:00
leo
3bc0965e01
Everything you always wanted to know about Atari,Milan,IDE and byteswaps...
...
The Milan configuration is split up in 2 parts:
- MILAN_ISAIDE
Supports the traditionally formatted IDE disks on the Milan
- MILAN_PCIIDE
Supports the byte swapped formatted IDE disks on the Milan
If you want to read more, checkout the comment in MILAN.in...
2001-06-07 07:56:57 +00:00
leo
92a2e67c31
Remove the atari specific incarnation of wdc_isa.c. We don't need it (in
...
fact it didn't work that well either), all could be done by simply adding the
NOSTREAM options to the flags of the generic ISA frontend.
There was probably to much byteswapping in my brain when I invented this.
2001-06-07 07:23:02 +00:00
leo
72510eee6d
Make the WDC_{ATA|ATAPI}_NOSTREAM flags settable through configuration
...
options. Needed on the Atari Milan.
2001-06-07 06:33:48 +00:00
chs
762bab2606
implement pmap_clear_modify() correctly.
2001-06-07 05:29:13 +00:00
thorpej
ff5871412e
Correct the receive mode mask in the RXCMD register.
2001-06-07 05:19:26 +00:00
lukem
178aeb74a0
work around lint issue (inspired by similar work in sparc port)
2001-06-07 04:44:05 +00:00
lukem
5429ee5e02
add iha(4); it works in my pc164 after thorpej fixed a minor issue
2001-06-07 03:51:53 +00:00
thorpej
025decbccb
Don't clear a callout on a scsipi_xfer that has been scsipi_done()'d.
2001-06-07 03:44:00 +00:00
toshii
d69d2974a4
Sprinkle some volatile keywords around inline asm so that the optimizer
...
doesn't reorder critical section codes.
2001-06-07 02:38:59 +00:00
thorpej
d9b3317e3e
Rework fdalloc() even further: split fdalloc() into fdalloc() and
...
fdexpand(). The former will return ENOSPC if there is not space
in the current filedesc table. The latter performs the expansion
of the filedesc table. This means that fdalloc() won't ever block,
and it gives callers an opportunity to clean up before the
potentially-blocking fdexpand() call.
Update all fdalloc() callers to deal with the need-to-fdexpand() case.
Rewrite unp_externalize() to use fdalloc() and fdexpand() in a
safe way, using an algorithm suggested by Bill Sommerfeld:
- Use a temporary array of integers to hold the new filedesc table
indexes. This allows us to repeat the loop if necessary.
- Loop through the array of file *'s, assigning them to filedesc table
slots. If fdalloc() indicates expansion is necessary, undo the
assignments we've done so far, expand, and retry the whole process.
- Once all file *'s have been assigned to slots, update the f_msgcount
and unp_rights counters.
- Right before we return, copy the temporary integer array to the message
buffer, and trim the length as before.
Note that once locking is added to the filedesc array, this entire
operation will be `atomic', in that the lock will be held while
file *'s are assigned to embryonic table slots, thus preventing anything
else from using them.
2001-06-07 01:29:16 +00:00
lukem
7edbb27e74
delint lvalue cast abuse
2001-06-07 01:04:40 +00:00
soren
26603afde8
Update URL to documentation PDF.
2001-06-06 22:11:42 +00:00
rafal
8f6b092685
Jason's last fix broke builds with POOL_DIAGNOSTIC (the kernel didn't link
...
as pool_get was never defined). Fix that.
2001-06-06 22:00:17 +00:00
mrg
f88f49f432
add an extern for the coredump32 hook.
2001-06-06 21:46:59 +00:00
mrg
25e7951011
proto for coredump32
2001-06-06 21:45:56 +00:00
mrg
9b27fa3ff8
set the coredump32 hook. make LKM friendly.
2001-06-06 21:39:50 +00:00
mrg
b1708374d0
build svr4 & svr4_32 on sparc64.
2001-06-06 21:38:49 +00:00
mrg
c272b4d4a8
build an svr4_32 LKM. create common framework for svr4 & svr4_32
2001-06-06 21:38:01 +00:00
mrg
1ce89f683e
in coredump() remove the COMPAT_NETBSD32 #ifdef, and replace it with a hook.
...
move coredump32() into compat/netbsd32.
2001-06-06 21:37:19 +00:00
mrg
8b1f9462dc
make this build.
2001-06-06 21:34:23 +00:00
mrg
1833b2e5e6
define COMPAT_10 and COMPAT_13, add netbsd32_kern_sig.c and netbsd32_uvm_unix.c,
...
and on sparc64, add netbsd32_machdep.c netbsd32_sigcode.s.
2001-06-06 21:33:24 +00:00
mrg
b95ce67182
add sunos32_machdep.c sunos_sigcode.s for MACHINE=sparc64
2001-06-06 21:31:49 +00:00
mrg
a6a28df3e2
add netbsd32_uvm_unix.c and netbsd32_kern_sig.c
2001-06-06 21:30:28 +00:00
mrg
06f624518c
sync with uvm_unix.c 1.23
2001-06-06 21:30:07 +00:00
mrg
b0b1999665
uvm_coredump32() moved into compat/netbsd32.
2001-06-06 21:28:51 +00:00
mrg
85794da2bd
LKM friendly: move coredump32() here
2001-06-06 21:25:11 +00:00
mrg
5677baf886
LKM friendly: move uvm_coredump32() here
2001-06-06 21:24:39 +00:00
mrg
8c3d780729
build exec_elf.o LKM.
2001-06-06 21:21:30 +00:00
mrg
059d4936ab
extract the netbsd32, sunos, 32 bit svr4 and 64 bit svr4 sigcode out into
...
separate files, so that compat lkms can link with them as well.
2001-06-06 21:19:48 +00:00
mrg
ea39a5c3b4
make a NETBSD32 stack check LKM friendly.
2001-06-06 21:06:52 +00:00
mrg
9a5a253ef5
an EXEC_ELF32 module, for sparc64.
2001-06-06 20:45:59 +00:00
matt
695e5e7ab5
Changes new pmap, common param.h, vmparam.h, and moved includes.
2001-06-06 17:50:14 +00:00
matt
f294982771
Enable tlp for 21x4x chips.
2001-06-06 17:47:54 +00:00
matt
daf8279e4b
Change bebox port to use the include MPC6XX files and the new common bus.h
...
framework.
2001-06-06 17:42:29 +00:00
matt
e38a49d835
Include a common bus.h and bus_dma.c that powerpc ports can use
...
if they so choose.
2001-06-06 17:37:37 +00:00