Commit Graph

29167 Commits

Author SHA1 Message Date
gmcgarry 8efcc1d46b Convert hil to standard device attachment. 2001-11-17 23:53:37 +00:00
gmcgarry 4d380420ae Use new RTC attachment. 2001-11-17 23:51:03 +00:00
gmcgarry d9b1140ca5 Merge some fixes from clock.c, revision 1.23. 2001-11-17 23:48:15 +00:00
gmcgarry 257f825d26 Device attachment for the real-time clock. 2001-11-17 23:38:32 +00:00
gmcgarry 3cf284349d Update for new intio parent interface. 2001-11-17 23:35:31 +00:00
gmcgarry 224cd45a75 Overhaul the intio device attachment. Devices are direct connected and
attached based on machine id.
2001-11-17 23:33:22 +00:00
gmcgarry 3acacb5fc1 Make hil interrupts come through the standard dispatch mechanism rather
than its custom handler.
2001-11-17 23:29:08 +00:00
gmcgarry 40aa97f8b1 For INTIO space, use an offset for the mapping rather than the physical
address.
2001-11-17 23:26:55 +00:00
gmcgarry 4b62b5b023 Don't try to mmap the framebuffer as executable. Fixes MMU faults
when executing the X server.
2001-11-17 23:25:04 +00:00
kleink 852f87fe13 i386_memio_mmap(): return -1 to indicate failure, not EOPNOTSUP. 2001-11-17 19:32:03 +00:00
kleink 4a41ec8583 In fdopen():
* Defer deref'ing of `un' until it's been initialized.
* Kludge around a false-positive uninitialized warning.
Brought to you by the graces of GCC 2.95.3.
2001-11-17 19:00:25 +00:00
kleink 117651c65e Can't pass temporary storage to an inline assembly statement as input
operand; debunked by GCC 2.95.3 as uninitialized.
2001-11-17 18:55:57 +00:00
christos e36e7f175a Add transmeta crusoe cpu support from toshi. 2001-11-17 08:21:43 +00:00
christos 79f74a0b0f Add transmeta crusoe cpu support from toshi's fiva patches. 2001-11-17 08:20:58 +00:00
thorpej 21c0578357 Walk the ARCS device tree to find the L2 cache size. 2001-11-17 01:19:58 +00:00
bjh21 04e005d19a Don't bother setting lint flags. arm26 doesn't pass lint anyway, so we may
as well use the defaults.
2001-11-16 14:53:47 +00:00
bjh21 eff0c97bb0 Use the exciting new MI kernel building machinery on arm26. 2001-11-16 14:46:16 +00:00
bjh21 294f95152f db_interface.c:
Include <ddb/db_access.h> for db_read_bytes etc prototypes.
  Add prototype for db_trapper().
  Move prototypes for "machine" subcommands to db_machdep.h.
db_machdep.h:
  Add prototypes for "machine" subcommands.
2001-11-16 14:39:30 +00:00
bjh21 73dd1b11c1 Include <uvm/uvm_extern.h> for pagemove() prototype. 2001-11-16 13:48:33 +00:00
bjh21 4244e4f4ce Add a prototype for pmap_dump(). Since this function is only called from
DDB, there's no suitable header file.
2001-11-16 13:47:06 +00:00
junyoung 12b82871db Add pseudo-device wsfont, which is necessary to make wsfontload(8)
work.
2001-11-16 13:46:31 +00:00
bjh21 aacfb7f42c Include <sys/sysctl.h> for cpu_sysctl() prototype. 2001-11-16 13:41:58 +00:00
bjh21 77c5245c8f Fix names of bus_space_copy_region_1() and bus_space_copy_region_2(). 2001-11-16 13:34:03 +00:00
bjh21 6b12ec55b2 Add prototypes for undefinedinstruction() and resethandler(). 2001-11-16 13:12:06 +00:00
gmcgarry e9ec95622b Remove unnecessary trailing argument. Now compiles with new toolchain. 2001-11-16 08:14:05 +00:00
atatat d5de3c2fb2 Abstract out a large chunk of the kernel build machinery so that new
build features (such as ross's DEBUGLIST) can easily be applied to all
ports.  This should reduce the complexity of each port's kernel
Makefile considerably.  Line counts:

     227 arch/i386/conf/Makefile.i386.orig
      98 arch/i386/conf/Makefile.i386
     227 arch/alpha/conf/Makefile.alpha.orig
      99 arch/alpha/conf/Makefile.alpha
     219 arch/sparc/conf/Makefile.sparc.orig
     102 arch/sparc/conf/Makefile.sparc
     215 arch/vax/conf/Makefile.vax.orig
     102 arch/vax/conf/Makefile.vax
     253 conf/Makefile.kern.inc

Roll i386, alpha, sparc, and vax over to the new build machinery.
2001-11-16 00:23:02 +00:00
thorpej 6b842c44f3 MACHINE_ARCH == arm on hpcarm. 2001-11-15 19:35:31 +00:00
thorpej 0b6370bfee Implement __cpu_simple_lock*() primitives using the SWP insn. Note
this insn is available only on ARM arch v3 and later (and 2a).  We
don't expect to be using these ops in the kernel on processors too
old to have SWP, and for userland uses (in e.g. a pthread library),
the kernel will simply have to trap and emulate the insn (it needs
to be "atomic", so a kernel trap of some sort will be necessary on
such platforms anyway).
2001-11-15 19:22:32 +00:00
soren 662f877587 MAXSLP is defined to be a machine-independent scheduling parameter,
so move it into sys/param.h.
2001-11-15 18:06:11 +00:00
lukem 95c969f245 add RCSID 2001-11-15 07:03:28 +00:00
chs a69c43b997 fix pmap_extract() to handle addresses with a PTP but an invalid PTE. 2001-11-15 05:16:41 +00:00
thorpej 283e0a4c6e We need to declare the "plcom" device in files.evbarm, since a
"plcom.h" header file needs to be generated for conf.c even for
non-Integrator kernels.
2001-11-14 23:47:51 +00:00
thorpej 6445977d84 Slight cleanup. 2001-11-14 23:02:02 +00:00
tv 48c09b6243 Work around <bsd.lib.mk> used for kernel libs in other places. Clean up
include paths.
2001-11-14 23:01:13 +00:00
mhitch 636eb23869 When loadfile() leaves the ELF header at the end of the kernel, it enables
erroneous code that tries to compute the end of the symbol table.  Disable
that for now so that kernels don't hang when booted from the disk.
2001-11-14 22:47:16 +00:00
matt b0372f6f25 Add brgphy 2001-11-14 21:25:15 +00:00
thorpej ceb42fbf3f This file is not used. 2001-11-14 21:17:17 +00:00
matt a6d8d89acf Bump the default macppc MSGBUFSIZE to 12KB so we can get an entire
sequence of boot messages.
2001-11-14 20:55:34 +00:00
matt 34d4887431 Some #ifdef cleanup for DIAGNOSTIC/DEBUG/PMAPCHECK so that that many of
the expensive checks are skipped when (!DEBUG&&!PMAPCHECK) and all of the
light-weigth checks are skipped when (!DIAGNOSTIC&&!DEBUG&&!PMAPCHECK).
This bring pmap.o's text down from 21KB (with PMAPCHECK) to 18.5KB (DEBUG)
to 16KB text (!DIAGNOSTIC).
2001-11-14 20:38:22 +00:00
thorpej bd15cfaed8 Merge the thorpej-mips-cache branch onto the trunk. This is an
overhaul of how caches are handled for NetBSD's MIPS ports.
2001-11-14 18:26:21 +00:00
thorpej af66038f73 Merge the thorpej-mips-cache branch onto the trunk. This is an
overhaul of how caches are handled for NetBSD's MIPS ports.
2001-11-14 18:15:10 +00:00
hubertf 95bf3bc4cd add pseudo-device rnd - it's needed by sshd 2001-11-14 13:25:19 +00:00
thorpej be13b85887 * Give the XScale its own cpu_control() entry point; we have to flush
the Branch Target Buffer of the BPRD bit changes.
* Enable Branch Prediction on the XScale by default.
* Don't invalidate the Branch Target Buffer explicitly. the i80200
  manual (section 5.1, Branch Target Buffer Operation) notes that
  manual software management of the BTB is unnecessary; it is flushed
  implicitly when:
     * processor resets
     * FCSE process ID is written
     * I-cache is invalidated
2001-11-14 01:00:05 +00:00
tv 5489b30b60 ${MAKE} print-objdir -> ${PRINTOBJDIR} 2001-11-14 00:58:48 +00:00
thorpej 91f49d269d Eliminate some duplicated code here (similar to XScale code):
* sa110_cache_purgeD() is the same as sa110_cache_cleanD() on the
  SA-1 -- make it an alias.
* sa110_cache_syncI() and sa110_cache_purgeID() are identical to
  sa110_cache_cleanD() on the SA-1, with the exception that the
  I-cache must also be flushed.  Save code duplication by moving
  the I-cache flush before the D-cache clean and letting it fall
  through.
2001-11-14 00:08:05 +00:00
augustss b684acbf39 Add wsmux (it seems to work now). 2001-11-13 17:56:30 +00:00
augustss c5477b70aa The wsmux pseudo device does not need a count anymore. 2001-11-13 17:54:46 +00:00
isaki 2108a5c977 Rewrite vs_query_encoding() using array. 2001-11-13 09:27:06 +00:00
isaki c2e9ead40b Clean up debug messages. Separate it two debug levels. 2001-11-13 09:06:00 +00:00
perry 9f8afd5252 Make the type of ports in the in*()/out*() routines u_long instead of
int. Massively reduced kernel lint, causes no harm. Discussed
extensively with christos and thorpej.
2001-11-13 03:27:50 +00:00