Commit Graph

33025 Commits

Author SHA1 Message Date
thorpej
eaaed308cf Compare driver name, don't check against zstty_cd. 2002-09-26 20:51:44 +00:00
thorpej
c75e60ed75 Get the pointer to the driver name early, rather than constantly
deferencing the cfdriver pointer.
2002-09-26 20:45:42 +00:00
thorpej
6c87786450 G/c external reference to ibus_cd. 2002-09-26 20:36:51 +00:00
thorpej
958db4d3b7 No need to check that parent's cfdriver is ioasic_cd. 2002-09-26 20:36:14 +00:00
thorpej
98f612ef11 No need to check that that parent's cfdriver is ibus_cd. 2002-09-26 20:33:25 +00:00
thorpej
7f33c64040 Get the pointer to the driver name early, rather than constantly
deferencing the cfdriver pointer.
2002-09-26 20:30:50 +00:00
thorpej
c12a2960bb In sysfpgamatch(), the expression "cf->cf_driver == &sysfpga_cd" is
always true, so just return the constant 1.
2002-09-26 20:25:41 +00:00
thorpej
3280b330bb Get the pointer to the driver name early, rather than constantly
deferencing the cfdriver pointer.
2002-09-26 20:18:24 +00:00
thorpej
88b0700853 Const poison. 2002-09-26 20:02:47 +00:00
thorpej
89dd8c023c Get the pointer to the driver name early, rather than always dereferencing
the cfdriver pointer.
2002-09-26 19:04:59 +00:00
thorpej
274c086b22 Remove <sys/map.h> 2002-09-26 18:54:30 +00:00
martin
8b125f54cb Remove include of <sys/map.h>, since it's gone now (and wasn't used
here anyway).
2002-09-26 08:49:34 +00:00
grant
8dca22997c ep0 at isa? -> ep* (ala GENERIC), so ep instances during install are
consistent with GENERIC.
2002-09-26 07:30:17 +00:00
matt
b6b04cb00c In mftb(), make sure we say we are clobbering cr0. 2002-09-26 01:13:32 +00:00
thorpej
71404bb533 Don't include <sys/map.h>. 2002-09-25 22:21:01 +00:00
thorpej
dc5c7db69d Don't use rmaps; use extent maps. 2002-09-25 21:58:39 +00:00
thorpej
d3f6afbf48 Don't use rmaps; use extent maps instead. 2002-09-25 21:25:39 +00:00
thorpej
233188a90d Set extio_ex_malloc_safe at the end of cpu_startup(). 2002-09-25 20:05:26 +00:00
thorpej
da13a0afc7 Replace resource map usage with extent maps. 2002-09-25 19:30:22 +00:00
cgd
e4cb5327e8 For ISA intrs 0-15, use string of the form "isa intr NN", rather than
just "isa intr".  Having vmstat -i show multiple "isa intr" lines w/
different counts is less than desirable.  Reviewed by thorpej.
2002-09-25 17:05:26 +00:00
martti
81e8d78cd4 Add one space between "#option" and "<tab>IPFILTER_DEFAULT_BLOCK" 2002-09-25 11:49:48 +00:00
pooka
d623a21172 iwic@pci 2002-09-24 22:07:46 +00:00
uwe
b2d1377685 Drop vga at pci that has no chance of working anyway. Add commented out igsfb at pci.
Add wscons pseudo devices and some more wscons options.
2002-09-24 18:27:55 +00:00
thorpej
787cbc6921 Fix some const warnings. 2002-09-24 18:14:35 +00:00
thorpej
c4058929fe Fix some const warnings. 2002-09-24 17:18:45 +00:00
provos
5eeb6241c7 enable systrace. approved by itojun and perry 2002-09-24 14:47:56 +00:00
ad
002a769a08 Remove the TCWSCONS config now that zstty can do flow control on IOASIC
machines.
2002-09-24 13:30:39 +00:00
shin
74f9891db4 'options USERCONF' is already in TX3912. 2002-09-24 11:16:37 +00:00
jdolecek
7fe050c591 add options QUOTA; pointed out by Mattias Karlsson
also move options NFSSERVER after options SOFTDEP
2002-09-24 09:34:39 +00:00
ad
5baa2bf49a Zero fill the newly allocated zs_chanstate. 2002-09-24 07:06:08 +00:00
ad
176dcfaf3d On pmax, drop into DDB on break. 2002-09-24 06:19:09 +00:00
gmcgarry
627c1b14f8 Back-out previous. 2002-09-23 21:35:42 +00:00
isaki
6300240677 It was a sample config file, so there is no need to maintain anymore.
Requested by minoura@netbsd.org
2002-09-23 07:09:54 +00:00
simonb
4e3613273b Remove breaks after returns, unreachable returns and returns after
returns(!).
2002-09-23 05:51:10 +00:00
scw
9393fbe941 Belated commit of code to calculate the delay constant used by delay(). 2002-09-22 20:57:23 +00:00
scw
f9c02a8bd0 An initial NetBSD/sh5 TODO list. 2002-09-22 20:54:33 +00:00
scw
d942ee4018 - Setup the cpu-specific cache manipulation function pointers.
- Add sh5_nmi_clear().
2002-09-22 20:52:12 +00:00
scw
f1780fd0ae Add sysfpga_nmi_clear(). This resets the NMI one-shot in Cayman's
System FPGA chip.
2002-09-22 20:51:09 +00:00
scw
f9a4918dc0 INT1 Select is at offset 0x72, not 0x71. 2002-09-22 20:49:27 +00:00
scw
84b2ccee63 Add sh5_nmi_clear(), a board-specific hook for clearing the NMI one-shot. 2002-09-22 20:48:09 +00:00
scw
aab9041eea In validate_kipt(), cacheable TLB entries are now legal. 2002-09-22 20:46:32 +00:00
scw
badd3d5d65 Performance tweak to the copy_page/zero_page asm code.
Allocate/Prefetch one cache-line ahead of the one we're about to deal with.

This reduces the chances of the cpu stalling while waiting for the cache
to flush a dirty line in order to satisfy the Allocate/Prefetch request.
2002-09-22 20:45:31 +00:00
scw
5a529aa332 - Add a /e option to db_stack_trace_print() which dumps the saved
registers in any trap/interrupt exception frame found.

- Slight tweak to more accurately detect the correct call-site when
  looking for a function's prologue.
2002-09-22 20:31:18 +00:00
simonb
63096043b3 Use "#define\t" instead of "#define ". 2002-09-22 08:30:56 +00:00
chs
f01058c887 rename the existing pmap_remove_all() here to pmap_page_remove()
(ala the x86 pmap) to avoid conflicting with the new pmap interface
function of the same name.
2002-09-22 07:56:57 +00:00
chs
c081614ea2 it really helps to get the stub right before cutting + pasting it 27 times.
alas, I did not.  doh.
2002-09-22 07:53:39 +00:00
chs
f54a093e81 many improvements:
- use struct vm_page_md for attaching pv entries to struct vm_page
 - change pseg_set()'s return value to indicate whether the spare page
   was used as an L2 or L3 PTP.
 - use a pool for pv entries instead of malloc().
 - put PTPs on a list attached to the pmap so we can free them
   more efficiently (by just walking the list) in pmap_destroy().
 - use the new pmap_remove_all() interface to avoid flushing the cache and TLB
   for each pmap_remove() that's done as we are tearing down an address space.
 - in pmap_enter(), handle replacing an existing mapping more efficiently
   than just calling pmap_remove() on it.  also, skip flushing the
   TSB and TLB if there was no previous mapping, since there can't be
   anything we need to flush.  also, preload the TSB if we're pre-setting
   the mod/ref bits.
 - allocate hardware contexts like the MIPS pmap:
   allocate them all sequentially without reuse, then once we run out
   just invalidate all user TLB entries and flush the entire L1 dcache.
 - fix pmap_extract() for the case where the va is not page-aligned and
   nothing is mapped there.
 - fix calculation of TSB size.  it was comparing physmem (which is
   in units of pages) to constants that only make sense if they are
   in units of bytes.
 - avoid sleeping in pmap_enter(), instead let the caller do it.
 - use pmap_kenter_pa() instead of pmap_enter() where appropriate.
 - remove code to handle impossible cases in various functions.
 - tweak asm code to pipeline a little better.
 - remove many unnecessary spls and membars.
 - lots of code cleanup.
 - no doubt other stuff that I've forgotten.

the result of all this is that a fork+exit microbenchmark is 34% faster
and a fork+exec+exit microbenchmark is 28% faster.
2002-09-22 07:19:43 +00:00
chs
55e1f79335 add pmap_remove_all() hook (empty on most platforms so far). 2002-09-22 07:17:08 +00:00
gmcgarry
adc9fb5f5b MD component of the new cpu_switch() interface. Introduces nextrunqueue(),
cpu_idle() and new cpu_switch() to replace the old cpu_switch()
which did the lot.  Runs leaner without overly blocking interrupts.

Includes cleanup of the RAS code to make use of callee-saved registers.

Benchmarks on DX4 @ 100MHz reveal a slight performance improvement
but probably not statistically signficant.  More TBD to verify this.

Changes passed a pounding on Athlon @ 1GHz too.
2002-09-22 06:51:10 +00:00
simonb
eb4524608c Only need to define __HAVE_MD_RUNQUEUE once here... 2002-09-22 05:56:32 +00:00