Commit Graph

17081 Commits

Author SHA1 Message Date
thorpej 49c62c4336 Changes to support fork_kthread():
- cpu_set_kpc() now takes void *arg third argument, passed to the
  entry point.
- cpu_fork() allows parent to be non-curproc iff parent is proc0.
  When forking non-curproc, assume its state has already been saved.
- Adjust various pieces of machine-dependent code to account of all of this.
1998-11-11 06:41:23 +00:00
nisimura 8ed3c420dc - Withdraw a duplicated file. This has never been a part of distribution. 1998-11-11 05:00:42 +00:00
eeh f66c79c11e Turn off debugging. 1998-11-11 02:04:23 +00:00
eeh bef3f7ec18 FCode bootblock and friends. 1998-11-11 01:57:32 +00:00
dbj 277322402c Sync'ed more files and routines with mvme port in prepartion for UVM.
Now use generic m68k cachops everywhere rather than defining them in locore.s
1998-11-10 22:45:44 +00:00
bouyer 5f9fa9aaaa Add and enable the pciide driver. 1998-11-10 14:09:15 +00:00
scottr 610fe40379 Only allow access to physical RAM. 1998-11-10 07:29:59 +00:00
mark 85d4fddd28 Use the footbridge pci bus space tags when attaching a vga console so
that the wscons code will recognise them later and correctly setup
cn_tab when the wsdisplay device is attached.
1998-11-10 04:34:05 +00:00
mark c082b04018 Implement a separate function to set up the pci io and mem bus space
tags.
1998-11-10 04:32:03 +00:00
mark e695fe5347 Implement bus_space_copy_region_2() for footbridge tags. 1998-11-10 04:29:21 +00:00
frueauf a894e3a493 Add braces to make egcs happy. 1998-11-09 15:53:51 +00:00
is 9916260262 - declare method arrays in bus.h
- add interleaved_wordaccess method array
1998-11-08 21:09:27 +00:00
is ba74edf69b Fix typo. 1998-11-07 22:50:25 +00:00
is fd3b226223 We didn't really implement bus_space_{read,write}_stream_N, but
bus_space_{read,write}_region_stream_N. Correct the names.
1998-11-07 22:44:36 +00:00
ragge f040374f11 Support for KA820 console RX50. From 4.4, ported to NetBSD by Sergey Svishchev. 1998-11-07 20:58:09 +00:00
drochner 1f23f4e047 add poll entry for (optional add-on) i4b raw device 1998-11-07 17:28:57 +00:00
ragge b6158fa5e3 EGCS fixes. Implement htons as a C macro instead of asm; generates as
good code as the asm implementation _and_ can be optimized.
1998-11-07 17:22:58 +00:00
jonathan cdd3abe7a9 Pull MBR-scanning code and NetbSD-partition-finding into a separate
function, rathe than duplicating in readdisklabel() and writedisklabel().

XXX should really  make MBR code MI, and share with other MBR-using ports
(e.g., arc, arm32 MBR label-scanning code).
1998-11-07 04:39:03 +00:00
jonathan a581370fce apply previous change to writedisklabel() as well as readdisklabel(). 1998-11-07 01:30:57 +00:00
jonathan 45aa097296 Change COMPAT_386BSD_MBRPART: don't break on match, so that if there's more
than one DOSTYP_386BSD partition, we pick the last one, not the first.
That's what our install tools do/did with multiple ID-165 partitions.
1998-11-07 01:08:00 +00:00
tron 63b722221a Sync with "GENERIC". 1998-11-06 20:29:52 +00:00
is 23c04fa375 Add color debug code for DraCos. 1998-11-06 20:08:20 +00:00
mhitch 010e90e0ca Cursor position offsets need different values for an sfb board with an
alternate clock that does lower resolution.
1998-11-06 03:53:40 +00:00
mhitch a7f70a5fbc Fix problem when using non-DEC CDROMS with blocksize other than 512 bytes.
This got lost when disk geometry processing was updated.

Also move the CDROM check from rzread() to rzwrite() - it doesn't make
much sense to report a read-only filesystem error when trying to read a
CDROM.
1998-11-06 01:59:25 +00:00
ragge fbed93d50d EGCS fixes. 1998-11-05 19:48:04 +00:00
ragge bee167375f EGCS fixes + TU81 fix. 1998-11-05 19:47:20 +00:00
ragge 3467859667 EGCS fixes. 1998-11-05 19:46:18 +00:00
mellon 3cc58a69cc Fix a signed/unsigned thinko (this is cgd's fix) 1998-11-05 15:59:00 +00:00
frueauf b1122614c3 Add braces to make egcs happy. 1998-11-05 14:13:59 +00:00
tsubai 1bf603b543 Sync to mac68k. 1998-11-05 11:46:07 +00:00
jeremy a6f004d383 Corrected incorrect definition of child_return(). It only accepts one
argument.
1998-11-05 03:40:57 +00:00
thorpej 74b81e824e Add "ukphy". 1998-11-05 00:38:10 +00:00
tsubai 8634976fb2 Move conversion of PRAM-time to UNIX-time to clock.c (like mac68k). 1998-11-04 15:06:13 +00:00
chs 61458d7dfa LOCKDEBUG enhancements for non-MP:
keep a list of locked locks.
use this to print where the lock was locked
when we either go to sleep with a lock held
or try to free a locked lock.
1998-11-04 06:19:55 +00:00
fvdl 42921bd66d Add the ex driver. 1998-11-04 00:40:03 +00:00
fvdl 21ab4a980a Add the 'ex' driver, a DMA driver for 3Com 90x and 90xB cards. 1998-11-04 00:31:59 +00:00
thorpej 6768f892cc Add sqphy. 1998-11-03 23:52:50 +00:00
leo 4401599ff3 These should have been added together with leo.c a long while ago :-( Thanks
to 'entropy' for keeping an eye on me...
1998-11-03 14:50:15 +00:00
tsubai 0b3665db48 Add "Paddington" ID. 1998-11-03 12:15:57 +00:00
thorpej ec38cdc6d9 Add icsphy*. 1998-11-03 00:12:45 +00:00
simonb 67f74ebee4 Implement the new BUFCACHE option. 1998-11-02 07:43:37 +00:00
ross cee6f4a531 Implement the new BUFCACHE option. 1998-11-02 04:43:23 +00:00
hubertf e45fa5e3bb add version for libkeycap 1998-11-01 17:14:27 +00:00
hubertf eccf9ccdd8 s|share/misc|share/pcvt| 1998-11-01 16:37:06 +00:00
lukem d04b2d9043 implement BUFCACHE, which sets the size of the buffer cache to BUFCACHE %
of physmem. if not set (or == 0), falls back to old sizing method.
1998-11-01 09:51:09 +00:00
mjacob 3bcd2ef84d fix botched printout format 1998-11-01 00:03:08 +00:00
mjacob 82b48f66b6 If NSIO not defined, compile errors. 1998-10-31 23:51:05 +00:00
is e4d73206ab Make the exec header an automatic variable, instead of malloc()ed space.
Saves 60 bytes of code.
1998-10-31 22:40:27 +00:00
lukem 80e1cdcee7 s/milieconds/milliseconds/ 1998-10-30 13:47:02 +00:00
ws 2791cf041a Fix a thinko which still prevented this to run on non-int13-ext machines.
Thanks to entropy@zippy.bernstein.com for pointing this out and testing the fix.
1998-10-30 12:16:59 +00:00
scottr 9d3eea92f4 Add DOS partition handling, from Ken Nakata in PR 4999, with
only slight tweaking by me.

XXX - does not currently handle NetBSD/i386 or 386BSD/FreeBSD partitions.
1998-10-30 06:48:51 +00:00
scottr c8546bdb7b Enforce a lower bound of (RAW_PART + 1) on the number of partitions
read from the Mac partition table.  From Ken Nakata in PR 4999.
1998-10-30 05:27:15 +00:00
jonathan ba531b48c6 Use console_debugger() hook to enter DDB. 1998-10-29 21:25:17 +00:00
jonathan 5211fed3ab Michael Hitch's fix to dtop handler:
make handler FSM robust enough to not lose its place after data overrun.
  stops  keyboard from going catatonic.
1998-10-29 04:54:20 +00:00
is d103f66935 Switch the Amiga port to UVM. 1998-10-28 22:41:24 +00:00
dante 27e57114e1 Add support for macppc
Very special thanks to Itsumi Tsutsui for his invaluable collaboration.
1998-10-28 21:06:27 +00:00
hubertf bc70dd6bc5 Cleanup includes-installation, ACK'd by Matthias Drochner. 1998-10-28 14:14:45 +00:00
jonathan 558bc32937 Add missing braces pointed out by egcs. 1998-10-28 04:28:32 +00:00
jonathan dd735283c1 Add `struct proc;' to keep egcs warnings happy in userland.
XXX why are kernel prototypes visible here at all?
1998-10-28 04:26:52 +00:00
mark 096ffe523f Fix a couple of string buffer overruns in lpt_ofisa_md_match()
From Richard Earnshaw, fixes PR6210.
1998-10-28 04:21:57 +00:00
sakamoto 7b111b4229 Support frame buffer console with Matrox Millennium(probably, and II).
But, NetBSD/bebox kernel doesn't support yet.
1998-10-28 02:47:35 +00:00
hubertf c884556c3d Prevent loop caused by custom includes-target 1998-10-28 01:46:46 +00:00
thorpej 56066ad5fb Add media list, media list count, and default media arguments to
ne2000_attach().
1998-10-28 00:13:47 +00:00
matt b26897f295 Initial bus_space support routines (should be common across
all platforms and buses).
1998-10-27 21:19:48 +00:00
matt 4cbbe0abff Latent support for revamped "local bus" support. 1998-10-27 21:18:52 +00:00
christos 12fd61ebc9 PR/6356: Hubert Feyer: Linux emulation has problem w/ pipes
On linux we don't have syscalls that use retval[1] (edx). So don't
corrupt edx, because the compiler assumes that it has the same
value as before the syscall. Also, compute if we are running under
linux emulation in one place.  XXX: Someday we should have a syscall
function per emulation and avoid the mess.
1998-10-27 18:04:27 +00:00
ws 6463d10c79 Fix typo which prevented this from working
on disks without int13-extension support.
1998-10-27 14:08:55 +00:00
ws a541c86a76 Update version number and mention int13 extension support
(sorry, forgot this on the recent commit of the above).
1998-10-27 12:59:02 +00:00
scottr 890be8e6d7 Whoops! When looking at the return value from ptest040(), be sure
to handle the case of a TTx register hit.
1998-10-26 23:17:54 +00:00
hubertf 7e430fc3fd Install programs & files for pcvt. 1998-10-26 21:01:28 +00:00
ender ab941faefb Make the kernel compile when the ALTXBUTTONS option is set.
Fixes PR#6363 from Frederick Bruckman (fb@enteract.com)
1998-10-26 19:20:00 +00:00
sommerfe 116ab7954f This file has no real dependancies on SYSV ipc gunk.. so don't drag in headers 1998-10-26 19:11:57 +00:00
pk 9eb94a0c03 Must protect user-land from cpuvar.h; noticed by Juergen Hannken-Illjes. 1998-10-26 08:16:08 +00:00
pk f3c1682c65 No need for `#ifdef SUN4M' protection. 1998-10-26 08:12:15 +00:00
scottr a83dff9c40 Make it compile for MRG_ADB kernels. 1998-10-26 07:09:37 +00:00
scottr 974ff0e869 Use the <machine/asm.h> macros, and don't call code that we haven't
included.
1998-10-26 07:07:34 +00:00
scottr 5af0d2da90 Don't hide the ADB hardware types when we're building an MRG_ADB kernel;
we really do need them around, anyway.
1998-10-26 07:06:41 +00:00
enami 92d5be6614 Explicitly test Intel 82371AB PCI-ISA bridge since *some* of them
identify themselves as miscellaneous bridge rather than isa bridge.
1998-10-26 03:47:19 +00:00
enami c8a28ce872 Cosmetic change; use tab for basic indentation rather than four space. 1998-10-26 03:43:52 +00:00
sakamoto 709dd80ed0 Support frame buffer console initialized by the BootRom of the BeBox.
But, NetBSD/bebox kernel doesn't support yet.
1998-10-26 00:45:47 +00:00
is c6457000db Fix obvious typo in DEBUG code 1998-10-25 21:58:25 +00:00
christos 62b06e44c3 Add nca driver goo. 1998-10-25 18:40:17 +00:00
tsubai d6ebbdb79a Fix -Wpointer-arith warning. 1998-10-25 17:39:52 +00:00
tsubai 262ba9ad95 Fix miscounting of length in syncicache(). 1998-10-25 10:13:21 +00:00
kleink eec814ba1c Remove argument name from function declaration. 1998-10-24 16:22:58 +00:00
is 9177fc99a7 Oops. People without I4B should still be able to compile a kernel. 1998-10-24 11:09:29 +00:00
is 4a961f034b All m680?0 User Manuals claim that trap vectors are fetched from the data
cache, if found there (but not allocated in the data cache on trap).
No need to flush the data cache.
1998-10-24 10:48:34 +00:00
pk de51cf3531 Define and use CPU pause/resume IPI messages (until such times that I know
what the prom supplied versions actually do).
1998-10-24 08:12:55 +00:00
pk c85c920d03 Duh.. condition codes are not preserved when writing directly into %psr.
Also, we need to deal with bus latency when turning off bits in the
interrupt status register.
1998-10-24 08:04:07 +00:00
jonathan 04062f718c Cleanup kdbpeek() definition as noted in PR port-mips/5252. 1998-10-24 01:36:09 +00:00
jonathan e68e8297d2 Fix stacktrace alignment, in case of 64-bit stores into stackframes.
From pr port-mips/5536 from Castor Fu <castor@geocast.com>
1998-10-24 01:14:26 +00:00
thorpej bfc8ed8a50 Add "exphy" and "lxtphy" drivers. 1998-10-24 00:46:17 +00:00
briggs 67be755f17 DTRT if sfb is not configured in the kernel. 1998-10-23 23:49:31 +00:00
is 009398587b This time, really add i4b to cdevsw[]. 1998-10-23 23:03:02 +00:00
jonathan e9441f3a72 Garbage-collect obsolete "field" intpri from ibus_attach_args.
clean up initalizers to use  correct, in-range values for ia_cookie,
which is what  ibus children passed down to ibus_intr_establish.
1998-10-23 23:01:44 +00:00
is 732bba6038 oops, commit error. undo. 1998-10-23 22:38:26 +00:00
is 8a6428e6be Add entries for i4b devices / placeholders, like in i386 and Atari. 1998-10-23 22:14:27 +00:00
ender 2055d846f9 New ADB "bus" interface:
o Separate ms and kbd drivers
o aed device for compatibility
o debug message cleanup in hardware direct support (from scottr)
1998-10-23 01:16:22 +00:00
jonathan 0582e98991 Treat Wangtek QIC-150 SCSI tapes the same as Viper, so they work on
3100s as well as with the asc driver.
1998-10-22 23:01:45 +00:00
bouyer 31dec5ddc5 Add config flags for pciide: 0x001 forces the use of DMA when the driver
don't know how to set the controller's modes.
1998-10-22 15:11:39 +00:00
scottr 5cb5f44921 Defopt ALTXBUTTONS, DISABLE_EXT_CACHE, and ZS_CONSOLE_ABORT. 1998-10-22 04:36:50 +00:00
briggs 2db4e51dad Kernel config for wscons/serial console support for TC alphas, based on
GENERIC.  This can go away when NEW_SCC_DRIVER hits prime-time.
1998-10-22 01:05:36 +00:00
briggs ab9470909c Preliminary support for both serial consoles and kbd/display wscons
consoles for TC alphas.  Based on code from Takuya Koumoto
<takuya-k@is.aist-nara.ac.jp> as well as some parts of Toru Nishimura's
and Matthias Drochner's work on pmax wscons.  This relies on the
NEW_SCC_DRIVER.
1998-10-22 01:03:07 +00:00
ragge 42ed21663a Make boot recognize MSCP disks on VAX8200. From Sergey Svishchev. 1998-10-21 20:16:33 +00:00
tsubai 325ecdada1 Use PCI function number correctly. 1998-10-21 08:58:36 +00:00
pk 890e54bee0 Pull in cpuvar.h to get definition of `curproc'. 1998-10-21 07:11:47 +00:00
tsubai e6efdfc6af Add via-pmu support. 1998-10-20 15:13:14 +00:00
tsubai 330d14c254 Oops, forgot to add them. 1998-10-20 14:59:16 +00:00
tsubai 6f402eb495 Add via-pmu support (only PowerBook 2400c/180 is tested). 1998-10-20 14:56:30 +00:00
simonb e35fe182af Remove commented out OPTIONS DEC_5100 line - there was already an
uncommented line above for the 5100.
Mention "kn04" (the 5000/150) on the DEC_3MIN options line.
1998-10-20 03:03:04 +00:00
tron eb17acb9b3 Defopt SYSVMSG, SYSVSEM and SYSVSHM. 1998-10-19 22:43:58 +00:00
tron 39876df951 Defopt SYSVMSG, SYSVSEM and SYSVSHM. 1998-10-19 22:14:54 +00:00
tron b296275bb4 Defopt SYSVMSG, SYSVSEM and SYSVSHM. 1998-10-19 22:09:13 +00:00
tron 249f0890d0 Sync with "GENERIC". 1998-10-19 18:19:55 +00:00
bouyer ec954fdc40 Add 'uk at atapibus'. 1998-10-19 12:29:55 +00:00
bouyer 59000618ac Remove useless 'flags' for wdc ata isapnp. 1998-10-19 12:06:55 +00:00
pk f0529fccf5 Maintain a current process (`curproc') a per CPU. 1998-10-19 11:56:43 +00:00
briggs ba0625f1f5 vm_offset_t no longer exists. Change to paddr_t, vaddr_t, and psize_t. 1998-10-19 00:32:44 +00:00
drochner eaafa2dbd1 Zero-initialize the initial u-area. This cures the "random process killed
by SIGPROF or SIGVTALRM" syndrome.
1998-10-18 22:00:17 +00:00
ragge 18b6b32a67 Support for DWBUA (BI to Unibus adapter) and KLESI-B (TMSCP tape ctlr) added. 1998-10-18 18:47:18 +00:00
thorpej 49dd2f5055 Need <sys/device.h> 1998-10-18 18:39:43 +00:00
thorpej adc5eb3a57 Fix a thinko in previous. 1998-10-18 17:15:04 +00:00
christos 09285b1171 PR/6311: By me... There was a bug unloading the dmamap:
addr = map->dm_segs[0].ds_addr & ~PGOFSET;
	len = map->dm_segs[0].ds_len;
	len = ((addr & PGOFSET) + len + PGOFSET) & ~PGOFSET;
	addr &= ~PGOFSET;

Notice that the & ~PGOFSET in the first line should be gone. This fixes
the newfs large disk panic.
1998-10-18 16:02:34 +00:00
mellon 8a9206b6fd Add CAPS_IS_CTL option 1998-10-18 12:21:51 +00:00
tsubai 07e2c44982 Make compilable without aed. 1998-10-18 09:52:16 +00:00
tsubai 541bc2d3d7 Add wsmouse support. 1998-10-18 09:31:40 +00:00
itohy 2a9addf6dc Remove unwanted reference to "_trap1" if !defined(COMPAT_13). 1998-10-18 04:42:17 +00:00
jtk c4ffdb9200 dumpsize == 0 also indicates failure to figure out where to dump
(e.g. dump partition too small), so complain in that case when trying to
dump
1998-10-17 00:07:11 +00:00
pk 0bf09a4ae7 Drop cpuinfo's `L1_ptps'; instead keep a per CPU segment (level 2) page
table descriptor that is used to patch up a region (level 1) page table
associated with a user pmap at context switch time.
1998-10-16 22:39:17 +00:00
ws d65dc0de3b Make ourseg visible to the outside similar to bootsect/start_bootsect.S
(Thanks to hannken@eis.cs.tu-bs.de for pointing this out).
1998-10-16 18:07:35 +00:00
mycroft 79a031f9d3 Configuration for new CVS server. 1998-10-16 00:30:53 +00:00
ross 3707ad314c History. INSTALL is now used on the floppy set and combo CD/HD/tape image. 1998-10-16 00:15:15 +00:00
drochner 5bdff43727 Initialize default disklabel properly: Whole disk is RAW_PART, not 'a'. 1998-10-15 19:08:33 +00:00
drochner 2468738337 change handling of libkern:
-sys/lib/libkern builds as library per default (as it was documented all
 the time)
-ports able to LKM set "KERN_AS=obj" explicitely in their Makefiles
 (for now; should depend on actual "option LKM" or -better- functions
 included for LKM use should be pulled in by a stub)
-always link libcompat before libkern - libkern stuff can be referred to
 by libcompat, but not the other way
1998-10-15 18:37:13 +00:00
ws f82918b49b Add int13 extension support 1998-10-15 15:28:22 +00:00
bad 50aa1b9d51 Add the IDT WinChip C6 to the cpu type table. 1998-10-15 15:26:01 +00:00
tsubai 3b892dd579 /chaos/control support. (tested 640x480 mode only) 1998-10-15 14:48:47 +00:00
tsubai 810fcde7eb Set PCI bus number correctly. 1998-10-15 14:39:53 +00:00
bad 28b3386649 Add CPUVENDOR_IDT and CPU_C6. 1998-10-15 13:40:33 +00:00
bouyer 999d5323c0 Make CPURESET_DELAY a patcheable variable, as sugested by Chris G. Demetriou. 1998-10-15 11:41:28 +00:00
matt a9a911bdba Add .type pseudo-ops needed for shared libraries. 1998-10-15 06:01:11 +00:00
ross 3e35915bc3 Don't use big 16K blocks for the -b contiguous secondary boot installation.
It leads to confusion about where the end of the image is on tape boots.
1998-10-15 01:05:20 +00:00
ross 16bf3552bb Save a0 during bss clear. 1998-10-15 01:02:55 +00:00
ross 9f7ca48f3b Delete prom_open() wrapper routine. Other clients of prom_open
can use the prom.h dispatch macros instead, especially since they
all presently expect the raw return bits.
1998-10-15 01:02:15 +00:00
ross c84b7f501e Delete bogus prom_open() prototype. 1998-10-15 01:00:56 +00:00
ross 412f6ae85b Grab booted_dev_fd parameter from bootxx. It won't be there for netboot
but there should be no harm done.
1998-10-15 01:00:07 +00:00
ross 6336abe01a const'ify 1998-10-15 00:56:56 +00:00
ross df51a43618 Rototill the primary boot for...
1. much faster speed
  2. support of more media types
1998-10-15 00:55:48 +00:00
ross c33589db84 Consult osrelease.sh and pass down NETBSD_VERS 1998-10-15 00:52:38 +00:00
ross 74f36b2497 Try the ustarfs open first...it's the only one that can't necessarily
seek. We might be reading a tape and the extra superblock reads will
eat up tape records.
1998-10-15 00:51:22 +00:00
ross 9c29657a67 Extern def for raw prom disk file descriptor. 1998-10-15 00:49:34 +00:00
ross b0367fb980 Don't actually do the raw prom open here. 1998-10-15 00:48:55 +00:00
ross 8447dd624c 1. STANDALONE -> _STANDALONE
2. Key raw prom interfaces defes on ENABLEPROM
3. Define the prom "ioctl" magtape functions.
1998-10-15 00:47:28 +00:00
ross d4e2b18bb1 Define ENABLEPROM, which turns on the raw prom interface defs. 1998-10-15 00:45:52 +00:00
is 8caffffa3e Activate cleandir (and distclean), as suggested in PR 6244 by
Frederick Bruckman.
1998-10-14 20:45:43 +00:00
matt 495a4bdb2c Sync with new IDE support (e.g. pciide changes) 1998-10-14 18:31:34 +00:00
matt f8e4127109 Remove pciide definitions in files.alpha since they are now in files.pci 1998-10-14 18:00:11 +00:00
pk fd966585a1 Turn on the counter at each CPU (we fear nothing..) 1998-10-14 14:53:36 +00:00
pk afcfa7d7fa Let all CPUs spin at spl0. 1998-10-14 14:47:20 +00:00
pk 631a48776f Don't allocate two stacks per CPU.
Minor attach-time message change.
1998-10-14 14:22:18 +00:00
tsubai 4f4676e9c0 Sync to ``POWERMAC'' config. 1998-10-14 13:54:09 +00:00
tsubai 635d4ae57a Fix typo. 1998-10-14 13:21:10 +00:00
tsubai c539169765 wskbd support. 1998-10-14 12:56:19 +00:00
tsubai f6f8f9b3f5 Oops, remove ite/grf. 1998-10-14 12:31:34 +00:00
tsubai 461a9c9361 Add wsdisplay/wskbd. 1998-10-14 12:28:54 +00:00
tsubai ced4fd09b4 Add wsdisplay. 1998-10-14 12:27:03 +00:00
tsubai 20e56a7571 Add wsdisplay (, wskbd, and wsmouse). 1998-10-14 12:21:21 +00:00
tsubai 9fdd9b72df Implement PCI tag to OpenFirmware device convert function (pcidev_to_ofdev). 1998-10-14 12:18:20 +00:00
tsubai b6e7cc68c6 akbd: wskbd support.
ofb: OpenFirmware generic framebuffer.
1998-10-14 12:15:10 +00:00
augustss 797eea8ae5 Add a sequencer pseuso device since we have a MIDI device. 1998-10-14 11:13:14 +00:00
pk e6c0a03f90 `ncpu != 0' doesn't make much sense when deciding what CP info to print. 1998-10-13 21:08:48 +00:00
pk bf7ace9074 CLKF_INTR() needs to have a MULTIPROCESSOR version. 1998-10-13 20:53:02 +00:00
perry 3a86ff1e67 Fix a stupid bug -- an if that was supposed to be nested but wasn't. 1998-10-13 15:14:13 +00:00
pk 802248ee1c We use MULTIPROCESSOR explicitly here, so pull in "opt_multiprocessor.h". 1998-10-13 13:37:14 +00:00
pk 14a3acbd47 srmmu_cache_flush(): handle small (< NBPG) ranges more efficiently. 1998-10-13 13:34:06 +00:00
tsubai 7d9356dcca Fix cut-and-paste miss... 1998-10-13 13:15:29 +00:00
pk 1e0064d5d6 EINTSTACK => EINTSTACKP 1998-10-13 12:05:44 +00:00
bouyer 10788ef1be Add a CPURESET_DELAY options which specifies the delay (in milliseconds)
between the "rebooting" message and the hardware reset. If set to 0, the call
to delay() is disabled. Default is 2s.
1998-10-13 11:43:50 +00:00
kleink cee25f5a9c Since libc is not ready for enabling weak symbol support yet, disable the
WEAK_ALIAS() macro for now (like cdefs.h).
1998-10-13 11:39:26 +00:00
pk d5e94d4fb2 Add missing `return'. 1998-10-13 11:33:36 +00:00
tsubai ffb3220169 Don't panic when pmap_remove_pv even if pa is not managed.
(i.e. I/O device.  framebuffer etc.)
1998-10-13 11:30:47 +00:00
tsubai b373c846b4 ADB change. 1998-10-13 11:25:26 +00:00
tsubai 7756c05cc4 Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse).  adb is a bus now.  (from Colin Wood)
1998-10-13 11:21:20 +00:00
enami 470c2f6696 Remove space at the end of line. 1998-10-13 03:57:27 +00:00
pk 8511a94f26 Oops, USPACE does not in 13 bits.. repair and save one instruction
in a non-SMP kernel.
1998-10-12 22:05:17 +00:00
is 4e322893fa Make the data pointer of the write_multi, write_region and write_stream
methods const *.
1998-10-12 22:02:43 +00:00
pk c27a8760b7 In switchexit(), switch to the current CPU's idle u.area. 1998-10-12 21:51:54 +00:00
pk dff4866141 Add offset of `cpuinfo.idle_u'. 1998-10-12 21:50:22 +00:00
pk 5d124ce774 Move around a few PTE-manipulating macros. 1998-10-12 21:17:28 +00:00
is 842fbdf4d2 - add bus_space_{copy,set}_region_{1,2} support and implementation for
_1 and for _2 in the contiguous and interleaved case.

- while we're here, reorganize bus.h into sections, and use the defined
  convenience functions everywhere.
1998-10-12 21:15:54 +00:00
pk 83b671e23d Make `cpcb' (current u.area) a per-CPU variable.
Brace some MP-only code with `#ifdef MULTIPROCESSOR'.
1998-10-12 20:56:48 +00:00
perry d6748769a5 Cut down slightly by reducing md size and commenting out ext2fs
support.
(From Havard.Eidnes@runit.sintef.no)
1998-10-12 16:37:44 +00:00
perry 6b858b9573 kernels for 4Mbyte main memory machines (from Havard.Eidnes@runit.sintef.no) 1998-10-12 16:36:18 +00:00
bouyer aaa8f8b183 Patch from Mark Brinicombe for arm32 config with the new ide system. 1998-10-12 16:13:03 +00:00
bouyer 19fddaeeb5 Merge bouyer-ide 1998-10-12 16:09:10 +00:00
perry 37cb095897 1) Change "dectohexdec" and "hexdectodec" to "bintobcd" and
"bcdtobin". The old names were bogus.
2) Make the code grok the NVRAM's century field. This code is, to say
the least, poorly tested. It should make NetBSD play nicer with other
OSes that care about the century field, however.
1998-10-12 15:41:11 +00:00
pk 6791d7f713 Make `_cpcb' (pointer to current user area) a per-CPU variable.
This cpuinfo field is initialized here in locore before calling bootstrap(),
since it must be valid before entering the window overflow/underflow handlers.

Fix miscalculation in the MULTIPROCESSOR version of INTR_SETUP().
1998-10-12 14:39:10 +00:00
pk 523892012a `cpcb' (pointer to current u.area) is now a per-CPU variable. 1998-10-12 14:32:14 +00:00
pk fbbc2eeedd `cpuinfo' is now cleared in locore. 1998-10-12 14:15:13 +00:00
pk 6fc7a5b45a Define `sizeof(struct cpu_info)'. 1998-10-12 14:03:22 +00:00
pk 1fb4827a72 Take care of a MID not present when matching timer register sets. 1998-10-12 12:28:26 +00:00
veego a5eda011ab Include <sys/device.h> for the configure prototype. 1998-10-12 03:51:59 +00:00
mark c70acc4a87 Add console initialisation for wscons via VGA.
Use the boot options console=xxx to select the console where xxx is
vga, fcom or com.
1998-10-12 03:32:51 +00:00
mark 91a04b5d0c Define __HAVE_NWSCONS 1998-10-12 03:12:37 +00:00
chuck 8bef431273 remove unused share map code from UVM:
- update calls to uvm_unmap_remove/uvm_unmap (mainonly boolean arg
        has been removed)
1998-10-11 23:20:59 +00:00
pk b9d844a520 Allocate a private PCB, kernel stack and interrupt stack for each processor.
As a result, the stack setup code in locore.s changes slightly in
the MULTIPROCESSOR case. Also, make the stack redzone barrier (for
debugging only) a per-CPU entity.
1998-10-11 14:46:45 +00:00
thorpej be326c54fe Add pcmcom driver and com slaves. 1998-10-10 21:58:22 +00:00
scw 260d2c97a9 Make 'configure()' agree with the prototype in <sys/device.h>.
(Returns 'void').
1998-10-10 19:46:29 +00:00
scw bdf8d911fc Clear 'cold' to zero at the end of configure(), where it belongs.
(This used to be done in machdep.c, but thorpej recently zapped
that one ;-)
1998-10-10 19:15:32 +00:00
drochner ff455e77b6 Match pchb by class/subclass, like pcib.
Add a note about this strange Pequr host bridge in Compaq machines.
1998-10-10 14:12:21 +00:00
matt 1163f713bb Make DBL_MIN and DBL_MAX makes limits.h (otherwise CPP complains when
building xlint).
1998-10-10 02:13:55 +00:00
thorpej 908cdfe4e3 Add scsibus entry points to the cdevsw[]. 1998-10-10 02:00:49 +00:00
thorpej 29d472f53d Garbage-collect the open_target_lu and close_target_lu entry points from
struct scsipi_adapter; they were not used.

Add a scsipi_ioctl entry point to struct scsipi_adapter.  This will be
used to issue ioctl commands to the host adapters.

Inspired by PR #6090, from Matt Jacob.
1998-10-10 00:28:28 +00:00
pk 5422d07da0 Construct a `flush_cache_all()' for Cypress CPUs. 1998-10-09 10:48:14 +00:00
pk 024e5f4c9a More `#if defined(MULTIPROCESSOR)'s. 1998-10-09 10:08:52 +00:00
pk 57a688f81e Init a variable. 1998-10-09 08:01:33 +00:00
matt 832a061bca Fix some old mistakes when I originally committed this. 1998-10-09 06:20:06 +00:00
matt c4ece7cdcb Commit out include of "../include/macros.h" since its bcopy conflict with
the one in "lib/libsa/stand.h".
1998-10-09 06:15:33 +00:00
matt 71364ebea6 Workaround problem with le driver forgetting its address 1998-10-09 06:14:22 +00:00
matt 3d8c929799 Remove define for SUPPORT_BOOTPARAMS and put in the Makefile instead.
Fix DHCP code so it works.
1998-10-09 06:13:30 +00:00
matt 7d79b82d33 include <bsd.prog.mk> and make changes so that "make obj" works.
Make it easy to build an boot which uses BOOTP/DHCP instead
RARP/BOOTPARAMS.
1998-10-09 06:12:31 +00:00
matt bbf29cff44 Add strncpy (needed for bootp/dhcp). Tighten up some of the assembly. 1998-10-09 06:09:48 +00:00
mark 45a8df778f Remove some unnecessary includes. 1998-10-09 00:17:20 +00:00
pk 312385da0a Define SMP versions of some cache flush methods. 1998-10-08 22:27:32 +00:00
pk 41d031837e Define a message structure of inter-processor communication. 1998-10-08 22:25:42 +00:00
pk f3c4a67a7f Adapt to changes to the cpus[] array. 1998-10-08 22:23:44 +00:00
pk 34ad8e5fb7 Find out about the number of CPUs in the system before starting device
configuration, so we can build a cpus[] array without "holes".
1998-10-08 22:14:44 +00:00
pk a61ee50b27 Move [gs]etcontext and [gs]etpte() to pte.h 1998-10-08 21:49:12 +00:00
pk e6bbfcc58a Move [gs]etcontext() and [gs]etpte() to pte.h 1998-10-08 21:47:34 +00:00
is 6662b5ed74 - define framework for >8bit transfers
- implement 16 bit contiguous and 16 bit interleaved, both big-endian
1998-10-08 21:46:39 +00:00
thorpej 67b94a13ed Add the Intel 82443BX PCI host bus adapter. From Soren S. Jorvang, PR #6250. 1998-10-08 20:04:32 +00:00
ws 3e28defef4 No point in making the fake partition that large.
This smaller one will (hopefully) make 0-start
installations work on more machines.
1998-10-08 14:25:42 +00:00
eeh b6fd7187e0 Fix more syscall32 and signal breakage. 1998-10-08 02:31:39 +00:00
mark 8d41878215 Add pckbc device, keyboard and mouse and wskbd and wsmouse via pckbc. 1998-10-08 01:59:22 +00:00
mark d21eb4802d Rename the pckbd attribute to avoid clashing with the pckbd device
from dev/pckbc/*
Include files.pckbc
1998-10-08 01:50:28 +00:00
thorpej 010b1e5215 Erg, frame -> trapframe in last. (thanks to john kohl) 1998-10-07 21:25:35 +00:00
ross b6553585ab g/c leftover `{' in #if notdef; it confuses ctags(1) 1998-10-07 19:09:53 +00:00
thorpej b38544d99e Oops, back out a buglet I didn't intend to commit in the last change. 1998-10-07 18:29:26 +00:00
matthias 4b23112e21 Add empty definition of __warn_references for lint. 1998-10-07 08:54:59 +00:00
leo d833f66c0c Copyright stuff. 1998-10-07 07:22:32 +00:00
tsubai d976f73513 Enable interrupt AFTER autoconfiguration. 1998-10-07 06:24:58 +00:00
scottr 8c9bf4e881 Use the size field to distinguish between ADDX and ADDA. Fixes a problem
pointed out by Paul Goyette.
1998-10-07 06:08:47 +00:00
scottr 651280426e Fix a problem pointed out by Paul Goyette: print_reglist() forgets that
it had a range of registers to print if A7 is among them.
1998-10-07 05:27:13 +00:00
tsubai 31314a2d26 Mask clock interrupt properly if >= splclock. 1998-10-07 04:58:23 +00:00
tron 8362affa14 Add a few "nop" instructions to make the memory size probe more reliable. 1998-10-06 22:26:42 +00:00
thorpej d374462dfc Move the code that does the deferred (post-autoconfiguration) buffer
cache allocation to its own function, and call it at the end of configure().
1998-10-06 21:42:08 +00:00
thorpej abaeca8063 Move the calls to hwrpb_restart_setup() and cpu_run_spinup_queue() to the
end of configure().
1998-10-06 21:19:05 +00:00
thorpej 2038eb830c Split hwrpb_restart_setup(), putting the code that initializes the vtpb
and primary hwpcb into hwrpb_primary_init().  Call the latter before
performing autoconfiguration().
1998-10-06 21:10:46 +00:00
thorpej 5a687aeb55 cold is already set to false at the end of configure(). 1998-10-06 20:55:38 +00:00
thorpej d681cf055a configure() prototype is in <sys/device.h> 1998-10-06 20:50:15 +00:00