Commit Graph

17942 Commits

Author SHA1 Message Date
dbj f6955fc60b Fix return value in interrupt routine so that dma gets flushed correctly.
Turn on the esp_match since polling the scsi bus now works.
1999-02-01 12:53:48 +00:00
jonathan 9ec88780aa size_t and void*-arithmetic changes from sys/libsa/ufs.c. 1999-02-01 03:08:05 +00:00
jonathan 45f13be5cb use memcpy, not bcopy, for non-overlapping copies. 1999-02-01 02:46:59 +00:00
simonb 22cbe4abc1 Add a comment that the bcopy #define that uses the PROM's memset don't
handle overlapping copies.  From Jonathan Stone.
1999-02-01 02:18:46 +00:00
cjs a3793dc8e8 Add a missing tab for cosmetic purposes. 1999-02-01 01:36:21 +00:00
nisimura 52bd8c333b - Nuke USPACE for now-defunct 'nullproc' pcb (8KB saving). 1999-02-01 00:32:18 +00:00
tsubai fed24e89c8 Adapt disklabel_mbr.h change. 1999-01-31 19:56:56 +00:00
dbj b970be0907 Made reboot and halt work. 1999-01-31 18:12:14 +00:00
dbj 107dd5ccc6 use WSEMUL_VT100 instead of WSEMUL_SUN 1999-01-31 18:07:41 +00:00
scw 2cbc4abc96 Make this compile again. 1999-01-31 14:06:40 +00:00
tsubai a4f0ae9043 Adapt disklabel_mbr.h change. 1999-01-31 13:54:24 +00:00
simonb cbbad6d2b2 Add bzero/bcopy defines to use PROM memset/memcpy.
Change test to include defines from
	#ifndef _KERNEL
to
	#if defined(_STANDALONE) && !defined(_NO_PROM_DEFINES)
1999-01-31 13:49:40 +00:00
drochner 0e91ebb904 make the last fix work as intended 1999-01-31 11:15:43 +00:00
is 93a62a003d Wrong sign of dialout. 1999-01-31 10:30:22 +00:00
mrg 7006310cbd retire _LP64; use compiler provided __arch64__, but still defined _LP64 where we used to anyway. 1999-01-31 09:21:18 +00:00
dbj 21ab415ee6 Added support for setting boothowto from boot loader flags.
print out string of `.' when powering down to work around ununderstood
behavior of rtc chip.
1999-01-31 07:02:33 +00:00
dbj f0b3caaceb Accidentally uncommitted wscons change.
attach nextdisplay to mainbus for wscons support.
1999-01-31 06:59:30 +00:00
castor d0ca7993a0 Remove genpubasym.cf stuff 1999-01-31 01:01:12 +00:00
castor 98c9d5e1c6 Remove genpubassym.cf stuff. The macro _MIPS_BSD_API allows selection of a
64-bit clean compilation model.
1999-01-31 00:55:41 +00:00
is b85f4a5e4d Remove redundant code (leftover from editing). 1999-01-30 21:54:49 +00:00
christos 736a561afb Add my name in the copyright, since the code looks very different now. 1999-01-30 17:51:52 +00:00
christos 5699d1ab3d Remove exec.c from here. I want to make it obvious that it has to be built
with different flags from dosboot and biosboot. Although right now this
does not make a difference because we are building the libraries twice,
it can make a difference when we share the builds.
1999-01-30 17:46:53 +00:00
christos 07b1febfb8 - Use MARK_ENTRY instead of MARK_START.
- ELF changes. Now an ELF installboot installs ELF bootblocks properly.
1999-01-30 17:45:42 +00:00
christos 371363a158 Add exec.c here and bump version for elf.
XXX: This code has not been tested!
1999-01-30 17:44:10 +00:00
christos 25fc1fa758 Add exec.c here... 1999-01-30 17:43:38 +00:00
christos ad9c7a287c Remove exec.o, and make necessary changes for elf. 1999-01-30 17:43:10 +00:00
scottr 7bc05635d3 Catch up with changes to MBR handling. From Erik Bertelsen in PR 6911. 1999-01-30 17:34:31 +00:00
eeh 8ee118c70d Fix problems with bus_space*() macros (thanks M.Drochner). 1999-01-30 17:02:32 +00:00
drochner cf06eef09a make wscons the default 1999-01-30 13:44:25 +00:00
simonb 53e963b5ef Add -mmemcpy (from Jonathan Stone) and bump -G to 128. Bootblocks now
fit!  Still needs more testing, so we don't actually install them yet...
1999-01-30 12:57:58 +00:00
simonb 98ceefb712 Actually depend on libsa now. 1999-01-30 12:39:28 +00:00
simonb 555cdd32e5 Don't define an ioctl routine for the rz driver, nor pull in the empty
routines in libsa/dev.c.
1999-01-30 12:30:57 +00:00
simonb 1047f11c01 Remove unused callvec stubs and libsa routines, add memcpy.c. 1999-01-30 12:23:10 +00:00
simonb db342dee15 Add memcpy callvec stub, copied from strcat.c 1999-01-30 11:54:31 +00:00
simonb a9f9300b78 Tell how many bytes of code are available, and print a warning if the
bootblocks are too large - from Michael Hitch.
1999-01-30 10:14:45 +00:00
simonb 500353b4c3 Use DEC_REX_MAGIC instead of a undocumented magic number 1999-01-30 00:40:38 +00:00
simonb e1167d2415 Add REX magic number 1999-01-30 00:36:10 +00:00
tron 4fe3a6480e Fix bug exposed by new "mkdep" program:
"${SFILES}" is empty for a "SHARK" kernel so that "cc" will fail with
"No input files" during "mkdep".
1999-01-29 22:20:49 +00:00
thorpej 191dab44fa Um, last rev was kind of backwards... actually build exec.o so that
the boot block links.
1999-01-29 22:13:42 +00:00
matthias b88b2d4f9b MBR_PTYP_* -> MBR_PTYPE_* to make this compile again. 1999-01-29 21:20:22 +00:00
christos e58bb79483 Merge XMS changes from exec_fromdos.c 1999-01-29 18:49:08 +00:00
christos e25e5c88f9 Both booters need exec.o now. 1999-01-29 18:47:58 +00:00
christos 35ca0db06c Revert, wrong place for this. 1999-01-29 18:47:24 +00:00
christos 6cadeb1ea6 Add exec.c here. 1999-01-29 18:46:15 +00:00
christos 3c7776f1b6 exec.c has all the info now. 1999-01-29 18:45:34 +00:00
christos 89cc672d98 Jason forgot to make the disklabel_mbr.h changes for this and ows me 5 hours
of debugging.
1999-01-29 18:45:12 +00:00
christos 722d35a400 Add the ability to get the size of the loaded image without actually
loading. This is useful for dos loading and installboot.
1999-01-29 18:44:09 +00:00
christos 7a7391de52 Simplify by using new feature of getting the load size. 1999-01-29 18:43:11 +00:00
christos 1e39fefac4 Remove -g accidental addition 1999-01-29 18:41:50 +00:00
drochner cc66380116 fix address incrementing in the read_region_N, write_region_N,
set_region_N and copy_region_N methods
1999-01-29 16:30:51 +00:00
castor a7c11f272e Copy previous fix for TLB miss routine to XTLB miss routine to avoid
processor-dependent behavior in 32-bit ops on 64-bit operands.
1999-01-29 16:10:06 +00:00
simonb ddd6d4cef1 Add some more PROM entry points 1999-01-29 12:05:02 +00:00
bouyer 0bc97aaca7 In match_harddisk(), ignore "empty drive" type errors as well (from Soren S.
Jorvang).
1999-01-29 11:20:34 +00:00
kleink 15afeeecca Remove an incorrect (but harmless) comment. 1999-01-29 08:42:27 +00:00
simonb 916b809a51 Make a `machine' symlink to ..../pmax/include to locate new location of
the dec_????.h files.  Gleaned from other ports' stand/Makefile.inc's.
1999-01-29 05:51:15 +00:00
simonb 9a3172af0e Include dec_{boot,exec,prom}.h from <machine/...>, not <stand/libsa/...> 1999-01-29 05:37:45 +00:00
simonb 0b2a74160d Include dec_{boot,exec,prom}.h from <machine/...>, not <stand/libsa/...>
Remove unused include files.
1999-01-29 05:33:49 +00:00
simonb 3675e80580 Removed unused include file 1999-01-29 05:31:23 +00:00
simonb fe1bdc0a06 Move via repository copy to pmax/include - the kernel uses these
includes too.
1999-01-29 05:28:59 +00:00
nisimura aa68b32c4f - Forgot to replace a stub of 'eret' instruction with correct value. 1999-01-29 02:18:42 +00:00
cjs 82a6d74841 Turn on NTP PLL by default. 1999-01-29 00:01:22 +00:00
cjs 99a170d159 Have NTP PLL on by default. 1999-01-29 00:00:17 +00:00
christos 74d863263c Use loadfile() to load the bootblocks, so that we are going to be able
eventually to load boot blocks with this. Unfortunately the elf assembler
chokes currently on our bootblocks, so the ELF portion does not work (yet).
1999-01-28 22:47:25 +00:00
christos f1fd49f426 Add support for selectively loading sections, and make this compile in
userland with -DINSTALLBOOT
1999-01-28 22:45:06 +00:00
christos 9fa73628c9 Minor changes to prototypes. 1999-01-28 20:22:31 +00:00
christos 63546de24a Remove a.out loading code and use loadfile.c for everything.
Populate the btinfo_symtab structure.
1999-01-28 20:21:24 +00:00
christos 0fcf083702 Add loadfile.c (stolen from Jason's alpha/stand/common/loadfile.c)
loadfile.h contains macros that are supposed to be MD, but loadfile.c is now MI.
Fixes:
- a.out support
- pass information values via an array not global variables
- don't assume that you can access memory directly.
- remove MD parts
- remove some printfs.
XXX:  loadfile.c needs to be moved somewhere where other ports can use it.
XXX2: read() routines on the i386 don't appear to set errno on failure.
1999-01-28 20:18:31 +00:00
christos 408aa9a669 Bump number to 2.6 and say ELF works!
But, this is not selfhosting yet. I need to fix the installboot crap.
[i.e. you need the a.out tools to build it and install it].
1999-01-28 20:12:49 +00:00
christos 72ba98061e Add btinfo_symtab, to pass symbol table information.
Actually the current ddb_init interface sucks, since there is no
magic number for a.out and it applies heuristics. It would be nice
if the boot blocks passed more info.
1999-01-28 20:10:55 +00:00
christos c46e7e7756 Use btinfo_symtab to find the symbol table if it is available. 1999-01-28 20:06:31 +00:00
christos 6922bd9c58 Add ELF bits. -N does not work, because ld does not compute the correct
memsz.
1999-01-28 20:04:54 +00:00
mhitch ae4fe46357 Fix the TLBMiss handler to not use an undefined operation (32 bit operation
on 64 bit register that's not correctly signed extended.  The R4x00 support
works again on DECstations.  A similar change to the XTLBMiss handler probably
needs to be made, but I have not done that since I am unable to test any
changes to that.
Also re-order a couple of instructions to allow for delay with mfc0.
1999-01-28 18:37:02 +00:00
ross a1b52a0723 Remove the original -g, as a duplicate was (accidently?) added in 1.108,
and comment it out like it used to be, at least for now.
1999-01-28 18:03:56 +00:00
drochner c6ca838916 defopt PCI_CONF_MODE 1999-01-28 12:43:13 +00:00
dbj 7919e08986 wscons based console video & keyboard support for the NeXT
from Matt DeBergalis
1999-01-28 11:46:22 +00:00
jonathan 7bfe0eabb6 Use lk_bell() for audible bell. 1999-01-28 10:35:53 +00:00
jonathan 9c2700d2b8 Jason Thorpe's changes from PR#6848. Makes 115200 bps work on some systems.
Reverse sense of #ifdef to disable 76.8k and 115.2k until we can verify
it works on all 8530 chips (similar changes didnt work on a /240 in 1996).
1999-01-28 10:28:43 +00:00
jonathan 1962954796 LK201 changes from PR#4519:
Add lk_bell() to ring keyboard audible bell (for rcons bell).
  Add LK_KEY_CLICK option to reset keyboard and enable keyclick.
  (off by default since theres no way to control it from userland yet).
1999-01-28 10:20:10 +00:00
nisimura 8c3b908f26 - Restore descriptive comments lost in the last commit.
- XXX Put a note that local DDB command 'trapdump' is not available. XXX
1999-01-28 05:52:06 +00:00
thorpej 7ad46b1420 Goodbye disklabel_mbr.h. 1999-01-27 22:08:09 +00:00
thorpej 135dc4e1ff Use <sys/disklabel_mbr.h> 1999-01-27 21:33:19 +00:00
thorpej 24d9973308 Use <sys/disklabel_mbr.h>. 1999-01-27 21:30:08 +00:00
thorpej af39050d19 Use MBR_MAGIC defintions in <sys/disklabel_mbr.h> 1999-01-27 21:20:18 +00:00
thorpej cb8268a3a5 Use <sys/disklabel_mbr.h>. 1999-01-27 21:00:05 +00:00
thorpej f077362c41 Use the MI <sys/disklabel_mbr.h>, not our own machine-dependent
definitions.
1999-01-27 20:54:56 +00:00
thorpej 41c5275965 Use the MI disklabel_mbr.h. 1999-01-27 20:43:26 +00:00
tsubai 941abb6bf6 ofmsr[IP] = 0. 1999-01-27 14:46:28 +00:00
tsubai 5ad236211f Add file-system MFS. 1999-01-27 12:43:17 +00:00
dbj 5a0e49ac08 Finished the setting of the system date from the rtc. 1999-01-27 11:27:16 +00:00
dbj 0dee80a0e4 print out interrupt status register and mask when stray interrupt occurs.
to aid debugging
1999-01-27 06:39:31 +00:00
dbj 49ad0ddfa1 Continue work on scsi driver. Added tail dma buffer. Still non functional. 1999-01-27 06:37:49 +00:00
dbj b9795e9e3c Fixed dma instability introduced with nextdma.c rev 1.7
This fix removes putting 0xfeedbeef in the unused restart registers.
When that was done, the machine would panic after a short while
with 0xfeedbeef in the normal dma buffer registers.  A restart
cycle is probably hapenning without an interrupt or something.
1999-01-27 06:08:29 +00:00
simonb ce856af2ef Include dec_prom.h with `full' path if being included by kernel.
XXX: Should these headers used by the kernel be in pmax/include instead
     of pmax/stand?
1999-01-27 05:52:31 +00:00
simonb 51dc8fb666 Change location of pmax/stand/*.h include files to pmax/stand/libsa/*.h
My bad - wasn't expecting the kernel proper to pull stuff in from stand...
1999-01-27 03:12:24 +00:00
simonb 384f5d9970 Remove unused pmax/stand/dec_*.h include files. 1999-01-27 03:03:51 +00:00
christos be52cd1738 Fix this properly, using gcc assembly syntax (thanks ws!) 1999-01-26 17:07:06 +00:00
christos d102972c3a Add a missing _C_LABEL(). Now an ELF kernel builds (if one removes the
-z flag from the ld line, in the Makefile)
1999-01-26 14:28:05 +00:00
christos 12bbb63ed7 move the assembly functions to locore.s and make the variables used by
them non-static
1999-01-26 14:27:08 +00:00
christos d95840263e add prototypes for the assembly functions that moved to locore.s 1999-01-26 14:25:02 +00:00
christos 0339b8e4dd ifdef __ELF__ the softintr inline since we cannot use _C_LABEL to produce
a name. XXX: Is there a better way?
1999-01-26 14:22:23 +00:00
christos 3bbb84a4a9 - move the npx assembly routines from npx.c here, so that we can use _C_LABEL
etc, to produce the correct names for elf and a.out
- correct a missing _C_LABEL problem.
1999-01-26 14:21:20 +00:00
thorpej 8851ed323e Fix a bug that has annoyed me for a long time. In pmap_enter(), if
there are no pages available immediately to use as a PT page, don't
just roll over and die.  Only do that if we're the kernel pmap (shouldn't
happen very ofter [ever?!], and I'm not certain we're guaranteed valid
thread context when operating on the kernel pmap).  For user pmaps, wait
for the pagedaemon to wake us up when more free pages are available.
1999-01-26 09:03:31 +00:00
thorpej 72a506557e Update. 1999-01-26 01:38:00 +00:00
ross a9dbb4bc3c ne* at pci? ... 1999-01-25 07:55:32 +00:00
cgd c9d7f12836 kill accidental 'options MSGBUFSIZE...' that crept in to rev 1.89.
while a larger message buffer size might be a good idea (even as the
default), the existing definition here was way too large and was, in
fact, accidental!
1999-01-25 05:10:03 +00:00
sommerfe d3eec1e6c2 nit: Fix a missed pms->opms rename (noticed by Matthias). 1999-01-24 18:58:12 +00:00
tsubai 711ac04b78 syncicache(sigcode, sigcodesize) before exec. 1999-01-24 15:07:51 +00:00
mycroft 3e6e3322d8 Format consistency. 1999-01-24 12:56:51 +00:00
mycroft 897a8a7f29 Mark [hn]to[nh][ls]() with __const__, so they are subject to CSE. 1999-01-24 12:55:01 +00:00
pk 922c3eb8f9 Read & clear fault status register after probing translation. 1999-01-24 10:12:22 +00:00
pk 84826812fc Don't tread on cache tags if the cache is already enabled. 1999-01-24 10:11:23 +00:00
sommerfe 83940dae72 Finish the rest of the pms->opms rename for non-wscons PS/2 mice. 1999-01-23 22:18:41 +00:00
eeh aedd885e3f Need a config file for a 64-bit generic kernel 1999-01-23 19:13:16 +00:00
eeh e66b220ec4 Sync 32-bit and 64-bit kernel config files. 1999-01-23 19:12:19 +00:00
eeh 5739b26892 Need to disable 64-bit only options in 32-bit GENERIC. 1999-01-23 19:09:00 +00:00
eeh d38fb5945e Synchronize config files. 1999-01-23 19:06:59 +00:00
drochner 6fe2522d57 second round of mouse renaming: psm->pms 1999-01-23 16:10:47 +00:00
drochner b384cb4978 update for mouse renaming
document wscons-compatible bus mice
1999-01-23 15:38:11 +00:00
drochner c5b4780e5b update for mouse renaming 1999-01-23 15:35:21 +00:00
drochner 2589333219 the cdevsw entries are for the backwards compatible mice now 1999-01-23 15:13:28 +00:00
drochner f7138b4416 busmice have wsmouse attribute now
add backwards compatible mice
update for pms->opms renaming
1999-01-23 15:09:55 +00:00
drochner 4120bf17c4 rename the autoconfiguration related symbols to opms* to avoid namespace
collisions with an mi wscons-capable pms driver
1999-01-23 15:07:10 +00:00
drochner 6ad1646ffb provide backwards-compatible busmouse drivers
(technically identical to lms.c/mms.c)
1999-01-23 15:05:39 +00:00
drochner 45ecb32709 make the busmice work with wscons 1999-01-23 15:03:50 +00:00
nisimura 7766b60f7c - Add NEC Vr5400 processor ID. 1999-01-23 06:13:30 +00:00
tron cba7ce0e5c Add "ipip" network interfaces. 1999-01-22 22:47:16 +00:00
thorpej 6ead44025b Fixup some usage of _C_LABEL(). 1999-01-22 22:43:44 +00:00
simonb 3566c2a4a4 Add NetBSD RCS ids 1999-01-22 14:27:31 +00:00
mycroft 7497ccd364 Clean up. 1999-01-22 14:19:54 +00:00
mycroft ec253b6315 Use __builtin_next_arg(). Fixed PR 6862. 1999-01-22 14:14:32 +00:00
mycroft 56934caa9d Use mips/stdarg.h. 1999-01-22 14:13:10 +00:00
mycroft 082204fa3d Standardize format. 1999-01-22 14:12:07 +00:00
simonb 65fca13b07 More Makefile cleanups:
+ Don't use our own "clean" and "depend" targets
 + "make depend" works
 + Only include each include path once on compile lines
 + Clean up include file names
 + Don't build a separate libdrive.a, just specify driver source files
 + Use "make print-objdir" instead of old "printf ... | make -f-"
 + Remove more unnecessary targets, variables and other cruft

Still builds identical bootblocks to 1.3.3 with gcc, still too large
with egcs.

dec_boot.h, dec_exec.h & dec_prom.h were copied via respository
copy to sys/arch/pmax/stand/libsa.
1999-01-22 14:05:05 +00:00
tsubai 438b781c46 Match "ata0". 1999-01-22 10:44:38 +00:00
mark f6f7ac980d Fix bug in the initialization of the interrupt masks for shared
interrupts as described in PR6421. Fix from Richard Earnshaw.
1999-01-22 06:59:26 +00:00
sakamoto 7da2ee9edd Add vr driver. 1999-01-22 05:40:16 +00:00
christos 28b4668c17 Move prototypes to mi code; add MD constant for padding 1999-01-21 23:11:45 +00:00
christos 4384281c67 move the mi context setting code out of here. 1999-01-21 23:07:20 +00:00
christos 6d70af37f7 move prototypes to mi locations and add the xrs gunk. 1999-01-21 23:06:25 +00:00
christos 64df2f4fd8 Remove old prototypes (move to mi code), and add the xrs gunk! 1999-01-21 23:05:14 +00:00
christos 6c559acb65 Move machine independent stuff out of here. 1999-01-21 23:03:10 +00:00
christos 0b836e1a7b move the machine independent portion out of the context functions. 1999-01-21 22:58:57 +00:00
christos 4e3e5d021d Avoid void * arithm in a debugging printf, and remove extraneous void *
casts.
1999-01-21 22:58:11 +00:00
simonb 76764712c1 Round one of the Makefile clean up:
+ dependency on libsa works
 + set and use BINDIR/BINMODE
 + don't pull in sys/lib/lib{sa,kern}/Makefile.inc (``make clean''
   doesn't make empty lib/{sa,kern} directories in each
   directory/obj dir).
 + remove unnecessary targets, variables and other cruft
 + wrap lines at 80 chars

Re-ordering SRCS line in libsa/Makefile to a more logical sequence
(alphabetical by source dir) results in a libsa.a with archive members
in a different order, and a resultant bootrz that differs from the 1.3.3
bootrz.  Untested as yet, so left in but commented out.

Also, _don't_ install the bootblocks (as per intent of previous commit)
or our own small libsa(!).
1999-01-21 14:16:52 +00:00
simonb ab18b23eba Add dkcksum.c (pulled in from libsa) and remove local copy of
disklabel.c (with it's own copy of the same dkcksum routine).  Output
code still identical.
1999-01-21 12:43:11 +00:00
simonb 6c2628b5d0 Almost working bootblocks for the pmax. This compiles fine with gcc
2.7.2.2-myc2 (and produces _identical_ bootblocks with the 1.3.3
bootblocks which weren't in the tree), but egcs 1.1.1 builds a ufs.o
that's about a 100 bytes too big, and it busts the 7.5k we've got for
bootrz.

Still needs cleanup - the Makefiles could be better/cleaner, and doesn't
install yet (because of above problem).  At least there's something to
work with now.

Note that we have our own versions of a lot of the sys/lib/libsa
routines which are less functional/smaller.
1999-01-21 12:33:39 +00:00
mycroft 399318b456 Vanity config files. 1999-01-21 09:58:26 +00:00
mycroft 1c607f81a8 Fix editing error. 1999-01-21 08:20:25 +00:00
mycroft 74a54bbbc8 wscons. 1999-01-21 02:54:08 +00:00
mycroft 1e9146db5d sync 1999-01-21 02:50:21 +00:00
mycroft 516af72df3 -ccd +vnd 1999-01-20 22:48:42 +00:00
mrg 1ead59c1eb enable a few more network and compat options, few more devices, both pseudo and real, that hvae appeared in the tree. 1999-01-20 17:24:36 +00:00
pk 5ce78d9342 Fix think-o in srmmu_cache_flush(). 1999-01-20 15:25:29 +00:00
mycroft cefdcd4840 More DDB cleanup. 1999-01-20 13:56:35 +00:00
simonb 64b6a85f9c Remove obsolete README and dec_label program 1999-01-20 13:37:56 +00:00
simonb 47c28b03d8 Move via repository copy to sys/arch/pmax/stand/scsiboot 1999-01-20 12:03:56 +00:00
mycroft 7ef318056c sync 1999-01-20 11:15:56 +00:00
ragge 08e32be08c Forgot copyright notice. Thanx, Jason! 1999-01-20 07:32:52 +00:00
pk 565d3768e5 Catch `Unimplemented Flush' traps. 1999-01-20 00:15:07 +00:00
pk 521611091a Set the Hypersparc ICCR bits. 1999-01-19 23:07:29 +00:00
pk 88993b57d9 Define macros to read & write Ancillary State registers. 1999-01-19 23:05:52 +00:00
pk 66cd211961 Define Hypersparc ICCR bits. 1999-01-19 23:04:02 +00:00
ragge cb2675ff12 Fix some void pointers. 1999-01-19 22:57:47 +00:00
ragge bef0af5311 Allocate (almost) all interrupt vectors dynamically. Simplifies much
work when adding support for new machines and devices.
1999-01-19 21:04:47 +00:00
thorpej 2fb041ce0a No need for <sys/mtio.h> 1999-01-19 18:18:41 +00:00
scottr d51a8c71b9 Need bswap.h for the bswap32() prototype. From Steve Allen
in PR 6846.
1999-01-19 15:41:03 +00:00
pk a711033aa2 Deal with SIR_SERIAL (for `com' devices).
XXX - consider using __GENERIC_SOFT_INTERRUPTS instead
1999-01-19 10:04:42 +00:00
pk dd91d8a2b4 Add SIR_SERIAL soft interrupt source. 1999-01-19 10:02:40 +00:00
ross c79856181a NetBSD RCS id. 1999-01-18 20:36:22 +00:00
ross 7346c0043b FreeBSD's fpu.h. 1999-01-18 20:33:23 +00:00
tsubai 321f772d99 Invert Y axis (like ums, pms, ...). 1999-01-18 12:36:36 +00:00
drochner 67589898ca Be more cautious about writing to the CMOS century byte. Update it only
if it contained a "19" before. There are machines (in particular PS/2
descendants) which have a checksum at this place.
Introduce a patchable kernel variable "rtc_update_century" to modify
the behaviour: 1="always update" (for testing and if one wants to set
the clock back) or -1="never touch".
1999-01-18 10:50:23 +00:00
itohy fe5278bffc MACHINE_NEW_NONCONTIG is no longer optional
remove non-MNN code
1999-01-18 07:39:51 +00:00
castor de42f91db3 Forgot to also ship out regnum.h 1999-01-18 04:59:54 +00:00
nisimura 3478ed1de4 - Nuke 90 lines of dead code inherited from 4.4BSD. They were mostly for
VAX BSD VM.
1999-01-18 03:48:34 +00:00
castor 4e216f5744 Remove vestiges of cpuarch.h. Revert to using cpuregs.h instead. 1999-01-18 02:11:07 +00:00
pk 58fa0024a5 Add `qe'. 1999-01-17 20:45:26 +00:00
eeh 2dd29df04b Let's try to add network support. 1999-01-17 20:07:52 +00:00
matt 8e06ef5a52 If using egcs, use -mno-pic to generate better code. 1999-01-17 19:09:00 +00:00
he 30cc2d95cb Actually handle small boot blocks (<=15 blocks) correctly in the ffs case. 1999-01-17 18:16:16 +00:00
tsubai 3e7448240b Add missing backslash. 1999-01-17 12:51:03 +00:00
tsubai ffffbb419c Fix a intrcnt bug. 1999-01-17 11:53:52 +00:00
tsubai 07d83c4919 Add bmac ethernet. 1999-01-17 11:49:56 +00:00
mark 8ee86da26a Clean up the last remains of non-MNN the code. 1999-01-17 06:58:16 +00:00
scottr 2159f8a301 Add support for the Contour 3-button mouse, inadvertantly missed
in the ADB split a few months back.  Noticed by Takashi NAKAMURA.
1999-01-16 22:49:37 +00:00
chuck 4e484e0e02 remove dead non-MNN code (one block left) 1999-01-16 21:03:48 +00:00
chuck bef8ae1103 MNN is no longer optional 1999-01-16 20:49:12 +00:00
chuck 90ddaed9b5 MNN is no longer optional, remove dead code 1999-01-16 20:43:21 +00:00
chuck 9cb41178b7 MNN is no longer optional, remove old code 1999-01-16 20:39:03 +00:00
chuck 417e5339f0 MNN is no longer optional 1999-01-16 20:31:50 +00:00
chuck e6f055e44b MNN is no longer an option 1999-01-16 20:31:20 +00:00
chuck 8bd992a5f6 remove non MNN code 1999-01-16 20:30:34 +00:00
chuck 32244a5a1a MNN is now the default 1999-01-16 20:13:17 +00:00
chuck 9588304ded MNN no longer an option 1999-01-16 20:11:51 +00:00
chuck 66226eb6ff remove non-MNN code 1999-01-16 20:11:03 +00:00
chuck b0289cbb75 MNN is no longer an option 1999-01-16 20:07:37 +00:00
chuck 4dcbe95100 remove old MACHINE_NONCONTIG code 1999-01-16 20:06:47 +00:00
chuck 3a1fcc746e MNN is now the only option possible 1999-01-16 20:04:22 +00:00
he 4155434b1c Fix uninitialized `inode' variable in save_ffs(), fixing port-i386/6682. 1999-01-16 18:26:47 +00:00
pk c884428427 Add `be' + MII devices.
Add PCMCIA devices that are known to compile at the moment.
1999-01-16 13:43:50 +00:00
nisimura f3b48dd536 - Restore 'cpuregs.h'. 1999-01-16 09:25:18 +00:00
nisimura d9b9f639e6 - Update 'cpuregs.h' and decline 'cpuarch.h'. 1999-01-16 09:07:37 +00:00
nisimura 6119939f5a - Restore 'cpuregs.h'. 1999-01-16 08:51:04 +00:00
nisimura b6cc76ac91 - Never use an uninitialized variable. 1999-01-16 08:48:06 +00:00
nisimura 25806f2bf5 - Make cpu_switch() a normal call; formally it was splitted into halves.
- Fix an error in mips3_cpu_switch_resume(); ASID was not set correctly.
- Remove global variable 'curpcb' reference in mips1_proc_trampoline().
- Restore 'cpuregs.h'.
1999-01-16 08:45:53 +00:00
nisimura 358a8c3092 - Add two macros to deal with a recent change in mips/trap.c. 1999-01-16 08:26:24 +00:00
nisimura 34410d5d0c - Fixup imcomplete vm_offset_t purge work... 1999-01-16 07:05:05 +00:00
tron 3601b98911 Add missing backslashes between continued lines. 1999-01-16 06:24:07 +00:00
nisimura f163b5653f - Replace the stub value of 'eret' instruction with correct one. 1999-01-16 03:44:42 +00:00
nisimura f4b56d8060 - Clarify how inimplemented FP instruction traps are handled. 1999-01-16 03:31:49 +00:00
nisimura d077749e8f - Fix errors involving proc0's kernel stack usage. Fortunately it made
no error so far...
1999-01-16 03:17:06 +00:00
nisimura 7dce3ef311 - User mode context held with pcb_regs[38] in 'struct pcb' was relocated
at the very bottom of process kernel stack.   The address is pointed with
'curproc->p_md.md_regs'.
- Define 'struct md_coredump'.
1999-01-16 03:12:18 +00:00
nisimura f714e02733 - Fixup for recent change in arch/mips. 1999-01-16 02:36:01 +00:00
bouyer f20d50fae4 Add byte_swap.h here too. 1999-01-16 02:31:54 +00:00
bouyer 62a77e9dfe Oups, need byte_swap.h too. Pointed out by Robert V. Baron 1999-01-16 02:20:26 +00:00
thorpej 8922647c58 Some minor, mostly costmetic, changes to CPPFLAGS/CFLAGS. 1999-01-15 23:37:05 +00:00
thorpej f52ee598ae __pmax__ -> pmax, __arc__ -> arc, like other ports. 1999-01-15 23:35:54 +00:00
thorpej c84a74b16b Don't define "mc68020". Nothing uses it. 1999-01-15 23:21:25 +00:00
thorpej cd3a2c5a2a Eliminate use of CPP symbol "mc68020". 1999-01-15 23:15:50 +00:00
castor 48cbfb842a * Add prototype for mips1_clean_tlb
* Add the correct version of locore_mips1.S [ See previous revision for
	description of changes ]
* Use defopt'ed MIPS3_L2CACHE_ABSENT in mips_machdep.c and pmap.c
	to avoid generating extraneous code.
* GC pmap_set_referenced in pmap.c
1999-01-15 22:26:42 +00:00
bouyer dc306354b0 Move the bswap functions from libutil to libc (this bups the
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
1999-01-15 13:31:15 +00:00
castor 45a22daf10 allow generated kernel includes and support mips pubassym.cf mechanism 1999-01-15 10:57:36 +00:00
castor c729b2ffeb add support for locore_mips[13].S 1999-01-15 10:33:11 +00:00
castor 534c67a373 Protect defopt against -D_LKM 1999-01-15 10:07:12 +00:00
castor 84915f67d7 Fix typo in mips3_ConfigCache() -- mips3_L2CachePresent 1999-01-15 09:58:43 +00:00
matthias 2dff258464 Support BUFCACHE option (stolen from i386). 1999-01-15 07:43:48 +00:00
matthias 88b2c1662d Protect all defines in this file with #ifdef _KERNEL. At least the
definition of T_SLAVE will cause the bind build to fail. Thank's
to Phil Budne for noting this.
1999-01-15 07:42:48 +00:00
castor 4720afb463 Avoid introducing new prefix '__JB' -- '_JB' is fine. 1999-01-15 03:43:56 +00:00
castor e20f6d6203 * Elimination of UADDR/KERNELSTACK
Affected files:
	include/mips_param.h, include/pcb.h,
	mips/locore_mips1.S, mips/locore_mips3.S,
	mips/mips_machdep.c, mips/vm_machdep.c

   Issue:

So far, NetBSD/mips has not successfully got rid of fixed-address
kernel stack.  USPACE (two 4KB pages) of each process has two distinct
KSEG2 addresses, both refer to a single physical storage; one address
for fixed range [ UADDR .. KERNELSTACK ), and another for "normal" KSEG2
address which was allocated by kernel memory manager and unique to each
others of processes.

"Doubly mapped" USPACE complicates context switch.  Both address ranges
have to be managed with a special care of "wired" TLB entries which
are never replaced until next context switch to ensure no TLB miss for
USPACE access.  It's equally crumbersome that MIPS processor's cache
machinary gets be confused about USPACE contents because there are two
distinct KSEG2 addresses to manipulate one physical storage.

   Solution:

Purge KERNELSTACK constant for kernel stack pointer and replace
it with process unique values.  Kernel stack bottom is located at
'curproc->p_addr + USPACE'.  Context switch is simplified as it unloads
half of TLB hardwiring burden.  It just manages the unique KSEG2 address
of each USPACE to be wired.  As the side effect, switch_exit() has no
MIPS processor ISA dependent code anymore.  It switchs kernel stack to
proc0's USPACE which has KSEG0 address and no need of TLB entry.

* Extensive use of 'genassym.cf'

To hide target port dependent and/or processor register size dependent
constants from assembler routines, 'genassym.cf' now has an extentive
set of definitions for various constants and offset values of
structural objects.  This change will contribute possible NetBSD/mips64
portability too.

* Separation and rename of locore_r2000/_r4000.S

Those files are now indepedent standalones from locore.S to ease
maintainance works, and renamed to match MIPS processor ISA version.

* Changes in kernel mode exception handlers

Kernel mode exception handlers hold exception contexts by pushing a
certain set of register values on stack for resuming kernel mode
processing.  This context is now represented with 'struct trapframe',
which is smaller than full scale (user mode) exception context 'struct
frame'.  Stack consumption of kernel mode exception services is now
similar to 4.4BSD/mips.

* Relocation of exception frame

User mode context 'struct frame' is moved to the very bottom of kernel
stack at 'curproc->p_addr + USPACE - sizeof(struct frame)'  This change
saves a bit of instructions on every return to user processes as it
eliminates reference to global variable 'curpcb' each time.

* Refurblished DDB backtrace routine

It's a growing concern to maintain stacktrace() code correctly.  It
could be simplified by enforcing special arrangements for some of
obscure locore routines which violate usual coding conventions.

New backtrace code searchs for certain instructions peculiar to any of
function tails.  Specifically, "jr ra" for normal function returns, "jr
k0" for MIPS1 exception handlers and "eret" for MIPS3 handlers.

* Support for 64-bit safe user code
    Affected Files:
	${ARCH}/include/pubassym.cf lib/libc/arch/mips/gen/*setjmp*
	include/setjmp.h mips/include/[lots] mips/mips/[lots]

    Solution:

	We define macros REG_L/REG_S and SZREG for loading and storing
	registers and for the size of registers.  The exact meaning
	of these is controlled by a macro (currently _MIPS64) which
	allows one to treat the registers as either 32-bit or 64-bit.
	There are data types mips_reg_t and mips_fpreg_t which represent
	the true register sizes, and avoid confusing register_t.

	We needed a way to dynamically gen the structure sizes of things
	like sigcontext for setjmp.h, so we defined a pubassym.cf for
	libc routines like setjmp and longjmp.

	NetBSD/mips allows ${ARCH}'s to be defined which preserve
	all 64-bits of registers across user context switches.  There
	are still a few niceties to clean up for kernel mode context
	switches.

* Support for QED 52xx processors
    Affected Files:
	mips/locore_mips3.S mips/pmap.c include/locore.h

    Issue:
	The QED 52xx family of processors are targeted at low cost
	embedded systems, (i.e. CPUs ~$30) for systems like routers, printers,
	etc.  We have added preliminary support for some of the idiosyncrasies
	of this processor, e.g. no L2 cache, etc.  More work needs to be
	done here because with a modest 2-way  L1 cache, some of the rampant
	flushing has significant performance implications.  However,
	it doesn't crash, which is a start.

    Solution:
	A routine for flushing the cache based on virtual addresses was added;
	a routine which deals with the two-way set associativity of the
	5230 L1 cache was added, accomodations to 5230's instruction hazards
	were added.


* TLB Miss code for mips3/mips4 processors cleaned up significantly.
    Affected Files:
	mips/locore_mips3.S mips/vm_machdep.c include/locore.h mips_machdep.c
    Issue:
	The TLB Miss handler exceeded the allowed size, which wasn't
	a problem because there was no handler for when the processor
	was in 64-bit mode.  The handler for invalid TLB exceptions
	also appears to have much vestigial code, which made it
	difficult to understand.

    Solution:
	Use the XCONTEXT register to store a pointer to the segment
	map table, this coupled with removing some dead code allows
	the handlers to fit.
1999-01-15 01:23:12 +00:00
mrg bb4584ec40 look for /^Version:/ to find the boot block version, rather than using
the "version" file's RCS id (which is useless for branches).
1999-01-15 00:48:03 +00:00
pk 6a8119ff1d Sanity check from Matthias Drochner. 1999-01-15 00:26:24 +00:00
castor a6f7b8ff0e Add defopt opt_mips_cache.h and allow 'clock' device to not require the mc6xx files 1999-01-14 18:51:31 +00:00
castor a84ec5a3c1 * Create mips_reg_t data type to allow register size to be
decoupled from long or int or long long.  Define macros in asm.h to facilitate
  choosing these on a port by port basis.

* Create <machine/pubassym.h> mechanism to allow jmp_buf structure size
  to be calculated at system build time.

* Define _MIPS_BSD_SIM macro which specifies what calling style is appropritae
  for the architecture.  For 64-bit oriented systems set the Status Register
  to allow 64-bit instructions.

* Remove UADDR related macros because kernel U structure is now mapped
  normally.
* Separate cpu.h into cpu.h and cpuarch.h to keep things neat.
* Add support for QED 52xx processors
1999-01-14 18:45:45 +00:00
pk 0372e36e3f device_register: recognize `lebuffer' and `isp' as controllers. 1999-01-14 13:08:24 +00:00
cgd ba831d2c43 update for present reality 1999-01-14 04:44:23 +00:00
cgd f3c3f37dc8 update for ed split 1999-01-14 04:26:46 +00:00
pk de7b3f5492 Add `bus_space_subregion()' which was curiously missing. 1999-01-13 20:48:40 +00:00
pk 53c6ccd94d Add `eccmemctl' entry. 1999-01-13 20:35:30 +00:00
leo 7b74d44255 As Ignatios suggested:
Use CCB when dealing with a 68040 type MMU (for cache consistency).
1999-01-13 12:17:15 +00:00
itohy cd16d23d21 Make it compile again.
Use err(3) functions.
KNF
1999-01-13 10:23:40 +00:00
abs 1e21e1233b Change 'from from' to 'from' in some comments 1999-01-13 09:25:59 +00:00
tsubai 12d2afa11a Use KS_KEYCODE macro. 1999-01-13 08:13:41 +00:00
abs 4b0a936711 fix void arithmetic 1999-01-13 04:19:08 +00:00
tsubai 3bc029b332 Add ``#include "akbd.h"''. 1999-01-12 15:12:44 +00:00
tsubai 5998caa414 Support irq > 31.
XXX dirty hack...
1999-01-12 12:06:46 +00:00
tsubai c2bb308ef9 Use (fast!) dcbz asm instruction in pmap_zero_page(). 1999-01-12 11:03:04 +00:00
tsubai bb426487a5 Move MSGBUFSIZE from machdep.c to param.h
Use the last page for msgbuf instead of fixed MSGBUFADDR.
1999-01-12 10:51:40 +00:00
tsubai 90a73bba2c Always use polling when poweroff/restart. 1999-01-12 10:38:00 +00:00
tsubai 4293e4ff3c Use the last available page(s) for msgbuf. 1999-01-12 10:26:18 +00:00
kleink 657d577aeb Pull in <errno.h> instead of <sys/errno.h> for declaration of errno. 1999-01-11 22:21:30 +00:00
drochner 35eeb3f1cd remove dummy "load_font" entries 1999-01-11 21:54:22 +00:00
thorpej 8406f65cbf Use a pool for pmap structures. 1999-01-11 20:58:46 +00:00
christos e0c19ac888 We cannot relocate our interpreter (yet). 1999-01-11 11:02:50 +00:00
christos e293d1bc34 Add ELF crap. 1999-01-11 11:02:16 +00:00
tsubai c91ac313c1 Count clock interrupts. 1999-01-11 09:44:51 +00:00
tsubai 477add6bea Add irq32 - irq63 to intrnames. 1999-01-11 08:49:58 +00:00
eeh 39553be254 Finally fixed 64-bit signal trampoline. 1999-01-11 06:43:51 +00:00
eeh 1609884456 Handle the symbol table properly in a 32-bit kernel that was booted from a
64-bit bootloader.
1999-01-10 23:35:08 +00:00
eeh 9c06e4a454 Need to put IGN in SBUS slot interrupt vectors as well. (From Kapil Chowksey) 1999-01-10 23:32:57 +00:00
scottr c6be16c55a Parenthesize a few expressions uncovered by -Wpointer-arith. 1999-01-10 22:52:55 +00:00
nathanw d2f4d39a08 wskbd, not wskbs. 1999-01-10 22:51:46 +00:00
eeh b5932bbc0a Support little-endian bus mappings. 1999-01-10 19:37:47 +00:00
is 4d5a26ba82 Make this compile again. 1.5 was committed from the wrong directory.
We apologize for any inconvenience caused.
1999-01-10 19:19:57 +00:00
mrg 7054d69a2a KNF nits i have sat on for too long. 1999-01-10 15:01:32 +00:00
mrg 17823d385b KNF nits i have sat on for too long. 1999-01-10 14:41:45 +00:00
mrg d1f3239be8 bump size of miniroot 1999-01-10 13:40:30 +00:00
tron 560ed63047 Don't use void pointer for arithmetic. 1999-01-10 13:35:39 +00:00
tron 738cd778b3 Don't use void pointer for arithmetic. 1999-01-10 13:24:11 +00:00
tron 72a366c304 Don't use void pointer for arithmetic. 1999-01-10 13:22:05 +00:00
tron a2885c9c15 Don't use void pointer for arithmetic. 1999-01-10 13:17:01 +00:00
tron 386665b0cb Don't use void pointer for arithmetic. 1999-01-10 12:56:25 +00:00
tron 4920c92937 Don't use void pointer for arithmetic. 1999-01-10 12:37:17 +00:00
tsubai 8190b5f43f Add sanity checks in akbd_cnattach(). 1999-01-10 10:39:13 +00:00
tsubai ae67dbc85d Fix void * arithmetic. 1999-01-10 10:24:16 +00:00
tsubai 0280ba028c Fix void * arithmetic. 1999-01-10 10:13:15 +00:00
jonb 5a8a1a4dd6 clean up some incorrect comments 1999-01-10 03:46:27 +00:00
mjacob b7a8ca1386 For some reason (I don't know why nobody else has seen this)
egcs-2.91.57 didn't like the void * subtraction on line 904.
I'll risk everyone's wrath by casting around it.
1999-01-10 03:16:21 +00:00
eeh b0d71d3042 Properly check address returned by OBP for errors in prom_map_msgbuf(). 1999-01-09 23:33:29 +00:00
eeh 42c40a2cd6 More signal fixup. 1999-01-09 23:31:27 +00:00
eeh 09a4a08b77 New style bootpath propagation to match the sparc port. 1999-01-09 23:23:47 +00:00
eeh d5ca0ef2e6 Don't use `long' instead of `int64_t' since the latter may not be in scope. 1999-01-09 23:15:39 +00:00
eeh f9a429d960 Establish a single set of definitions for signal debugging so we don't have
a different one for every emulation.
1999-01-09 23:12:36 +00:00
mark a82d8b0a33 Fix void * arithmetic. 1999-01-09 22:56:06 +00:00
thorpej e598335d1c Garbage-collect `mbutl'. 1999-01-09 22:10:12 +00:00
mark 444401c526 Fix `void *' arithmetic. 1999-01-09 21:18:54 +00:00
mark e6361430fc Fix `void *' arithmetic in bcopy() calls. 1999-01-09 21:10:50 +00:00
mark e9afce801e Fix `void *' arithmetic. 1999-01-09 21:04:00 +00:00
itohy 33df770bf5 Avoid `void *' arithmetic. 1999-01-09 19:55:58 +00:00
itohy b50a4adc36 Eliminate `void *' arithmetic. 1999-01-09 19:23:26 +00:00
thorpej e279508ccb In pmap_zero_page() and pmap_copy_page(), set copyback caching of the
pages on the 68040 and 68060, to avoid cache consistency problems (since
regular mappings are copyback cached as well), per Ignatios Souvatzis.
1999-01-09 18:40:12 +00:00
dbj e41d023363 Moved optional devices out of std.next68k and put them in GENERIC instead.
This is patch supplied in pr 6725.
1999-01-09 05:08:54 +00:00
augustss fc5f9ee81d Add -Wpointer-arith warning since `void *' arithmetic is not ANSI C. 1999-01-08 19:26:12 +00:00
augustss 332d7c138f Avoid arithmetic on `void *' since that's not ANSI C. 1999-01-08 18:10:35 +00:00
kleink 5f79ea56a1 Rearrange the emulation-specific setregs() entry to set up the FPU control
word *after* calling the native setregs(), which would clobber it again.
1999-01-08 11:59:38 +00:00
pk 9d4c26b2c1 * hypersparc support:
get cache size from PROM info like the others
	reset the cache type bits before setting our desired values
* smp cache flushing:
	protect the cpu message bits with splhigh().
1999-01-08 10:15:10 +00:00
leo c754d06437 Return NULL when trying to establish a non-EDGE_TRIGGERED interrupt.
This can be used by drivers to choose another type. Currently used in
isnd4bsd.
1999-01-08 09:29:17 +00:00
leo be84171b70 Make the abs_copy functions usable. The previous implementation caused
kernel "jump to zero" panics....
1999-01-08 09:25:33 +00:00
leo cf88e51c7b Modifications of pmap_zero_page() and pmap_copy_page() inspired by recent
work from Jason Thorpe on the hp300 pmap.c.
Nuke the usage of the port-specific functions in favour of the m68k functions.
1999-01-08 09:20:37 +00:00
thorpej 289b2e154f In pmap_zero_page() and pmap_copy_page(), don't bother invalidating the
mappings for CADDR1 and CADDR2, unless we're built w/ -DDEBUG.  Since
these addresses are only used in these routines, we can "lazily invalidate"
them by just using them again.  This makes these routines a teeny bit faster,
as it saves 1 or 2 TBIS's per call.

Suggested by Leo Weppelman <leo@netbsd.org>.
1999-01-08 05:15:43 +00:00
nisimura 6ebba254e7 - Put comments on several DDB helper routines. 1999-01-07 00:36:09 +00:00
thorpej 52fa7c35ac Add pcscp driver. 1999-01-06 23:43:30 +00:00
thorpej cd93f8dfc9 - Add adv and adw SCSI controllers, commented out, as they do not yet
work.
- Add USB stuff.
- Add new pcscp SCSI driver.
- Comment out wss driver, as the configuration listed hangs some systems
  cold.
1999-01-06 23:42:27 +00:00
thorpej 2a3368ed6e Add the `pcscp' driver. 1999-01-06 23:30:53 +00:00
ragge bc0985cb97 Make SCSI work on VS3100/m76 also. From "maximum entropy". 1999-01-06 14:54:45 +00:00
drochner d8a0ea9858 correct a comment about implemented keyboard layouts 1999-01-06 12:17:49 +00:00
scottr faabac8cce Update video-related RBV constants to reflect reality. 1999-01-06 07:16:56 +00:00
scottr 46b2a0ebce Add RBV monitor sense code (formerly commented out in rbv_vidstatus())
to the match function, and print out more detailed information when
attaching RBV video.
1999-01-06 07:08:19 +00:00
scottr e91873be5f G/C rbv_vidstatus() and related constant. 1999-01-06 05:54:38 +00:00
nisimura 9df51b1b1f - Complete vm_offset_t purge for DECstation. 1999-01-06 04:18:53 +00:00
nisimura 858e67e157 - Complete vm_offset_t purge for mips processor.
- bzero() -> memset() and bcopy() -> memcpy().
- Garbage collection in trap.c and db_interface.c.
1999-01-06 04:11:25 +00:00
briggs 1082c49b69 Fix PR port-mac68k/6665 from Paul Goyette with some minor mods.
Cast values is bus_space macros to the appropriate types so we end up
with valid assembly.
1999-01-06 03:06:45 +00:00
jonb 95a1be90da Add a new kernel config, and use it as a quick non-intrusive test to see
if I know how to drive CVS...  Hope this is easy to fix if I screw it up!
1999-01-06 02:30:58 +00:00
mark a857bdefb8 Guard get_device() and prototypes for set_root_device() and get_device()
with #ifndef MEMORY_DISK_IS_ROOT.
1999-01-03 20:13:45 +00:00
minoura 7b7ab5a123 UVM is now default for GENERIC. 1999-01-03 14:48:15 +00:00
veego 0e281644ed Enable fdboot again. 1999-01-03 12:46:31 +00:00
mark 3ad92d6f24 Declare get_device() and set_root_device() as static and prototype them
here.
1999-01-03 02:24:56 +00:00
mark 9b3c03f9cc Update for name change of pv_addr_t structure members. 1999-01-03 02:23:27 +00:00
mark e0d2ec153f Rename the members of the pv_addr_t structure to make them more
meaningful and to avoid C++ name clashes. Fixes PR port-arm32/6365.
1999-01-03 02:19:32 +00:00
eeh aae0096c7c More signal handling fixups. 1999-01-03 01:08:51 +00:00
dbj c67d9eac9d Applied supplied patches from pr port-next68k/6709
add bus_space support for mono framebuffer
1999-01-02 13:42:17 +00:00
dbj 0f11abef49 Aded include for files.wscons so changes from pr 6707 to conf.c compile. 1999-01-02 13:30:45 +00:00
dbj bb1f20f1fa Reformatted changes from previous patch to match style guidelines. 1999-01-02 13:23:31 +00:00
dbj 70b3738d46 applied patch from pr port-next68k/6708: add wscons devices to next68k MAKEDEV 1999-01-02 13:14:18 +00:00
dbj 99c914d1be Added check that M68040 is defined in case user interrupted creation
of assym.h, leaving it empty.
1999-01-02 13:03:20 +00:00
dbj 48d4303235 applied patch from pr port-next68k/6704: next68k zs driver formatting error
zs driver needs to print a newline.
1999-01-02 12:47:50 +00:00
ragge d0e7a99a8a Giant change: NBPG now set to 4k and CLSIZE == 1 for vax. This change
made a whole bunch of annoying bugs disappear; mostly depending on
bad use of NBPG in non-MD code. The VAX port was the only port that
used this historical "feature".

The CL* macros should probably go away totally, there is no reason
at all to keep them.
1999-01-01 21:43:17 +00:00
ragge 1678119a36 A little better support for 'trace' command. 1999-01-01 21:25:03 +00:00
thomas 872b1a1f2a PCI I/O Start 16k because some devices allow only addresses
up to 64k.
1999-01-01 19:54:52 +00:00
mark 1eb9f63a3c bzero() -> memset() and bcopy() -> memcpy(). 1999-01-01 12:42:47 +00:00
mark 4a23b01275 Tidy up this file. 1999-01-01 12:41:13 +00:00
mark 04d8f160e7 bzero() -> memset() and bcopy() -> memcpy(). 1999-01-01 12:40:39 +00:00
mark cc829bbdde Sync with reality. 1999-01-01 12:13:49 +00:00
mark d235c19724 This file has been replaced by makemodes.awk. 1999-01-01 10:28:57 +00:00
mark 97036bd92c Use makemodes.awk to parse the MDF files rather than building a custom
binary from makemodes.c. This makes cross compiling simpler.
1999-01-01 10:28:16 +00:00
mark 8b0bd1ca77 Initial commit of awk replacement for makemodes.c
This is an awk script to parse an Acorn Monitor Definition File and
generate a C file containing the selected mode timing parameters.
Read the comments at the start of the file for details on use.
This file replaces makemodes.c
1999-01-01 10:26:41 +00:00
tsubai 13529d1878 bmac ethernet driver. (tested on iMac. only 10Base-T works.) 1999-01-01 01:27:52 +00:00
mark 2197d0696d The scsipi_adapter structure is part of the sfas_softc structure
rather than the csc_softc structure.
1998-12-31 09:44:42 +00:00
mark 14a36628f5 Add a missing semi colon. 1998-12-31 09:37:12 +00:00
dbj c96a4ad63d Continued work on esp driver. Now successfully identifies a scsi target.
Unfortunately, to get dma to work, we have to align past the end of
the buffer, which smashes other variables on the stack.
match function still disabled, as it isn't ready yet.
1998-12-30 12:02:03 +00:00
dbj d3e627398e changed register for start of dma buffer to be DD_NEXT_INITBUF instead
of DD_NEXT for regular dma transfers, and not just ethernet transmit.
Keep track of dma read/write direction and set it each time we start or
restart dma.  This allows scsi to work, and doesn't appear to hinder ethernet.
1998-12-30 03:05:29 +00:00
tsubai bdf1b68276 iMac support (not complete yet). 1998-12-29 06:27:59 +00:00
tsubai 8a5e34f28a Fix a bug of last change. 1998-12-29 05:17:27 +00:00
tsubai d5fc963f0e Add USB. 1998-12-29 04:40:19 +00:00
mark 058cf2a88c Apply patch from PR port-arm32/6357 to make the wdc attachment to the
RiscPC mainbus work correctly.
From Richard Earnshaw.
1998-12-28 09:40:28 +00:00
mark 767af4d82c Add a check for r8 equal to 0 and do a quick exit if it is. 1998-12-28 09:39:02 +00:00
ross 509315b9e0 We don't call prom_open() here anymore, so don't call prom_close() either! 1998-12-28 09:12:52 +00:00
tsubai 2ad7314a82 Configure only one wskbd/wsmouse. 1998-12-28 00:50:44 +00:00
tsubai e7e9a2e0e1 Use "interrupt" property if "AAPL,interrupt" is not found. 1998-12-28 00:38:18 +00:00
nisimura fe061a7ae4 - Eliminate dead code in TLB miss handler. Fortunately it has never been
executed.  Once execunted, the result would be castrophic because it has
addressing error.
1998-12-28 00:31:03 +00:00
dbj ba3bedf25e After some experimentation, now allow dma start alignment to be 4.
Removed separate alignment constant for ethernet since it appears to
be unnecessary.
1998-12-27 09:03:14 +00:00
is bc72f5a29c Make it table-driven. Besides making adding more devices easier, the resulting
code is 14% smaller (alas, for this file only).
1998-12-26 22:22:58 +00:00
dbj ea8f01b987 Continued experimentation on SCSI driver.
Added nextdma_debug variable to control debug printouts in nextdma driver
when ND_DEBUG is defined.
1998-12-26 06:17:44 +00:00
tsubai 468355c5f0 Make configurable with no frame buffer. 1998-12-26 00:53:49 +00:00
msaitoh 7c25d335bf s/are are/are/ 1998-12-25 16:52:10 +00:00
itohy 172852517b Switch x68k port to UVM by default.
Mach VM and even old contig and non-contig codes are still alive.
1998-12-23 23:01:44 +00:00
christos c7f9823bf0 C_LABEL has no _ if __ELF__ 1998-12-23 15:09:48 +00:00
tron b471830935 Sync with GENERIC. 1998-12-23 09:46:07 +00:00
mrg 9ec7c3c814 move sun3 to UVM by default. only pica/arc & x68k left. 1998-12-23 06:00:03 +00:00
fair 7a738d840b Make gcc happy by changing %x to %lx hiding in a DEBUG. 1998-12-23 04:53:44 +00:00
tsubai 86a0b96c10 Search "interrupts" property if "AAPL,interrupts" is not found. 1998-12-22 19:46:28 +00:00
tsubai 89e0cc0a86 Display frame buffer type when attached. 1998-12-22 19:38:35 +00:00
tsubai 1e7ee2d117 Determine the address of interrupt register at runtime.
(iMac has different address)
1998-12-22 19:35:49 +00:00
scottr 84af636530 vm_offset_t -> {paddr_t, vaddr_t} 1998-12-22 08:47:05 +00:00
scottr da48906a74 Update for present reality. 1998-12-22 08:25:34 +00:00
mrg 12d0e6e8f7 move sparc{,64} installboot.8 back to src/share, to avoid splitting sources for users who dont get everything. 1998-12-22 02:34:09 +00:00
tsubai 07c96d75d6 Wait one second before powerdown. 1998-12-21 21:58:19 +00:00
pk fc6df8006b Make sure we don't spuriously detect more than one boot device (as the
previous patch but extended to all devices).
1998-12-21 11:25:39 +00:00
thorpej 795321b030 Make pmap_collect() actually do something useful. If called with a user
pmap, forget all of the mappings for the user address space for that pmap.
This causes the PT pages to be freed so that they can be reclaimed by the
VM system. [*]

[*] Actually, in the current implementation, it merely causes the wiring
count on the PT pages to drop to 0, which allows them to be reclaimed by
the pagedaemon.  Handling of PT pages needs to be completely rewritten.
1998-12-21 09:02:43 +00:00
thorpej d6bc370c2d Use a memory pool for pmap structures. 1998-12-21 08:51:39 +00:00
thorpej 43b82d559c Improve pmap_copy_page() and pmap_zero_page(). Don't use pmap_enter()/
pmap_remove() for the temporary addresses.  This is completely unnecessary
as the temps are used ONLY for these routines, and we have better control
over the mapping by manipulating the PTE ourself.  On VAC systems, cache-
inhibit the mapping to prevent wasting a cache load.

These routines are now significantly faster.

Add a DIAGNOSTIC check in pmap_enter() for kernel pmap and (CADDR1 or CADDR2);
nothing should be adding mappings there via that interface.
1998-12-21 06:58:39 +00:00
thomas 6c040077b9 Install kbdreg.h. The Xserver needs it. 1998-12-20 23:17:48 +00:00
nathanw 4d2e9f8e9d Add "pcic0 at pci?". 1998-12-20 17:56:18 +00:00
nathanw 788ff053de Fix up support for PCI attachments of pcic devices on i386 in general,
and the Cirrus Logic CL-PD6729 in particular.

From danw@mit.edu in PR port-i386/6436.
1998-12-20 17:53:28 +00:00
thomas 75c4b3bf70 Changed grf mmap that it is closer to XFree. VGA memory on et4000/et6000
is now at offset 0xa0000.
1998-12-20 14:32:34 +00:00
thomas 051cc552ae New code to enable PCI devices. 1998-12-20 14:24:52 +00:00
thorpej 51d0670371 Clean up a whole load of comments, making many of them truthful, and
indicating which functions are INTERFACE vs. which aren't.
1998-12-20 01:15:52 +00:00
thorpej 80e50e26a8 Unclutter a bit. Use a PMAP_DPRINTF() macro where possible, getting rid
of loads of #ifdef DEBUG ... stuff.
1998-12-19 23:51:47 +00:00
thorpej 6659e7174e In pmap_testbit(), if we end up traversing the PV list, cache a hit on the
bit to speed future tests.
1998-12-19 23:21:51 +00:00
thorpej 97f422e85b Make pmap_changebit() take bits to set and a PTE mask, rather than a bit
and a boolean.
1998-12-19 23:01:47 +00:00
scottr 3de0336b7c Protect a keyup event for ADBK_3 in the mouse button emulation code with
ALTXBUTTONS, so as to not cause trouble with some non-US English
keyboards.  From SUNAGAWA Keiki, PR 6613.
1998-12-19 21:41:13 +00:00
thorpej d36a60d9cb G/c PMAPSTATS. It's unneeded clutter right now. 1998-12-19 21:11:14 +00:00
ragge 6036a3463e Fix bufpages miscalculation. At the same time, make bufpages configurable
att compile time.
1998-12-19 20:06:36 +00:00
he a127a479d7 Add 'ex' driver and various mii stuff, from GENERIC. 1998-12-19 20:06:30 +00:00
thorpej 459052a0fb Wire down some SCSI disk units. 1998-12-19 20:05:19 +00:00
ragge 75c1333e8e A "return 1" should be "return 0". Caused machine to crash as soon as
it started paging.
1998-12-19 20:03:23 +00:00
he bdafd9591e Add "ustarfs" as a recognized boot file system type, and bump version number. 1998-12-19 19:44:56 +00:00
he 2cfee96f35 Implement -b option, similar to on alpha, required for ustar floppy support. 1998-12-19 19:17:23 +00:00
drochner dafe2a2b81 Some BIOSes return occasionally with carry set from APM_CPU_IDLE/BUSY
calls, without setting a defined error code. This leads to annoying
output. Put the printout inside APMDEBUG.
1998-12-19 14:46:10 +00:00
dbj db8bf6a623 Revamped DMA interface to unify chaining and non-chaining dma sequences.
Updated ethernet driver to work with new interface.
Continue work on esp driver.
1998-12-19 09:31:44 +00:00
thorpej 3bd57bb34b Correct a panic message. 1998-12-18 19:52:11 +00:00
drochner 52c16cf83a get "opt_compat_svr4.h" out of <sys/conf.h> 1998-12-18 16:55:39 +00:00
drochner 0f6572f2b1 COMPAT_xxx option review: add missing opt_compat_netbsd.h 1998-12-18 15:49:40 +00:00
kleink fec2cc52f3 T_SVR4_GETHRESTIME returns a nanosecond quantity in %o1. 1998-12-17 22:26:02 +00:00
gwr 271b8ff5ba Sync with GENERIC 1998-12-17 06:46:55 +00:00
gwr ec630d208f Fix some "unused variable" warnings (if !HAVE_CACHE) 1998-12-17 06:17:45 +00:00
tron 67693a18b7 Sync with "GENERIC" and fix description. 1998-12-17 00:07:08 +00:00
minoura 72bcdb203b Synced with GENERIC. 1998-12-16 14:10:38 +00:00
christos 5b07a26bc4 Add a commented out entry for tcom. 1998-12-16 11:42:07 +00:00
kleink 1b6a24c1d4 Support for compound statements enclosed in parenthes to appear as
expressions is a GNU C extension; mark as such them with __extension__ to
suppress portability warnings.  Addresses kern/3562 and misc/6185, as suggested
by Dave Sainty <dave@dtsp.co.nz>.
1998-12-16 11:11:02 +00:00
itohy 36416d8500 Added options COMPAT_LINUX and EXEC_ELF32 as comments
to GENERIC configuration files.
1998-12-15 19:50:00 +00:00
itohy c05dadc113 Added COMPAT_LINUX support. 1998-12-15 19:36:36 +00:00
christos a6406e330a 1000000000 nsec != 2^32 nsec. (from kleink). Also had eax and edx backwards. 1998-12-15 16:10:42 +00:00
christos 9a2a015957 1000000000 nsec != 2^31 nsec (from kleink) 1998-12-15 16:06:15 +00:00
is 920aad33e4 Support for Hypercom 3+ / 4+. Untested yet, but its only some additional
entries in a table.
1998-12-14 20:33:45 +00:00
itohy 643e0d4cc2 Added intr.h 1998-12-14 19:04:58 +00:00
kleink 342b5e5134 Also need to initialize the queue length of a newly allocated fpstate. 1998-12-14 16:18:46 +00:00
itohy b40f2a1c88 Make egcs happy. 1998-12-14 15:22:04 +00:00
christos 80f51bcef4 Add an entry point for the solaris 2.6 fast trap vectors, used by the
high resolution timer calls.
1998-12-13 19:31:26 +00:00
christos 4959a9fca6 Add defines for the fast trap vectors. 1998-12-13 19:27:51 +00:00
kleink a2aacaedde Add -Werror and -Wmissing-prototypes, like most other ports do. 1998-12-13 19:19:38 +00:00
kleink adddbfb644 obio_find_mapping(): int -> vaddr_t where appropriate. 1998-12-13 19:08:43 +00:00
kleink 58f85c298a Printf format warning cleanup: the type of the result of a shift operation is
that of the promoted left operand.
1998-12-13 18:14:30 +00:00
christos 885e96c95e Correct problem with UESP, still does not work properly. 1998-12-13 18:07:27 +00:00
kleink 072888839b Printf format warning cleanup. 1998-12-13 18:00:10 +00:00
kleink 1bf1bbfc56 xdc_piodriver: sync function definition with declaration; also eliminates
the use of a char as an array subscript.
1998-12-13 17:57:19 +00:00
minoura 6aa085a693 Splitted out the interrupt handling code to a separate file.
Disallow getting down the interrupt level by splXX.
1998-12-13 15:04:01 +00:00
is 2b1c171400 appease egcs-1.1.1. 1998-12-12 20:05:07 +00:00
mycroft b28c62f40d Run async_update() even if something is select()ing. 1998-12-12 17:29:39 +00:00
mycroft b3c9835be1 r13-r15 -> sp, lr, pc 1998-12-12 17:28:05 +00:00
drochner be595f36c4 document support for Intel 82557/82558 1998-12-12 15:51:49 +00:00
drochner 6f71e420f3 add support for the Intel 82557/82558 fast ethernet chip 1998-12-12 15:47:05 +00:00
gwr 02b9dc7632 Switch to MACHINE_NEW_NONCONTIG (Yea! Finally!:) 1998-12-12 05:28:24 +00:00
gwr e7810fa812 Fix MACHINE_NEW_NONCONTIG support (UVM works now:)
thanks to Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Closes PR#6540
1998-12-12 05:25:01 +00:00
thorpej ebd6430388 Add some brackes to make EGCS happy. 1998-12-11 18:46:18 +00:00
mrg f3e2980d41 note thta installboot.8 is built in share/man. move installboot.8 back to the same place the sources are, just build it in an MI location. 1998-12-11 12:18:46 +00:00
mrg 30964865f6 change -d (debug) to -n (nowrite) as they have the same effective meaning, but -n is what sparc uses. use partition c as that will generally be what the user wants. 1998-12-11 12:15:44 +00:00
mrg a73ed687d6 add an installboot man page, based on the old sparc on but with large bits ripped out 1998-12-11 12:14:53 +00:00
mrg 29a68943af note installboot.8 is built in share. 1998-12-11 12:14:22 +00:00
mrg 7a39c6352a - exec the command
- exit 0 if we don't run it
- look for the disk in /dev/${disk} /dev/${disk}a as well as ${disk}
- look for the bootblock in /usr/mdec.
- exit if we can't find either the bootblock or disk.
1998-12-11 11:46:54 +00:00
tsubai c232b5d803 Add wdc. 1998-12-10 20:49:17 +00:00
tsubai b517a9d3d8 Add wd and atapi. 1998-12-10 20:21:28 +00:00
tsubai ef27ffc3de Add ata/atapi disk support. 1998-12-10 20:10:03 +00:00
augustss e481435c53 Add sv driver. 1998-12-10 19:01:41 +00:00
ragge 5fb70e2fcc Use vt100 console emulation instead of sun. :-) 1998-12-10 18:24:52 +00:00
leo bfd59f416b Another patch from 'maximum entropy':
* Add to copyright notice.
* Replace the bad probe that caused your problem in the first place
  with a better one.  This probably means we could do away with the
  type hints you added, but it won't hurt to leave them.
* Improve performance by not wasting a memory access in the buffer
  copy/zero routines.
1998-12-10 15:55:25 +00:00
augustss 3334421666 Comment out sv audio device, the driver is not in the tree yet. 1998-12-10 15:46:20 +00:00
ragge 3a8728fa4f Fix deadlock bug. Pointed out by maximum entropy. 1998-12-09 19:02:31 +00:00
leo a4fea93ff3 Make sure that my Riebl card (with empty battery) is not detected
as an BVME410...
1998-12-09 08:51:12 +00:00
leo 5335909035 BVME410 ethernet driver by 'maximum entropy'. 1998-12-09 07:33:59 +00:00
augustss 8398f3a4db Add ugen, a generic USB driver. 1998-12-08 15:52:31 +00:00
dbj 54a0e65b02 initialized unused dma registers to 0xdeadbeef instead of 0 to aid debugging. 1998-12-08 09:35:07 +00:00
tsubai ea6bba6b90 Fix a typo. 1998-12-07 17:17:14 +00:00
nisimura 14b18ffcb5 - Remove improper casts mistakenly creeped in the last commit. 1998-12-07 04:21:57 +00:00
tsubai fbeabd992c Implement sparse bus space support. 1998-12-06 15:39:12 +00:00
ragge 5ff97947fe Search for NCR controllers, but not on VS4000/60. 1998-12-06 14:33:54 +00:00
ragge fec054bd9a Simple hack to get at least PIO functionality out of the VS2000/3100 ncr5380.
Fixed by Jens Arvid Nilsson.
1998-12-06 13:55:09 +00:00
mjacob c2e84d0cde What was missing here is the mapping between our booting SCSI bus number
and the parent (hba) path from which we booted from. As a temp fix,
we'll only go with the first match to set altbootdev- not additional matches.
The problem was further exacerbated by the fact that cnpoll doesn't seem
to work on serial consoles.
1998-12-05 21:05:44 +00:00
mjacob 74bc9f26d5 Update HBAs to incorporate the new max_lun property. 1998-12-05 19:43:33 +00:00
jonathan 340efce0ea Track PV_REFERENCED bit as for PV_MODIFIED, to make mdsetimage work correctly.
Compatiblity with Mach VM: clear pmap-private bits in pmap_remove() if !UVM.
1998-12-05 09:13:09 +00:00
jonathan aecf708ee3 Clean up kernel PTE allocation. Allocate space for maxproc kernel stacks.
Bump UVM swap-map to avoid panics on large swap machines.
1998-12-05 07:50:12 +00:00