ragge
3b4d7a2948
Must lock kernel when softclock is called from outside hardclock.
2001-05-29 21:28:14 +00:00
ragge
1cf7a84a88
Add a bunch of locking code for MP systems.
2001-05-29 21:27:25 +00:00
ragge
c20a10d57d
Call proc_trampoline_mp() after fork in multiprocessor environment.
2001-05-29 21:26:44 +00:00
ragge
6492868388
Change Swtch so that the old process context is stored directly and the
...
idle loop is on the interrupt stack instead of the last running process'
stack. This is needed to work in a multiprocessor environment.
2001-05-29 21:25:11 +00:00
thorpej
f0c1fb1bb2
Initialize DDB at boot time and break into it if the "d" argument
...
is specified to the kernel.
XXX PMON doen't load symbols for us -- need a dbsym(1) for ELF.
2001-05-29 18:40:25 +00:00
thorpej
5331656107
The QED RM7000 can use the same idle routine as the QED RM52xx.
2001-05-29 18:19:20 +00:00
thorpej
74fa4349ae
Install power-saving idle routines at the end of cpu_identify(). We
...
currently handle the QED RM52xx here.
2001-05-29 17:54:56 +00:00
thorpej
c8988c2caa
Add an idle loop routine for the QED RM52xx family. This uses the
...
RM52xx `wait' insn to power down the pipeline.
2001-05-29 17:51:55 +00:00
leo
3c596b34a3
We need the fonts for pci_vga too...
2001-05-29 10:39:56 +00:00
scw
9c1aa86e46
One less item (MD siop driver is no more).
2001-05-29 08:20:42 +00:00
leo
bb159c932e
Regen.
2001-05-29 06:45:56 +00:00
leo
dbacb7c9b6
Move over to pciide. My CDROM drive wouldn't work with the wdcisa attachment,
...
but it does work with the pciide attachment.
2001-05-29 06:42:21 +00:00
leo
49009d088a
Import pciide_machdep.c from i386.
2001-05-29 06:26:08 +00:00
leo
60c1352cd4
Prototype milan_vga_init()
2001-05-29 06:02:26 +00:00
leo
73cc88a7dd
Whoops, where did the include of vga_pci.h go?
2001-05-29 06:01:27 +00:00
leo
0f3cd124db
Fix compile error.
2001-05-29 05:58:18 +00:00
mrg
3783ca5d30
define _KERNEL_OPT as well as _KERNEL. we will use this in the future to
...
get kernel "opt_foo.h" headers, rather than _KERNEL && !_LKM.
2001-05-29 02:20:20 +00:00
thorpej
f2800b2299
Don't have conf.h (pasto).
2001-05-28 23:25:25 +00:00
chs
9e78300eda
remove check for too-small MSGBUFOFF now that the reason for it is gone.
2001-05-28 22:47:05 +00:00
thorpej
9d8dc820a8
Forgot bsd.kinc.mk
2001-05-28 22:34:25 +00:00
chs
ae0ddea4f6
in pagemove(), use pmap_k{enter_pa,remove} instead of pmap_{enter,remove}
...
since buffer cache pages aren't really managed by UVM.
2001-05-28 22:16:17 +00:00
chs
21b70bf745
assert that pmap_extract() succeeds.
2001-05-28 22:11:45 +00:00
chs
8c221ed505
style cleanup.
2001-05-28 22:00:12 +00:00
chs
e49a700498
remove a useless call to uvm_map_protect(). the kernel text is already
...
mapped read-only in pmap_bootstrap() and the comment which tried to
explain why this might be needed anyway didn't make any sense.
2001-05-28 21:54:26 +00:00
chs
1cedb649d4
move the spl*() and IPL_* definitions to intr.h.
2001-05-28 21:06:18 +00:00
chs
a8651c4b09
make sun3x work again after the recent change to the m68k cpu_kcore_hdr:
...
allocate a page for dumps like the sun3 does rather than using part of
the msgbuf page. this also lets the msgbuf use the full msgbuf page.
2001-05-28 20:56:54 +00:00
chs
a83346f337
don't abuse cf_unit.
2001-05-28 20:52:34 +00:00
scw
d5c72b21e5
s/ncsrc/osiop.
...
While I'm here, ditch some excess baggage which is useless for
the RAMDISK kernel.
2001-05-28 18:39:45 +00:00
he
47ae105daa
Add Makefile snippets to install netboot in installation/netboot
...
under ``make release''.
2001-05-28 18:21:12 +00:00
thorpej
af63f8979c
D'oh, clear the soft interrupt bits in CAUSE *before* servicing
...
soft interrupts, rather than after, so that soft interrupts scheduled
by other soft interrupts don't get lost.
2001-05-28 18:19:27 +00:00
thorpej
16b9c60621
A port to the Algorithmics MIPS evaluation boards. We currently
...
support the P-5064, which has a QED RM5xxx CPU soldered on.
There is some skeletal support for the P-4032 (an older board, which
had an R4xxx CPU). There are some placeholders for the P-6032, which
is their newest board, but no real code yet (the P-6032 has a different
PCI controller, the Algorithmics BONITO).
There are still some (apprently softintr-related) problems with the
algor kernel, but it works well-enough to self-host.
Kudos to Allegro Networks for loaning me a P-5064 board on which to do
the port.
2001-05-28 16:22:13 +00:00
kleink
7918542181
Need <lib/libkern/libkern.h>.
2001-05-28 15:53:51 +00:00
leo
ed8360b3d7
Add missing semicolon.
2001-05-28 14:40:49 +00:00
scw
eb9637dd7e
Add COMPAT_15 and comment out COMPAT_SUNOS. (It's hardly used and saves
...
a bit of space on low memory models).
2001-05-28 11:14:41 +00:00
leo
2bcf7a5971
Add 'prev_sr' argument to milan_isa_intr() so we can properly defer interrupts
...
that come in at the wrong time.
2001-05-28 08:41:37 +00:00
leo
b1ff453ae9
Add Milan console initialisation code.
2001-05-28 08:30:03 +00:00
leo
722a3ab56b
Add VGA console probes.
2001-05-28 08:12:47 +00:00
leo
a82df0faed
Pass iot and memt to check_for_vga()
2001-05-28 07:22:37 +00:00
leo
78dbcfe665
Add bus_space_vaddr().
2001-05-28 07:16:11 +00:00
leo
be288018e2
PCI_VGA_SIZE -> PCI_MEM_SIZE. (Plus some comments on those constants).
2001-05-28 06:43:19 +00:00
minoura
2d8c98280c
Cleanup. Addresses port-x68k/13051.
2001-05-28 06:18:20 +00:00
matt
0a3911863f
Use structure assignment instead of bcopy.
2001-05-28 00:15:10 +00:00
matt
8fb5853698
Change the bcopy's to structure assignments.
2001-05-28 00:12:21 +00:00
wiz
3686c30f46
Add RTC_OFFSET=0 line.
2001-05-27 23:52:41 +00:00
wiz
c4633b8744
Add RTC_OFFSET line (see port-macppc/10265).
2001-05-27 23:39:03 +00:00
wiz
8676d3773e
Honour RTC_OFFSET. Patches from Y. Takizawa <you@nightbreak.org> via
...
SUNAGAWA Keiki in port-macppc/10265. Also addresses port-macppc/10949.
2001-05-27 23:38:12 +00:00
pk
aad64f942b
!_LKM inclusion protection for opt_kgdb.h
2001-05-27 20:59:22 +00:00
matt
e2148768dc
Change _MACHINE_PIO_H to _POWERPC_PIO_H
2001-05-27 20:59:15 +00:00
is
45effccbef
make the defopted "LEV6_DEFER" work for LKMs, too.
2001-05-27 20:22:57 +00:00
ragge
b7fc0b163a
Compare arguments must have correct order, won't work as expected otherwise.
2001-05-27 19:33:20 +00:00
ragge
aee2068e10
Don't install machine/loadfile_machdep.h; per PR#12666.
2001-05-27 15:37:06 +00:00
sommerfeld
7d1ef74930
Fix kern/13049: missing unlock on failure exit from pmap_enter()
2001-05-27 14:31:27 +00:00
sommerfeld
4aaf078a4a
Assorted microtime fixes (similar to fixes I made yesterday when
...
porting this code to i386mp branch):
- call microset() early on each cpu so that calls to microtime()
before the first clock interrupt don't return trash. this manifested
itself as garbage runtimes in "ps" for kernel threads.
- avoid races between hardclock updating "time" and microset on a
different cpu reading it by adding a "microset_time" global which is
initialized from "time" on the primary cpu.
- call microset every hz ticks, not every hz+1 (cosmetic)
2001-05-27 13:53:24 +00:00
kleink
021d12d997
Add 35401A drive (not picker) support; from Jarkko Teppo in PR
...
port-hp300/11183.
2001-05-27 09:09:05 +00:00
chs
7520514a5e
don't abuse cf_unit.
2001-05-27 06:30:27 +00:00
chs
d8e8c90c8a
don't abuse cf_unit.
2001-05-27 06:19:39 +00:00
gmcgarry
fadbc7d451
- remove dependency on libsa by mkboot since it is a host tool.
...
- adjust for endianness of host.
Cross-compiling of ELF bootblocks now works.
2001-05-27 05:35:11 +00:00
gmcgarry
e8c65098f6
Protect against possible alignment problems.
2001-05-27 05:31:58 +00:00
gmcgarry
f94a9b7669
Alignment for on ELF systems. ELF bootblocks now work.
2001-05-27 05:30:41 +00:00
minoura
d0403f9f11
Add missing line in recording. Copy & paste error...
2001-05-27 05:30:02 +00:00
gmcgarry
9be5657e02
Alignment fix. rd disks now work on ELF systems.
2001-05-27 05:29:48 +00:00
minoura
cbfe174737
Reset dx_nextoff and dx_nextsize before transfer.
2001-05-27 02:18:07 +00:00
chs
6ebe782061
mcount() is named __mcount() on ELF, do the right thing.
2001-05-27 01:01:08 +00:00
chs
f5065c9c55
change the one non-extended asm back to using a single % before a
...
register name. the rule is that extended asms should have the
regsiter-prefix %s escaped by doubling them, but non-extended asms
don't do the escaping thing, so there the %s should not be doubled.
2001-05-27 00:58:57 +00:00
minoura
423279efd8
Honor rtc_offset.
2001-05-26 21:32:30 +00:00
chs
11a9651c8f
replace vm_page_t with struct vm_page *.
2001-05-26 21:27:10 +00:00
chs
e44e9dec8a
replace vm_page_t with struct vm_page *.
2001-05-26 21:27:02 +00:00
marcus
e90e316b11
Changed maple device to attach per function instead of per unit.
...
Raw maple unit access is now possible through /dev/maple*.
2001-05-26 19:04:39 +00:00
chs
772a964bef
fix typo.
2001-05-26 18:16:01 +00:00
bjh21
c7a388d937
Turn "oak" into an MI podulebus driver. Tested on my new A310.
2001-05-26 17:49:46 +00:00
sommerfeld
bdecf91bef
Add infrastructure to allow ports to override build of in6_cksum.c by
...
enabling the INET6_MD_CKSUM option, which is defopted into opt_inet.h.
Supply an i386 assembly version of in6_cksum in in_cksum.s; on
P6-family cpu's, this is is roughly 20% faster than the C code in
sys/netinet6 for ethernet-mtu-sized mbufs in L1 cache. Turn on
INET6_MD_CKSUM in i386/conf/std.i386
While we're here, also nuke some now-obsolete XXX comments from
in_cksum.s.
2001-05-26 17:46:11 +00:00
chs
118ddca24a
replace {simple_,}lock{_data,}_t with struct {simple,}lock {,*}.
2001-05-26 16:32:40 +00:00
bjh21
e4e4a4a982
Fix "Unknown or missing variable at line 3210". I'm sure this isn't the first
...
time I've fixed this bug.
2001-05-26 15:58:26 +00:00
pk
e95e804c2f
Pull in "opt_kgdb.h"; see PR#13036.
2001-05-26 10:22:32 +00:00
tsutsui
2a70c2afdd
Fix pte_size values changed by my misunderstanding in the previous.
2001-05-25 23:57:06 +00:00
sommerfeld
e2a08caf68
Replicate pte unmap change from i386 pmap.c
...
(fix kern/12554 workaround).
2001-05-25 23:34:44 +00:00
oki
0cc97f1b55
Fixed panic on the cpu made by unknown vendor,
...
such as Transmeta Crusoe.
2001-05-25 04:39:33 +00:00
chris
7dd0515e15
Use ffs asm routine in arm32 context switch code.
2001-05-23 21:49:57 +00:00
chris
f220cad8dd
Use ffs like routine in the footbridge irq handling. It is now very similair to the iomd irq handler.
...
Note that I've kept the existing quirk of still passing the irq to the next handler even if the irq handler returned 1. I need to investigate why we do this.
2001-05-23 21:23:54 +00:00
chris
cbf8e0eb95
Add a files.footbridge for inclusion by cats and netwinder. This is to make moving of the footbridge dir easier (when it eventually moves from arm32)
...
Also remove EBSA285 defopt from the netwinder file as the netwinder isn't an eval board.
2001-05-23 21:21:42 +00:00
chris
8901caf8ff
Create an asm based version of in4_cksum based on the sparc version.
...
Also don't compute psuedo header for nxt == 0
2001-05-23 19:33:48 +00:00
toshii
34691495bb
Add some PCMCIA devices.
2001-05-23 16:52:34 +00:00
sommerfeld
e171bbe08e
Correct handling of nxt==0 (skip pseudoheader) case.
...
(It helps a lot if registers contain the expected values)
While we're in here, also correct parameter names in the lint goo.
2001-05-23 15:56:51 +00:00
sommerfeld
8676150cb7
In kern/12554 workaround in pmap_page_remove, don't forget to unmap
...
(and unlock) the other pmap's pte's before continuing to the next
pmap. Avoids pmap lock leaks (generates LOCKDEBUG warning, deadlocks
MULTIPROCESSOR).
2001-05-23 04:25:35 +00:00
hubertf
9422f74ca8
Allow overriding the 'install' target.
...
(I have a nice 'install' target for cobalts here, but that only works there.
I guess I'll put that into htdocs now that the cobalt port uses Makefile.mips)
2001-05-23 02:35:40 +00:00
toshii
38b2a7b8bf
Optimize softintr_dispatch by replacing SetCPSR calls by inlined asm.
...
Result is ~1% improvement in ping -f rate.
2001-05-23 02:20:47 +00:00
chs
952609a853
fix printf format strings and the call to ncr53c9x_attach() so that
...
this compiles again.
2001-05-23 02:14:07 +00:00
matt
1da3759634
Need a compile directory for netwinder
2001-05-22 22:48:09 +00:00
chris
6985df3d25
Add installable CATS kernel
2001-05-22 21:36:45 +00:00
chris
2addefd3d7
Start moving cats out of the arm32 dir into it's own arch dir.
2001-05-22 20:59:25 +00:00
toshii
822c8273de
Instead of scheduling all interrupts at IPL_BIO, use an IPL_SERIAL
...
handler to clear hardware interrupt bit and schedule actual handlers
using soft interrupts registered with desired IPL.
XXX This slows down interrupt handling a bit (up to a few percent with
XXX ping -f or make-over-NFS benchmarks) in some cases.
2001-05-22 17:54:50 +00:00
toshii
3d513c3e7a
Implement generic soft interrupt for hpcarm.
2001-05-22 17:25:15 +00:00
toshii
7073a10bbd
Nuke current_mask.
2001-05-22 17:01:16 +00:00
soda
94bba09883
bus_space'fied fd driver by TSUTSUI Izumi,
...
works with PICA-61 and Microsoft-Jazz,
but still doesn't work with his NEC-JC94 (NEC Express 5800/230)
due to data overrun.
2001-05-22 03:22:49 +00:00
minoura
d5d0b41422
Reset the status register after abort.
2001-05-22 00:16:49 +00:00
minoura
8809460317
Correct ring buffer handling in recording. From Isaki-san.
2001-05-22 00:15:54 +00:00
uwe
b3421335d9
There is no iommu prom node on JavaStation 1 and sbus node is directly
...
under root. If /sbus is encountered on sun4m - attach implied iommu
first and attach /sbus under it. Adjust bootpath accordingly to match
the attachment.
2001-05-21 22:44:07 +00:00
petrov
2867b0b94c
PR#12885, added PROM name translations for fas, from John Heasley <heas@shrubbery.net>
2001-05-21 21:25:28 +00:00
uch
7fd9577e9e
fix WSDISPLAYIO_PUTCMAP bug.
2001-05-21 18:37:30 +00:00
toshii
128d6fc64b
Check RBB and REB bits in the console getc function and go to DDB
...
when a break signal is detected.
2001-05-21 16:50:35 +00:00