Commit Graph

745 Commits

Author SHA1 Message Date
christos
b300b74469 Disable SYSTRACE by default on all kernels (discussed with core) 2006-08-12 15:29:52 +00:00
ad
f474dceb13 Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
tsutsui
84180e1158 - reorganize bootinfo structures and fix bootinfo handling in bootloader
(mostly based on pmax)
- pass symbol info from bootloader to kernel via bootinfo
  (currently bootinfo is allocated in the bootloader and
   copied by kernel later; maybe we should rethink about this)
- use passed bootinfo to initialize ksyms(4) in kernel
- remove options SYMTAB_SPACE from kernel config files
- bump bootloader version
2006-07-22 18:15:05 +00:00
tsutsui
6efaa65c79 Add "-I${S}/../common/include" to CPPFLAGS for libprop sources in libkern.
XXX: shouldn't this be handled by sys/lib/libkern/Makefile.inc?
2006-07-22 14:11:35 +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
he
22e14a460c Add 8k more SYMTAB_SPACE so that it fits again. 2006-07-09 16:52:54 +00:00
tsutsui
554727189c Use register macro defined in <dev/ic/i8259reg.h>. 2006-07-02 04:22:38 +00:00
tsutsui
3eb4d24002 No need to export autoconf.h to userland. 2006-07-01 17:24:19 +00:00
tsutsui
06801cfcf5 Remove obsolete display.h. 2006-07-01 17:19:39 +00:00
tsutsui
0b60e69029 Use MI <dev/ic/pcdisplay.h> rather than MD <machine/display.h>. 2006-07-01 17:15:46 +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
eec8d4d1e5 Make some local functions static. 2006-06-25 16:52:01 +00:00
tsutsui
0aa05e92ff Remove unused struct abus stuff. 2006-06-25 16:46:15 +00:00
tsutsui
d71cfc62f0 Make some local functions static. 2006-06-25 16:44:02 +00:00
tsutsui
6e1a8fe413 - make a local variable static
- remove struct user dumppcb, which is declared in mips_machdep.c
2006-06-25 16:29:14 +00:00
tsutsui
82f68c0092 Rename arc_trap.c to interrupt.c, which derived from ancient pica_trap.c
but currently contains only interrupt stuff. Ok'ed by soda.
2006-06-25 16:11:41 +00:00
tsutsui
f2e4550a60 Implement separate statclock(9) handler which uses the MIPS3 CPU INT5
internal timer compare register. Based on hp300 and arm implementation.

This is enabled by options ENABLE_INT5_STATCLOCK, but disabled by default.
2006-06-24 04:00:21 +00:00
tsutsui
2a8a21a021 Misc minor cleanup for arc interrupt handlers:
- always enable options MIPS3_ENABLE_CLOCK_INTR and just clear the compare
  register in cpu_intr() to make CLKF_BASE() works
  properly
- prepare only possible number of cpu_inttab
- use macro for interrupt priority number passed to arc_set_intr()
  to avoid confusion
- merge arc_hardware_intr() into cpu_intr()
- check independent timer interrupt first in cpu_intr()
- tweak MIPS_SR_INT_IE before calling hardclock timer handlers so that
  spllowersoftclock(9) will be invoked properly in hardclock(9)
- reenable interrupt for timer in cpu_intr() rather than each timer handlers

okay'ed by soda.

Note the real fix is to make CLKF_BASE() check all independent
interrupt sources including jazz and isa devices.
2006-06-24 03:50:38 +00:00
tsutsui
0d19f25f87 Fix typo and a function name in panic message. 2006-06-17 14:11:16 +00:00
tsutsui
0b8cd19c9e Remove extern from function declarations. 2006-06-17 14:10:28 +00:00
tsutsui
ec9a7dcbfd - don't forget to set _dm_vmspace in BUS_DMA_ALLOCNOW case
- also set ARC_DMAMAP_COHERENT hint in the case if buf is in KSEG1
  (I'm not sure if ALLOCNOW is worth for linear buffer, i.e. nsegs=1 case)
2006-06-15 17:06:19 +00:00
tsutsui
04595a48c6 Before calling the handler of timer at isa for hardclock(9),
clear MIPS_SR_INT_IE in struct clockframe status to prevent
unintentional spllowersoftclock(9) in hardclock(9).
This may be required because current CLKF_BASEPRI() implementation
of NetBSD/arc doesn't check ICU_MASK and all ISA devices share
the same MIPS CPU INT2 interrupt.

BTW, has anyone tried IPL_ICU_MASK on any mips ports?
2006-06-13 13:51:31 +00:00
tsutsui
5c40f381f5 Account ISA interrupts by evcnt(9) 2006-06-12 15:39:01 +00:00
tsutsui
0f6618f084 - rename struct intrhand -> struct isa_intrhand
- remove unused ih_what member
2006-06-12 15:24:31 +00:00
tsutsui
ac30b81a3c Remove a declaration of nonexistent function. 2006-06-12 15:06:32 +00:00
tsutsui
8ce1487a46 Move arcsisabr.c from arc/isa to arc/dti because it's DescStation specific. 2006-06-12 15:04:40 +00:00
tsutsui
114eee6487 Check whether the specified interrupt handler is valid before referring it. 2006-06-11 06:34:52 +00:00
tsutsui
f6e0502337 - use CPUFLAGS rather than CFLAGS/AFLAGS
- specify "-march=r4000 -mabi=32" rather than -mips2
2006-06-11 05:03:20 +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
elad
8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
tsutsui
edf0da13d9 In !defined(PCI_NETBSD_CONFIGURE) case, check PCI_ID_REG and PCI_CLASS_REG
before CSR fixup.
2006-04-16 07:10:45 +00:00
tsutsui
f66776b16a Pass mips_dcache_align to pci_configure_bus(9) for cacheline_size. 2006-04-16 05:09:58 +00:00
tsutsui
78354f8518 Add bmtphy at mii, found on 3Com 3C982-TXM:
> bmtphy0 at ex0 phy 24: Broadcom 3c905C internal PHY, rev. 7
2006-04-15 12:58:26 +00:00
tsutsui
0d0bf3b542 Add support for pci_configure_bus(9) (a.k.a. options PCI_NETBSD_CONFIGURE)
so that PCI devices over ppb(4) work properly on PCI based NEC machines.

Tested on my NEC JC94 (Express5800/230) and 3Com 3C982-TXM,
which has a DEC/Intel 21154 PCI-PCI bridge and two 3C920 Ethernet chips.
2006-04-15 12:53:09 +00:00
tsutsui
c51f229f25 Detect FAS216 chip on some Olivetti machines. (untested)
Based on a patch for old asc driver from Maki Kato:
http://mail-index.netbsd.org/port-arc/2000/10/07/0003.html
2006-04-15 12:41:45 +00:00
tsutsui
7336546bdd This file is mostly identical with GENERIC except pccons/wscons,
so just include GENERIC and use "no" keyword of options(4).

XXX arc/dev/pccons.c needs cleanup for -Wshadow and -Wcast-qual.
2006-04-15 12:26:22 +00:00
tsutsui
a410f672e0 Ack interrupts only if they are actually handled. 2006-04-15 09:07:50 +00:00
tsutsui
b34ad9c583 Misc cosmetics. 2006-04-15 09:01:11 +00:00
tsutsui
c234c43a71 Include "ioconf.h" rather than declare struct cfdriver foo_cd in each file. 2006-04-15 08:49:47 +00:00
blymn
3c0adb7d99 Make i/o statistics collection more generic, include tape drives and
nfs mounts in the set of devices that statistics will be reported on.
2006-04-14 13:09:05 +00:00
tsutsui
9c7179ce5d Remove declarations for cpu_model[] since it's in <sys/systm.h>. 2006-04-09 01:18:14 +00:00
pavel
dc1372c547 Add stf to all kernel configs which have INET6 and gif, except the INSTALL
ones and those for specific machines of developers. PR 32304.

OK'ed by rpaulo.

N.B. stf is a cloning device, so it still must be enabled by
"ifconfig stf0 create".
2006-03-28 20:58:39 +00:00
thorpej
21374641a5 Use device_unit(). 2006-03-26 04:32:33 +00:00
yamt
ec5a93183a merge yamt-uio_vmspace branch.
- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.
2006-03-01 12:38:10 +00:00
thorpej
a1050c527b Use device_is_a(). 2006-02-25 17:32:43 +00:00
thorpej
458b3e43f7 Use device_parent(). 2006-02-23 05:37:46 +00:00
perry
fbae48b901 Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
2006-02-16 20:17:12 +00:00
cube
6ff13154dd Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
2006-02-05 05:01:48 +00:00
rpaulo
df5390003c bpfilter doesn't accept count anymore. 2006-02-04 02:42:27 +00:00
reinoud
a92fdbbc53 Add commented out UDF file-system entry in all GENERIC configurations. 2006-02-02 21:32:08 +00:00