Commit Graph

431 Commits

Author SHA1 Message Date
jmmv
7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
manu
f309b668fd - Document COMPAT_15 as doing nothing
- Add COMPAT_15 to all the kernel that had COMPAT_14, for the sake of coherency
- Remove the only occurences of #ifdef COMPAT_15 in the tree: for the ARM
ports, COMPAT_15 was always used in conjunction with EXEC_AOUT. Only EXEC_AOUT
matters here.

This address kern/18407
2006-09-27 21:42:04 +00:00
tsutsui
afb7d3cbe0 Protect from multiple inclusion. 2006-09-26 13:11:59 +00:00
tsutsui
dfef23e0d0 Tweak status value in struct clockframe before calling mips3_clockintr()
so that spllowersoftclock(9) in hardclock(9) will be handled properly.
2006-09-16 13:31:44 +00:00
tsutsui
e5dc12ca9c Change mips3_clockintr() to take (struct clockframe *) rather than
pc and status since it calls hardclock(9) anyway.
OK'ed by gdamore on port-mips.
2006-09-10 14:27:38 +00:00
tsutsui
10e0e7415c Remove or comment out now unused code after MI mips3_clockintr migration. 2006-09-10 06:41:09 +00:00
gdamore
bf6fc8ef63 Various improvements to make the common mips3 clock handling more generally
useful.  The functions delay, cpu_initclocks, and setstatclcokrate have been
renamed to mips3_delay, mips3_initclocks, and mips3_setstatclockrate.

We provide weak aliases for the original names, so machdep code doesn't have
to provide wrapper routines.  (Giving good performance.)

I've moved mips3_clockintr, mips3_initclocks, and mips3_setstatclockrate to
their own mips3_clockintr file, because some ports may not be able to use
these, and its senseless to carry that baggage.
2006-09-08 23:39:27 +00:00
gdamore
5ebcd1bf4f Convert to common mips3_cp0_counter clock.
Convert to timecounters.

From Rivo Nurges (rix at estpak dot ee).  ok soren@, tested by simon@.
Note that this means we aren't using the gt clock, and maybe we should clean
that up a bit.
2006-09-07 03:38:54 +00:00
tsutsui
087695a56b Switch cobalt to MI todr. 2006-09-04 20:30:40 +00:00
christos
e0df1e4c51 PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
2006-08-26 20:26:43 +00:00
tsutsui
6ff205ce76 Remove obsolete #options VERIFIED_EXEC, found by grep(1). 2006-08-26 07:59:21 +00:00
riz
a9815feffa Vendor GALILEO is now MARVELL. 2006-08-22 21:42:19 +00:00
tsutsui
fea89b198e Add options SOSEND_NO_LOAN. See the following comment for details:
---
# XXX Disable zero-copy page loaning in sosend() temporarily:
#     PV mappings created by sosend_loan() in sys/kern/uipc_socket.c may
#     produce virtual cache aliases and it seems to cause TLB MISS panic
#     in cache flush code called from bus_dmamap_sync(9) PREWRITE ops
#     during heavy TX packet traffic on tlp(4).
2006-08-22 16:30:41 +00:00
christos
b300b74469 Disable SYSTRACE by default on all kernels (discussed with core) 2006-08-12 15:29:52 +00:00
uwe
a2668e7027 Link libkern last. It contains functions normally found in libgcc, so
other libraries might have references to them.

Makes this compile with gcc4 (that emits calls to __ash[rl]di3 in libsa).
2006-08-12 11:38:11 +00:00
drochner
84f50d1b92 don't install <machine/db_machdep.h>, this is kernel only 2006-07-26 19:54:56 +00:00
tsutsui
6b93d0f87d Use CPUFLAGS="-march=vr5000 -mabi=32". 2006-07-19 15:33:53 +00:00
tsutsui
fd040c4006 Add and update misc items. 2006-07-18 13:24:39 +00:00
tsutsui
e621e8f3df - always enable options MIPS3_ENABLE_CLOCK_INTR so that spllowerclock(9)
works properly
  (XXX: the real fix is to implement proper CLFK_BASEPRI())
- prepare an independent statclock(9) handler which use MIPS3 CPU internal
  clock interrupt. Enabled by options ENABLE_INT5_STATCLOCK, but not enabled
  by default.
2006-07-18 12:51:01 +00:00
tsutsui
fe55d37a26 Remove obsolete comment. 2006-07-18 12:21:42 +00:00
tsutsui
970c192eba - configure PCI space for viaide so that DMA will work even if the firmware
doesn't map DMA registers properly
- enable viaide secondary port explicitly which isn't enabled by some firmware

Tested on RaQ and RaQ2.
2006-07-15 08:08:23 +00:00
gdamore
34537908ab Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@.  Fixes PR port-evbmips/32362.
2006-07-13 22:56:00 +00:00
liamjfoy
aeee5deab9 Add CARP to GENERIC kernel configs. CARP is not enabled by default.
ok: christos
2006-06-28 15:19:27 +00:00
tsutsui
8ff2abc2ad space nits. 2006-06-10 12:35:01 +00:00
tsutsui
a46e8b9247 Remove unneeded #include headers. 2006-05-31 13:20:42 +00:00
tsutsui
d241536854 Use __predict_true() and __predict_false() in some critical handlers. 2006-05-31 13:14:13 +00:00
tsutsui
cbe0593dd5 Cleanup ICU (i8259 compatible PIC) interrupt handling code:
- move ICU interrupt stuff from pci/pcib.h to cobalt/machdep.c
  because ICU should be initialized before pcib is attached
- initialize ICU more properly
- check interrupt types and set ELCR (edge/level control registers)
  accordingly in icu_intr_establish()
- check requested IRQ line and call only a necessary hander in icu_intr()
- use specific EOI to ack interrupts rather than AEOI
- use macro defined in <dev/ic/i8259reg.h>
2006-05-31 12:59:39 +00:00
tsutsui
2dba0c5647 Initialize the GT64x11 PCI timeout and retry register with a value taken
from Linux/MIPS, which improves viaide xfer performance significantly.
2006-05-28 12:52:07 +00:00
tsutsui
a465c6b884 Tweak bus_space_barrier(9) macro to appease
"left-hand operand of comma expression has no effect"
warnings by gcc4.
2006-05-26 13:23:34 +00:00
tsutsui
21d08156dc Change range of PCI I/O space for pci_configure_bus(9)
so that viaide(4) works with PCI fixup (not enabled yet).
2006-05-20 03:38:03 +00:00
tsutsui
7ac8789a63 Use cobalt_id to probe com at mainbus. 2006-05-19 19:33:56 +00:00
tsutsui
373ffecde6 Add bus_space_*_stream_N() macros, which are identical with non-stream ops. 2006-05-18 15:37:05 +00:00
tsutsui
68617d79ff Enable options MIIVERBOSE. 2006-05-18 14:45:28 +00:00
tsutsui
d6eeae4a4e Add definitions for the PCI timeout and retry register. 2006-05-17 17:31:55 +00:00
tsutsui
52677b4154 Add ral at pci, and enable pseudo-device pppoe.
Tested and reported by Markus W Kilbinger on port-cobalt.
2006-05-16 13:33:53 +00:00
tsutsui
df99509f85 According to src/gnu/dist/binutils/gas/config/tc-mips.c
and src/gnu/dist/gcc/gcc/config/mips/mips.c,
CPUFLAGS="-mips2 -mtune=vr5000" is enough even for Rm523x CPUs.
2006-05-15 12:17:11 +00:00
elad
8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
tsutsui
d90fe882d9 Specify CPUFLAGS for Rm523x:
> makeoptions	CPUFLAGS="-mips2 -Wa,-mips2 -Wa,-mtune=rm5230"

before:
5693.654u 1059.921s 1:52:29.76 100.0%   0+0k 310+8815io 2493pf+0w

after:
5680.013u 983.282s 1:51:00.49 100.0%    0+0k 311+9015io 2494pf+0w
2006-05-14 14:27:14 +00:00
tsutsui
3eb8ea4219 Pull slightly optimized BUS_DMASYNC_PREREAD op from other mips3 ports. 2006-05-14 05:53:42 +00:00
tsutsui
be8fa802b7 Explicitly mask timer0 interrupt until cpu_initclocks(9). 2006-04-21 19:04:57 +00:00
tsutsui
d1f9bbe0d6 Fix an include path. 2006-04-21 18:21:30 +00:00
tsutsui
10918e2c75 Account interrupts by evcnt(9). 2006-04-21 18:17:45 +00:00
tsutsui
f35c65dfaa Handle interrupts in priority order. 2006-04-21 17:55:27 +00:00
tsutsui
39c93ac321 Oops, fix botch in previous. 2006-04-21 17:16:17 +00:00
tsutsui
fb8457daf7 Return if interrupt is handled in icu_intr(). 2006-04-21 17:14:08 +00:00
tsutsui
8187a233b2 Make a local variable static. 2006-04-21 17:04:26 +00:00
tsutsui
661d2895e2 - initialize cpuspeed and curcpu() according to cobalt model id
- switch to cpu cyclecounter based delay(9), taken from evbmips
2006-04-21 16:52:15 +00:00
tsutsui
bf95794e71 - add prefix ih_ to cookie_type member in struct cobalt_intrhand
- clear the cookie type in disestablish functions
- some cosmetics
2006-04-21 16:27:33 +00:00
tsutsui
f07646e1ff - remove "extern" from function declarations
- remove unused intrcnt[] declaration
2006-04-21 16:08:51 +00:00
tsutsui
205083b135 - replace magic numbers with a dumb macro
- fix typo
2006-04-21 15:46:07 +00:00