Commit Graph

3622 Commits

Author SHA1 Message Date
drochner
2a3fff85f0 add RCS ID 1998-05-06 13:32:18 +00:00
chuck
7704d6d342 correct some addresses in the comment that i missed when
KERNBASE changed a while back (from Matthias Drochner)
1998-05-05 01:36:46 +00:00
thorpej
88e3ea0922 Use pci_bus_flags(). 1998-05-04 18:49:33 +00:00
thorpej
c099eb3a4a Add a function, pci_bus_flags(), that determines which flags (for memory
and i/o enabled) should be passed to the primary PCI bus's autconfiguration
node.  Use this function to detect broken PCI-Host bridges, which have
problems with memory-mapped access.  Add the SIS 85C496 to this list.
1998-05-04 18:49:07 +00:00
thorpej
627388689b Whitespace. 1998-05-04 06:09:35 +00:00
drochner
8b49b1c0b1 Set console to polling mode before calling cngetc(). 1998-05-03 10:14:19 +00:00
augustss
7458164379 Add Ensoniq AudioPCI driver. 1998-05-01 22:00:37 +00:00
thorpej
1686aca01d Pull in opt_gateway.h as appropriate. 1998-04-29 23:11:00 +00:00
thorpej
a6084492d9 Fix some whitespace. 1998-04-28 02:04:13 +00:00
kleink
a53c1863fe Provide definitions for intptr_t and uintptr_t, signed resp. unsigned integral
types large enough to hold any pointer.
1998-04-27 17:39:10 +00:00
thorpej
aefae6b463 Eliminate some needless indirection through ISA DMA front-end functions. 1998-04-27 00:21:57 +00:00
thorpej
ff701f8abb Garbage-collect the DMA tag's "_cookie" member; it's not used for anything. 1998-04-26 22:37:20 +00:00
drochner
92b545d880 There are NE2100 compatible cards which cannot IRQ 10.
Use IRQ 9 in the default configuration.
(Thanks to Rick Byers <rickb@iaw.on.ca>.)
1998-04-20 10:58:01 +00:00
drochner
543407f7ee use the mi header (dev/pckbc/pckbdreg.h) 1998-04-17 13:09:23 +00:00
drochner
fa82ea6398 it's mi now (dev/isa) 1998-04-17 13:06:48 +00:00
drochner
6af8040a5c -"spkr" now attaches to "pcppi"
-"le at isa" is split into "depca", "nele" and "bicc"
1998-04-16 22:01:41 +00:00
drochner
bf23ba7b87 add a device node for "sysbeep at pcppi" 1998-04-16 20:16:28 +00:00
drochner
46f77d75da Make sysbeep() use dev/isa/pcppi. (sysbeep0 at pcppi?)
Remove findcpuspeed() - it's useless and was commented out for a while.
1998-04-16 20:15:10 +00:00
drochner
3ae87f413f "spkr" is now mi. Keep this file for compatibility. 1998-04-15 21:40:27 +00:00
drochner
7689c5d866 remove unneeded stuff 1998-04-15 21:39:01 +00:00
drochner
816be100e0 Remove initialization macros for wsdisplay / spkr - they are in mi
sys/conf.h now.
1998-04-15 21:31:40 +00:00
drochner
2aa1ce8196 VGA and spkr are now MI. 1998-04-15 21:27:47 +00:00
frueauf
f7a146be7b Add isa/pcvt to SUBDIR, this will install /usr/include/machine/pcvt_ioctl.h
which is needed by our default xsrc on i386. Closes pr 1391.
1998-04-13 21:54:30 +00:00
tv
b21bfbde11 Add -Wno-main conditional on compiler being gcc 2.8 or egcs. (This adds
a HAVE_GCC28 check-variable that can now be used to add other gcc-2.8
flags in cases where they may be useful, or to remove gcc 2.7.2 "bug
workaround" flags.)
1998-04-12 23:47:41 +00:00
tv
482063559a .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
thorpej
8e115c7176 Fill in pmap_collect(), doing what the Alpha port's pmap does - forget
the physical mappings for the entire address space, thus freeing up
the page tables held by the pmap.
1998-04-07 18:32:10 +00:00
cgd
b81a5e0d4c set apm_damn_fool_bios on standby request if another request is
already in progress (as is done in the suspend case).  Suggested
by Soren S. Jorvang in PR 5246, but diff in that PR cleaned up so
it'd still work right when debugging printfs were enabled.
1998-04-03 18:18:05 +00:00
enami
f7fc870789 Add entry for aic* at isapnp, but comment outed. 1998-04-03 04:35:39 +00:00
enami
6821ff25c2 Add entry for aic* at isapnp. 1998-04-03 04:35:05 +00:00
enami
6223459801 Add entry for mbe* at pcmcia (but comment outed). 1998-04-03 04:29:52 +00:00
enami
c95ab20c4a Add entry for mbe* at pcmcia. 1998-04-03 04:29:13 +00:00
enami
078370be30 Add comment outed entries for ate0 and fmv0.
Remove fe0.
1998-04-03 04:25:15 +00:00
enami
b1b3597d5e Add entries for ate0 and fmv0 (former is tested but latter is not).
Remove fe0.
1998-04-03 04:23:50 +00:00
cgd
0d0f2a0713 kill unnecessary (unused) definition of partab (char partab[];), which
caused a compiler warning with egcs.
1998-04-02 02:46:02 +00:00
drochner
e9ca6a9081 Remove conditionals on PCVT_{NET,FREE}BSD to make the source easier to
read.
1998-03-31 08:22:13 +00:00
thorpej
7e74fb627d Allow this to work w/ UVM (API issue). 1998-03-31 08:18:33 +00:00
thorpej
8c33969680 Fix PR # kern/68 by ensuring that a PC has a valid mapping before attempting
to disassemble it.
1998-03-31 08:16:28 +00:00
mycroft
4fe1e7a83d Make main() return int to shut up egcs. (Yuck.) 1998-03-31 05:29:21 +00:00
mycroft
1a36e9e970 Add explicit int types for egcs. 1998-03-30 06:07:40 +00:00
mycroft
1fc84bbd8d Add explicit int types for egcs, and nuke register. 1998-03-30 06:05:39 +00:00
mycroft
450748892d Make the previous slightly less nasty. 1998-03-30 06:04:29 +00:00
mycroft
38008a99e3 Add explicit int types for egcs, and nuke register. 1998-03-30 06:02:13 +00:00
tron
8295d8475b writedisklabel() always used the offset of the first partition in the MBR
to address the disklabel even if NetBSD resides on another partition.
1998-03-29 21:30:20 +00:00
cgd
7fa109343c cope with name fixup in pcidevs 1998-03-28 02:12:02 +00:00
cgd
b3d285e625 add -nostdinc to CPPFLAGS, so that /usr/include won't be used 1998-03-27 01:32:53 +00:00
chuck
5f8c3edfed add pmap_dump as a DEBUG function 1998-03-26 19:49:51 +00:00
chuck
1c1186a3f2 the kernel remove function can encounter mappings that are on the
pvlists if they were entered by the fault routine.   in this case
we had better call pmap_remove to clear out the pventry structures.

appears to fix some pvlist releated panics people have seen with pmap.new.
1998-03-25 22:49:11 +00:00
chuck
a30817ebaa if installing page 2 as a PT page for first 4M (for BIOSCALL),
make sure we zero it first so that the PT is not filled
with random garbage
1998-03-25 16:30:43 +00:00
frueauf
65b1639385 Make this compile again: PCKBDCF_PORT->PCKBCPORTCF_PORT. 1998-03-24 11:37:06 +00:00
drochner
db80fc3242 The "pckbd" attribute of pc/vt is now "pckbcport".
Use the real console driver name here to make more obvious where
pms and spkr attach to.
1998-03-22 18:18:45 +00:00
drochner
4682d49cf1 tell drivers that this port knows about the new wscons code
(and generates the NWSCONS etc include files)
1998-03-22 17:53:23 +00:00
drochner
f321f0c731 add entries for the new wscons stuff 1998-03-22 17:50:12 +00:00
drochner
d4d8012d51 Export pcconskbd_cnattach() - it is used if pccons attaches to the MI
keyboard controller driver.
1998-03-22 17:49:00 +00:00
drochner
c4a9c8a96e Allow to use pccons with the new MI keyboard controller driver.
This is more or less for testing (it doesn't contribute to the beauty
of the code).
1998-03-22 17:40:08 +00:00
drochner
a773a26ab1 Allow to attach the mouse driver to the new MI keyboard controller driver.
This should allow to use old X servers which depend on the old mouse
interface to work in the future.
XXX There can be only one attachment - either to an old console driver
or to the new pckbc driver - be configured.
1998-03-22 16:48:51 +00:00
drochner
e6244ecd3a allow use of new wscons code:
-rename the "pckbd" internal attribute to pckbcport, it conflicts with the
 real pckbd device in dev/pckbc
-add attachments of pccons and pms to the new mi keyboard controller
 driver (more or less for testing)
-include the new "files.wscons" and "files.pckbc"
-add declarations for VGA - must be done here for now to avoid conflicts
 with alpha's private VGA driver
1998-03-22 16:14:39 +00:00
drochner
528890f3ab Allow to use the new VGA and keyboard controller drivers as console:
-allow to bus_space_map() for the memory hole in early startup
-add calls to the new XXX_cnattach() functions to consinit()
-add a "pckbc_machdep_cnattach()" dispatch function to allow the
 combination of old console driver - new keyboard controller driver
1998-03-22 16:04:31 +00:00
drochner
06471a2eed switch to non-BROKEN_INDIRECT_CONFIG 1998-03-22 12:52:03 +00:00
mycroft
2ada4b4af1 Replace TS_WOPEN with t_wopen, per mail on tech-kern. 1998-03-21 04:02:47 +00:00
mycroft
919340aaa5 In npxdna(), if there was an exception state in the FPU but npxproc was
null, the frstor would fault on a PPro.  I'm pretty sure this is not
how the chip is supposed to behave, but it's easy enough to do a fninit
to throw away the exception state.
Also, some other minor changes to the documentation.
1998-03-20 20:15:14 +00:00
bouyer
9f50fca1fd Add commented out "options FFS_EI" 1998-03-18 16:34:41 +00:00
chuck
1e137afb43 typo in printf 1998-03-17 22:09:32 +00:00
cgd
9b6471a47d remove a few unnecessary and incorrect pointer checks. 1998-03-17 21:27:25 +00:00
chuck
6282e70846 print more info for a diagnostic panic 1998-03-17 19:15:07 +00:00
leo
6356561f35 Use bus-dma functions. Also make sure that dma will not use the bounce
buffers (Tested & requested by Noriyuki Soda).
1998-03-16 15:48:00 +00:00
chuck
b87759e7f2 bug fix: bring in-line with rest of uvm: use kernel_map for object offset
rather than kmem_map.   should fix PR#5129 reported by
	Lennart Augustsson.
1998-03-10 14:53:20 +00:00
mikel
7d4b078022 print proper invalid IRQ, from Heiko Rupp in PR 5128 1998-03-09 06:20:26 +00:00
drochner
84963f97b5 Move allocation and mapping of the page table page for "bioscall" from
locore to here.
1998-03-06 14:53:06 +00:00
drochner
25f48b177c Use NKPDE page table pages (instead of only one) for temporary mapping
in transition to relocated mode.
Remove preparation for "bioscall" identity mapping - it is in the way
and can be done later in init386().
Should solve the problem described in PR 4832 and 5102.
1998-03-06 14:51:36 +00:00
jtk
4fcd1c2cdd include <machine/vm86.h> if VM86 option defined 1998-03-06 04:12:56 +00:00
scottb
d24f809241 Added prototype for ibcs2_sendsig. 1998-03-05 05:23:49 +00:00
scottb
b8bb612601 Add ibcs2_sendsig function.
Add ibcs2_sigcode function to locore because we need to call our own
	version of sigreturn.
Add support for emul_ibcs2_xout (XENIX) structure because we need to emulate
	some syscalls differently.
1998-03-05 04:20:44 +00:00
cgd
8854631e5f add file declarations for MD pciide file.
add (temporary) device/file declarations for the MI PCI IDE controller
driver.  These are present here until the wdc declaration mess is
resolved, because until then they need to go into MD files files in
places where they play nice with the wdc declaration.
1998-03-04 06:40:29 +00:00
cgd
ccdea2d9c8 machine-dependent bits (for compat interrupt mapping) of PCI IDE driver. 1998-03-04 06:35:47 +00:00
cgd
9da165424c allow LDSTATIC definition to be overridden by bsd.own.mk/mk.conf 1998-03-02 19:57:00 +00:00
fvdl
25bc5ab033 Don't make simple_lock decls dependent on NCPU > 1, be consistent with
the rest of the kernel.
1998-03-02 18:06:32 +00:00
mikel
dfb1317f8a remove some lint; from Thorsten Frueauf in PR 5085.
also made one implicit int declaration explicit.
1998-03-02 06:20:16 +00:00
mikel
3119a26ccd s/CFLAGS/CPPFLAGS/ 1998-03-02 06:17:29 +00:00
fvdl
25a2f5ee46 Put #if NCPU > 1 around initialization of simple_locks too, to avoid
compile errors.
1998-03-01 23:19:01 +00:00
augustss
1918ca1e5b Change ie[01] to ef, ai, and ix so that these kernels can be used again. 1998-03-01 20:45:26 +00:00
fvdl
0485953099 Make this compile after the lite2 merge. 1998-03-01 13:22:55 +00:00
pk
32ad582965 Replace monolithic ie0' and ie1' driver by ef', ix', `ai' front-ends. 1998-02-27 23:57:31 +00:00
cgd
84fad9aba3 make it clear that the "old BSD partition ID!" message is a warning (by
prefacing it with "WARNING: ").
1998-02-27 18:57:40 +00:00
perry
edac6b7ff2 define kernel only inline static functions only #ifdef _KERNEL 1998-02-26 01:57:30 +00:00
perry
398e0f8c64 add /* LINTLIBRARY */ to supress lots of "unused function" warnings
from lint.
1998-02-25 22:36:45 +00:00
perry
1ed8ea9966 note second parm of sysarch() is now void *, + trivial KNF, etc. 1998-02-25 21:41:55 +00:00
perry
56c01cbd82 change second parm of sysarch() from char * to void * 1998-02-25 21:24:56 +00:00
drochner
3ee0e26f7d document 3c900 TPO support, add comments 1998-02-25 12:19:12 +00:00
drochner
41bbe0c360 3c900 TPO works too, as reported by Feico Dillema <dillema@acm.org>. 1998-02-25 12:15:49 +00:00
drochner
e225b4cbdd -check MBR signature before using MBR partition data
-add new FAT types and Linux EXT2 to the faked-up partition table
1998-02-22 14:48:27 +00:00
drochner
74b401ffd1 -correct misleading name and comment for MBR partition type 14
-add FAT32 and EXT2FS
1998-02-22 14:45:43 +00:00
mycroft
4b6d15532b Nuke random.s. 1998-02-22 08:21:33 +00:00
mycroft
5a22434af5 Remove this copy of bzero(). 1998-02-22 08:19:05 +00:00
mycroft
f118bc7042 Move to libkern. 1998-02-22 08:13:47 +00:00
mycroft
03f75a79ff Nuke the override of libkern SRCS from orbit. 1998-02-22 07:19:02 +00:00
christos
4e915f8681 PR/4950: Rene Hexel: Add id for Terratec EWS64 joystick 1998-02-21 13:19:14 +00:00
frueauf
5e3035adb1 include <unistd.h> for optarg/optind. 1998-02-20 09:19:11 +00:00
mycroft
7aad596fa6 Fix formatting glitch. 1998-02-19 23:21:33 +00:00
drochner
0587f7e6e7 add COMPAT_386BSD_MBRPART option 1998-02-19 14:21:57 +00:00
drochner
ce380ad936 enable "old partition ID" compatibility per default 1998-02-19 14:18:36 +00:00
drochner
ad33d83f8b Add compatibility code (#ifdef COMPAT_386BSD_MBRPART): look for 386BSD
partition ID if the NetBSD ID was not found.
Cleanup, use definitions from <machine/disklabel.h>
1998-02-19 14:15:38 +00:00
drochner
411e77cac8 Add compatibility code (#ifdef COMPAT_386BSD_MBRPART): look for 386BSD
partition ID if the NetBSD ID was not found.
1998-02-19 14:12:48 +00:00
drochner
7d1b6dbcbf -define new own partition ID for NetBSD (0xa9)
-protect structure definitions from inclusion in assembler files
1998-02-19 14:10:34 +00:00
drochner
b3019be867 Use an own NetBSD MBR partition type. Add compatibility code for fallback
to the old 386BSD ID (#ifdef COMPAT_386BSD_MBRPART).
basically from Duncan McEwan <duncan@MCS.VUW.AC.NZ>
1998-02-19 14:07:33 +00:00
thorpej
772da350d4 Disable the message buffer during crash dumps by clearing msgbufenabled,
not msgbufmapped.
1998-02-19 04:18:30 +00:00
perry
8486362eaf remove obsolete boot code -- we now use the code in stand/ 1998-02-18 19:23:23 +00:00
perry
3add465995 remove obsolete netboot code -- we now use the code in stand/ 1998-02-18 19:21:36 +00:00
mycroft
c525e48e35 Include correct information for long doubles (i387 extended precision). 1998-02-18 09:22:02 +00:00
thorpej
edbfcebb6a Fixup an inconsistency in the declaration of PTDpaddr, pointed out by
Chris Demetriou.
1998-02-18 03:04:40 +00:00
cgd
3bbb7f7d45 Move pmap_map() function definition to MD headers, as appropriate. It's
an internal function, and the VM system shouldn't try to prototype it.
(Note that some ports _don't_ prototype it.)
1998-02-18 02:05:32 +00:00
thorpej
b7d1ce7766 Switch the i386 port to the new kernel crash dump format. 1998-02-18 01:09:25 +00:00
thorpej
8354e68508 Remove "class" declarations, and add "devclass" declarations where
appropriate.  Fix several inconsistencies between device class and
attributes.  Mostly from Chris Demetriou.
1998-02-16 22:12:45 +00:00
drochner
07fdccb3a4 Document new WD80x3 option. 1998-02-16 11:41:14 +00:00
drochner
509f891bd0 -Completely reset the card in EtherStop(), otherwise the next
open can fail.
-Disable interrupts in the mask register - EP_W0_RESOURCE_CFG is not
  sufficient for PCI cards.
1998-02-16 11:26:36 +00:00
drochner
b8cdacb8d5 Redo standalone driver for WD8013 / SMC Ultra boards.
(The old one was buggy.)
Frontend / backend splitup and most code taken from sys/dev/ic/dp8390.c
and sys/dev/isa/if_we.c.
1998-02-16 11:21:59 +00:00
mrg
7d9acb9bb6 add a commented out PMAP_NEW. 1998-02-13 04:12:33 +00:00
thorpej
cb9500aac0 Fix for defopt'd UVM and PMAP_NEW. 1998-02-11 03:05:35 +00:00
thorpej
e9017a5ab3 Use kernel_map in bus_dmamem_{map,free}(). 1998-02-11 03:03:52 +00:00
thorpej
30aa56fc66 Use M_DMAMAP where appropriate. 1998-02-11 01:37:51 +00:00
mrg
d90485202c - add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.
1998-02-10 14:08:44 +00:00
scottb
2ee5fa7f17 iBCS2 code cleanup
added support for ELF binaries
added support for ELF shared libs via mmap code borrowed from svr4_misc.c
incorporated a few XENIX patches from Andreas Wrede <andreas@planix.com>
1998-02-09 02:30:42 +00:00
thorpej
1305ecbe62 Allow callers of uvm_km_suballoc() to specify where the base of the
submap _must_ begin, by adding a "fixed" boolean argument.
1998-02-08 06:15:53 +00:00
thorpej
9eb328b495 RCS ID police. 1998-02-06 22:26:13 +00:00
thorpej
2d1cb11d5b Allow userland access to pd_entry_t and pt_entry_t, like the old pte.h
used to do.  Also, RCS ID police.
1998-02-06 21:58:05 +00:00
cgd
82bb6682da re-indent the EX_FAST change (try to keep a given argument on one line,
so that it's more apparent what the code is going).
1998-02-06 19:51:54 +00:00
mrg
30a584067f remove paging options from kernel files. 1998-02-06 11:20:27 +00:00
thorpej
c0c3c30be3 When allocating bus space in bus_space_alloc(), use EX_FAST to find
the first fit in the map.  The previous behavior violated the principle
of least surprise (especially annoying when you're debugging space allocation
problems).  Suggested by Chris Demetriou.
1998-02-06 10:06:51 +00:00
thorpej
374b6294f9 Back out previous change. Until the default VM system is UVM, these
"options" ARE required, and leaving them here doens't hurt anything in
the UVM case.
1998-02-06 08:19:23 +00:00
thorpej
10a076eee1 Kernel for zhadum.netbsd.org, soon-to-be CVS server. 1998-02-06 08:08:56 +00:00
thorpej
424e1858c4 Use __BROKEN_INDIRECT_CONFIG where appropriate. 1998-02-06 08:00:52 +00:00
thorpej
b16f0280e3 Add pceb at pci and {eisa,isa} at pceb attachments. 1998-02-06 07:53:26 +00:00
thorpej
9c9a25df29 Don't attach an EISA bus if it's already been configured. 1998-02-06 07:52:13 +00:00
thorpej
cacadb7fbe Erg, typi. 1998-02-06 07:51:46 +00:00
thorpej
fce12f0081 Notify other machine-dependent code that the EISA bus has been configured
in the attach hook.
1998-02-06 07:51:11 +00:00
thorpej
e56b1d0b2d Add an autoconfig node for PCI-EISA bridges. Configures EISA and ISA
bridges via callback.
1998-02-06 07:50:07 +00:00
mrg
6bcccb887c oops, forgot to add these new files 1998-02-06 07:41:33 +00:00
mrg
29e93b8bea add the i386 MD portions for UVM. 1998-02-06 07:21:42 +00:00
thorpej
939995c0dc On the 486 and higher, actually make the bus mem space mapping noncacheable
if mapped with BUS_SPACE_CACHEABLE unset.
1998-02-06 05:35:16 +00:00
drochner
ac884fce95 Allow DELAY() to be called anytime:
-don't enable interrupts at the end of gettick(), restore the previous
 state instead
-start timer/counter 0 from delay() if necessary
-comment out "findcpuspeed()", it would clobber the timer again, and it
 is unused anyway
1998-02-05 19:59:54 +00:00
drochner
3f38ea4063 provide pushfl/popfl to C code 1998-02-05 19:53:52 +00:00
thorpej
8abe76d2f0 Add offset and length parameters to bus_dmamap_sync(), used for specifiying
partial syncs of a DMA mapping.
1998-02-04 05:12:46 +00:00
thorpej
99cc8482d1 Change the last argument of bus_dmamap_sync() from bus_dmasync_op_t to int,
and allow more than one synchronization operation to be specified in
a single call.  Dissallow mixing of PRE and POST operations.
1998-02-04 01:57:27 +00:00
thorpej
a7c5c1ef3c Add dm_mapsize to bus_dmamap_t and rename BUS_DMAMEM_NOSYNC to
BUS_DMA_COHERENT.
1998-02-04 00:32:55 +00:00
thorpej
b7b27cb6e4 Back out a change that wasn't supposed to be in here. 1998-02-03 19:16:04 +00:00
mycroft
b5c132e4d2 Prototype __flt_rounds() consistently. 1998-02-03 01:26:20 +00:00
tron
56ba21e271 Add option "#options IPFILTER_LOG", fixes port-i386/4858. 1998-01-29 01:53:03 +00:00
bouyer
2edc21452a The name of cyrix's CPU family 6 model 0 is 6x86MX. Also set this name
for the default name.
1998-01-28 17:08:05 +00:00
thorpej
5d3fc3e8bc Implement bus_dmamap_load_mbuf(). 1998-01-27 03:31:54 +00:00
mycroft
1f21545d93 Correct an oversight in the startup changes that caused the wrong exception
to be reported in one case.
1998-01-24 15:50:42 +00:00
mycroft
8661bee5de Minor change. 1998-01-24 14:22:44 +00:00
mycroft
d664bf39b8 Add some comments about what the control words do. 1998-01-24 14:00:36 +00:00
mycroft
a963fe5864 Store the initial NPX control word appropriate for the emulation in the saved
FPU state, and use it when initializing the FPU on demand.
1998-01-24 13:19:46 +00:00
mycroft
a9a7cc88d1 Need foo_exec.h. 1998-01-24 12:45:16 +00:00
drochner
ae1a2006c5 -take over debugging printf format fixes from sys/lib/libsa/nfs.c rev.1.23
-make error reporting for mount working as in sys/lib/libsa/nfs.c
1998-01-24 12:43:09 +00:00
mycroft
8bd9717302 Add local versions of setregs(), so I can tweak some registers later. 1998-01-24 12:42:22 +00:00
mycroft
4b8a102fbb Fix process_{read,write}_fpregs(). 1998-01-24 12:11:15 +00:00
mycroft
d15d246d32 Add wdc* at isapnp?. 1998-01-23 20:42:34 +00:00
mycroft
c1d56d473f Add wdc* at pcmcia. 1998-01-23 01:16:03 +00:00
mycroft
22c1670658 Some rearrangement of the startup code:
* Move some of the memory bootstrapping and the DDB startup earlier.
* Always put the IDT and the initial GDT and LDT in a separate page.
* Various minor changes.
1998-01-23 00:44:02 +00:00
mycroft
c654cd6a87 Fix a bogon that flared up when XSERVER was defopted. 1998-01-22 20:55:48 +00:00
drochner
9219f22775 strchr.c disappeared from libkern, use index.c instead
(we can't control the libkern build as we want, but it works...)
1998-01-22 15:48:02 +00:00
thorpej
dd4cb910db Generate dependenices on the XSERVER option. 1998-01-22 01:16:23 +00:00
thorpej
122364206a Generate dependencies on the DUMMY_NOPS option. 1998-01-22 00:44:06 +00:00
thorpej
54a35a6019 Generate dependencies on the USER_LDT option. 1998-01-22 00:39:16 +00:00
thorpej
9ba18e2255 Generate dependencies on the MATH_EMULATE option. 1998-01-21 23:29:08 +00:00
drochner
66e093ada9 remove unused and misleading KERNSIZE definition 1998-01-20 13:11:25 +00:00
drochner
ae5f11c8d7 fix typo in DEBUG code 1998-01-20 12:48:05 +00:00
drochner
32d94859ea adapt to changed <dev/ic/i8042reg.h> 1998-01-18 14:45:10 +00:00
thorpej
cf591e644b Generate dependencies on the VM86 option. 1998-01-15 22:25:52 +00:00
thorpej
032c433933 Just commit to using MACHINE_NEW_NONCONTIG. 1998-01-15 22:20:15 +00:00
thorpej
1484fa567d Generate dependencies on the CPU type options (I386_CPU, I486_CPU, ...) 1998-01-15 19:47:36 +00:00
thorpej
2cfef7a0ec Oops, something snuck in there that shouldn't have... 1998-01-15 07:40:06 +00:00
thorpej
525b092c2e Get include file paths correct. 1998-01-15 06:15:08 +00:00
thorpej
1f93872e5c Kludge around i/o port overlap w/ the "wdc" driver. 1998-01-15 06:11:55 +00:00
cgd
d6e5187749 add 'sd* at atapibus? drive ?' to all kernel configs already containing
an analogous line for 'cd'.
1998-01-15 02:26:26 +00:00
cgd
ad141a69a7 Shuffle wd/wdc driver files around (via repository copies). wdc
now lives in dev/ic, wd now lives in dev/ata.  there's now a 'ata'
interface attribute defined in conf/files, but wdc can't go there
yet because some ports still use private versions based on the old
ISA version.
1998-01-14 23:36:30 +00:00
drochner
09354842c5 from Dave Burgess per PR4620:
-base address 0x308 is supported by more Wangtek QIC tapes than 0x300
-Ultrastor ISA SCSI adapters can't be set to base address 0x334
  (changed to 0x340)
1998-01-14 15:27:43 +00:00
mrg
057795048f this is the i386 MD portion of the MACHINE_NEW_NONCONTIG code, as
written by chuck cranor.  thanks to mycroft for helping me find the
one little line of code i accidentally deleted while merging it.

this is not enabled by default.  `options MACHINE_NEW_NONCONTIG'
will use this code.  eventually, this should go into <machine/vmparam.h>
insteaed of MACHINE_NONCONTIG.
1998-01-13 12:52:16 +00:00
thorpej
36760d9d94 Update for changes to config. 1998-01-12 18:59:04 +00:00
perry
aceff90d16 add yet another PCI brige -- from pr 4780 from Nathan J. Williams 1998-01-10 01:15:14 +00:00
fvdl
83ef3d4928 Switch off CPU-PCI write posting for the Saturn chipset; it is known
to cause problems with PCI busmasters.
1998-01-09 22:34:58 +00:00
perry
6f57e5c573 multiple include protect machine/limits.h, fixes pr 4473 (from Mika Nystrom) 1998-01-09 22:23:44 +00:00
mycroft
59ea23516a Increase delays to the required 7us. 1998-01-09 21:28:32 +00:00
drochner
6757ab1b65 Remove conditional setting of "nfs_boot_rfc951" (introduced in previous
change). It's not needed anymore.
1998-01-09 16:01:27 +00:00
drochner
5b055c9032 enable diskless boot with BOOTP and BOOTPARAM configuration 1998-01-09 15:18:50 +00:00
mrg
aa39c43bc9 call vm_set_page_size(). 1998-01-09 04:37:56 +00:00
thorpej
3e7eb6c80a Garbage-collect pm_pdchanged; it's not used by anything. 1998-01-06 07:16:06 +00:00
jtk
fe87ac4104 fix for changes in bioscall structure and include files 1998-01-06 00:35:42 +00:00
perry
5646f55116 make script insert RCS ids into generated files 1998-01-05 21:28:21 +00:00
perry
015e898c02 RCSID Police. 1998-01-05 07:02:46 +00:00
thorpej
b9f1b716f3 Now that all ports have pmap_activate(), and it has an identical interface,
prototype it in <vm/pmap.h>
1998-01-03 01:12:59 +00:00
mycroft
61475326e0 Add delays for lame keyboard controllers, as in the keyboard driver. Do a
better job of flushing input in various cases.
1997-12-18 16:49:10 +00:00
mikel
718221a852 fix format string in FD_DEBUG printf(); from Eric Haszlakiewicz in PR 4692 1997-12-16 07:35:45 +00:00
drochner
fbe83dc02d Install "pcvt_ioctl.h" by normal "make includes". 1997-12-10 14:14:21 +00:00
tv
a7d1d15c39 KMEMSTATS is documented in options(4) as being a possible severe
performance hit, and on an 80386 processor, it most certainly is.  Pull it
from the GENERIC (and DISKLESS "generic") kernels--configure it in
yourself if you actually need it.
1997-12-09 13:32:32 +00:00
thorpej
b27ebeeac1 Work-around the situation where the buffer cache is larger than
16M, thus eating up all candidate bounce pages, which are not allocated
until autoconfiguration runs, by deferring allocation of the buffer
cache pages until after autoconfiguration has run.

XXX This is safe because the i386 port doesn't read any disklabels
XXX during autoconfiguration.
1997-12-08 05:07:29 +00:00
fvdl
be205fedc0 Define constants for the start and end VA of user page tables. 1997-12-07 21:30:11 +00:00
fvdl
4357e617d2 When getting a pagefault for a PT page, wire it. Normally we fault them in
ourselves, but this can still happen on a 386 in copyout & friends.

Fixes pmap_changebit panics seen on 386s. Thanks to Juergen Hannken-Illjes
for providing detailed info on bug occurances.
1997-12-07 21:28:56 +00:00
thorpej
d25c266af2 Use malloc()/free() for the temporary buffer, not geteblk()/brelse(). 1997-12-07 16:06:21 +00:00
thorpej
6e39ad36a6 In pccngetc(), don't treat cn_tab->cn_dev as a valid device number until
it's initialized.
1997-12-07 06:20:44 +00:00
bouyer
d45f82208d Add a cpu_setup() function to "struct cpu_nocpuid_nameclass" and
"struct cpu_cpuid_family", so that we can have a cpu_setup function per
known cpu type. For now use it only for cyrix 6x86 to enable suspend-on-halt
and implement cyrix's workaround to the "coma bug".
1997-11-27 11:53:45 +00:00
fvdl
b3de97c5c1 Revert I486_PCI_MEM_ENABLED change; it caused too many problems. 1997-11-27 10:10:50 +00:00
fvdl
4ee07a6d65 Revert I486_PCI_MEM_ENABLED change, it caused too many problems. 1997-11-27 09:58:26 +00:00
kleink
e85ad99e57 Add COMPAT_13. 1997-11-25 20:29:24 +00:00
thorpej
2524b071e8 Add commented-out "I486_PCI_MEM_ENABLED" option, and describe it. 1997-11-24 00:21:48 +00:00
thorpej
b6e3c093d8 defopt I486_PCI_MEM_ENABLED 1997-11-24 00:21:01 +00:00
thorpej
46c5ad921d Add a workaround for buggy i486 PCI chipsets that have trouble with
memory-mapped device access (manifested by an apparent wedging of the
PCI bus):
- If cpu_class == CPUCLASS_486, disable memory-mapped PCI device access,
  leaving only i/o-mapped access enabled.
- Provide a patchable kernel variable (i486_pci_mem_enabled) and a kernel
  option (I486_PCI_MEM_ENABLED) to re-enable it.
1997-11-24 00:20:32 +00:00
thorpej
978a8b60db Add SCSIVERBOSE 1997-11-23 23:40:45 +00:00
kleink
66c2794142 Add _BSD_SUSECONDS_T_ and _BSD_USECONDS_T_; do some space vs. tab formatting
cleanup
1997-11-23 20:20:53 +00:00
mikel
37d9430628 add ID for (brain-damaged) GUS PnP, and add comments describing what
hardware each ID describes.
1997-11-20 06:23:52 +00:00
mycroft
0afda495f5 Do the Pentium bug fix differently. Put the IDT in a read-only page and check
for a write fault on the illegal instruction descriptor.  Don't ask why this
works unless you have a strong stomach.
1997-11-19 11:11:22 +00:00
augustss
ee5628ee52 Add another PnP id. 1997-11-18 11:31:07 +00:00
thorpej
f56e6f631f Add an i/o address for iy0 (from GENERIC) 1997-11-17 03:42:52 +00:00
thorpej
9246032610 Put lc0 at i/o 0x320. 1997-11-17 03:39:42 +00:00
lukem
6c986561ee * add commented out DDB_HISTORY_SIZE=100 if DDB exists in config file
* fix up use of 'options<SPACE><TAB>'
1997-11-17 01:57:23 +00:00
christos
af27f4e9b5 PR/4506: Andreas Gustafsson: Finnish keyboard mapping for pccons. 1997-11-16 22:05:48 +00:00
mycroft
0963ca7386 Minor change. 1997-11-16 12:31:00 +00:00
mycroft
d7107be1c9 Fix a condition where we might keep interrupts blocked while servicing a soft
interrupt.
Fixes serial port silo overflow problems.
1997-11-16 12:30:00 +00:00
carrel
2030b7b104 Turn off reseting and disabling the device by default.
Document the option to turn them back on.
1997-11-15 20:18:50 +00:00
mycroft
93b31159bf When fixing up traps 1, 3 and 4, turn off the RF flag. 1997-11-15 04:47:30 +00:00
mycroft
6250567ba0 Make INTO actually work right. 1997-11-14 12:30:06 +00:00
mycroft
b1c7e79679 Map NMI in user-level code to SIGBUS. 1997-11-13 10:13:46 +00:00
mycroft
f946a9746d Oops; previous logic was wrong. 1997-11-13 07:21:23 +00:00
mycroft
da60005b96 Only do the Pentium trap fixup when we get a kernel mode page fault. 1997-11-13 05:31:04 +00:00
mycroft
4f8b60c6bb Implement the BSDI kluge for the Pentium `hang'; leave the first 7 IDT
descriptors in an unmapped page, and patch up the trap information inside
the page fault handler if the faulting VA is inside the IDT.
1997-11-13 03:25:27 +00:00
mycroft
6a310175c6 Some general cleanup:
* Call gdt_init() earlier on.
* Don't bother to check for TSS and LDT descriptors in verr_gdt().
* Nuke the sti special case for trace and breakpoint traps.
* Move some variable declarations into more appropriate locations.
1997-11-13 03:16:42 +00:00
thorpej
ce4c770f88 Make sure CPP, AR, AS, and RANLIB are defined. 1997-11-12 23:11:50 +00:00
thorpej
a421995756 Define LORDER, NM, and TSORT here, like we do the rest of the tools. 1997-11-12 22:25:31 +00:00
drochner
b80ad6c934 -point to console(4) manpage for serial console parameters
(suggested by Chuck Cranor)
-insert a reasonable IO base address for "iy at isa"
 (from Ignatios Souvatzis)
1997-11-11 20:31:38 +00:00
thorpej
6fcc8cd8b1 Add locators for "eg0" device, and enable it. 1997-11-11 05:53:06 +00:00
drochner
23e7d0a259 Adjust comment for new default fragment table size. 1997-11-07 17:01:45 +00:00
drochner
4ad496626c Double default fragment table size. For fragmented and / or small
blocksize filesystems the old default was too small.
1997-11-07 16:59:41 +00:00
thorpej
204a7b293b Sync ISA network device section with INSTALL. 1997-11-05 19:24:27 +00:00
thorpej
51460546c8 Add sm0 at isa? port 0x300 irq 10 1997-11-05 18:13:10 +00:00
mycroft
224cfc2d71 Fix spacing of `not connected' message. 1997-11-05 05:45:00 +00:00
thorpej
0b04d28454 Mark uses of long long with /* LONGLONG */ for lint. From
Chris Demetriou <cgd@pa.dec.com>.
1997-11-05 04:36:08 +00:00
thorpej
023d8288ee asm -> __asm__ 1997-11-05 03:53:20 +00:00
perry
ba2ee23103 Small installation kernel for older machines; fits on 1.2M floppy but
doesn't support PCI or PCMCIA.
1997-11-05 03:25:52 +00:00
thorpej
4730a8cbec Bug fixes and cleanup from Chris Demetriou <cgd@pa.dec.com>:
- fix _C_LABEL so that it actually works.
- make __RENAME use _C_LABEL.
- fix __RENAME so that it expects an unquoted argument.
- fix __indr_reference and __warn_references so that they
  supply their own final semicolon.
- define __warn_references to nothing if not GNU C (required
  by the way it's used).

The __warn_references semicolon change has to be made
so that __warn_references can be defined into nothing.
(A ; all by itself isn't a great idea.)  The __indr_reference
change was made for consistency.
1997-11-04 23:09:23 +00:00
thorpej
15339d7ea8 Make pmap_{,de}activate() take a pointer to a proc. 1997-11-04 01:37:01 +00:00
thorpej
4436625795 Delete "ed" driver, add "we". 1997-11-03 21:33:33 +00:00
drochner
8539f2f3b9 ../lib/exec_fromdos.c doesn't use the memory size returned by XMS check
anymore if other methods work better. Sync banner output with this.
1997-11-03 18:17:19 +00:00
drochner
90e33ee203 When using XMS, use the XMS size returned by the BIOS only if the other
methods to detect extended memory didn't work well.
(this XMS size is always too small, typically by 68k)
1997-11-03 18:06:22 +00:00
thorpej
540caf5a8f Add "ec" driver. 1997-11-02 01:02:23 +00:00
lukem
3e8e744696 getopt returns -1 not EOF 1997-11-01 06:49:14 +00:00
drochner
bdf1b13477 -Don't try to parse the bootfile path in DOS mode.
-Take "dev" command from "biosboot" for consistency.
1997-10-31 18:50:09 +00:00
mycroft
9870971b35 Format police. 1997-10-31 07:59:52 +00:00
thorpej
173f7c3b37 Defopt PCIC_ISA_ALLOC_IOBASE, PCIC_ISA_ALLOC_IOSIZE, and
PCIC_ISA_INTR_ALLOC_MASK.
1997-10-29 22:50:46 +00:00
wrstuden
de95bf8c30 Add pnp support for the OPTi Audio 16's joystick port. 1997-10-29 19:40:12 +00:00
thorpej
1d338698d7 Flush tty input queue when going in and out of X mode, PR #4321,
Chris Demetriou.
1997-10-29 01:39:40 +00:00
fvdl
d2016e2df0 Disable interrupts when frobbing the keyboard controller for A20, as
it may generate a reset on some (older) controllers. Introduce a delay
to make some kbd controllers happier.
1997-10-29 00:32:49 +00:00
drochner
ec78310453 Catch "timeout" return of serial port read BIOS call. 1997-10-27 19:53:20 +00:00
drochner
64550a14f3 Pass status byte to caller too. 1997-10-27 19:51:18 +00:00
mikel
135737c189 fix some typos and other misfeatures in comments; no functional change
note that bha driver supports BT44x cards as well
1997-10-23 05:49:42 +00:00
sommerfe
c83f212654 Fix PR4316: pcvt busted in 1.3.. 1997-10-22 18:24:30 +00:00
thorpej
665f7d1a6e Implement __RENAME() in <machine/cdefs.h> 1997-10-22 05:20:32 +00:00
bouyer
d29eab51f1 Correct spelling of 'ThunderLAN' 1997-10-21 06:01:16 +00:00
thorpej
5ea9d818ae Update for new location of i82365.c 1997-10-20 20:26:25 +00:00
thorpej
1d1fd17f73 Don't panic if we fail to remap i/o or mem space in the attach function.
Instead, print a diagnostic and return.  (Some drivers do this already.)

Also, normalize the diagnostic message, and fix some places where the
printfs were getting ugly.
1997-10-20 20:07:57 +00:00
perry
75473a6379 we don't need FDESC 1997-10-20 20:03:04 +00:00
explorer
32b7029647 Mark options RND_COM as broken on i386 port 1997-10-20 18:45:09 +00:00
explorer
9d0579d2fb Comment out pseudo-device rnd, mention options RND_COM, and mark experiemntal 1997-10-20 15:19:51 +00:00
ws
0bb56df5a7 Fix spelling of my name 1997-10-20 09:54:50 +00:00
fvdl
d41883c9ac Fix typo in VM_MAX_ADDRESS. 1997-10-20 09:02:21 +00:00
perry
83a4427110 Sync with GENERIC; comment out a few more unneeded things. 1997-10-20 03:42:43 +00:00
fvdl
74f97b28cc Change various constants that depend on the kernel VM base address. Lower
it to 0xf0000000 to give it more breathing space.
1997-10-20 00:45:03 +00:00
fvdl
30c7fa3e36 Move kernel entry address down to f0100000 1997-10-20 00:43:21 +00:00
jtk
0ad10a1970 change name in comment from apmregs to bioscallregs 1997-10-19 22:59:50 +00:00
mycroft
87b7a8ba91 Minor changes to make these more similar again. 1997-10-19 20:31:29 +00:00
perry
838ebc1be2 Yet Another Massive Reorganization. I took the last reorg even
further. Devices are grouped by types and within the types segregated
by bus. Lots of comments fixed up, lots of nits cleaned. Extensive
comments from Jason and Charles incorporated.

We also really need an automatic way to generate INSTALL from GENERIC,
but that's a project for another day...
1997-10-19 20:14:21 +00:00
thorpej
3135cf9ecc Use bus.h 1997-10-19 19:17:07 +00:00
thorpej
29500b20c0 Make sure the i/o and/or mem addresses aren't wildcarded (i.e. -1) before
using the address in a bus_space_map() call.
1997-10-19 18:56:39 +00:00
perry
b07dc2077e typo: that -> than 1997-10-19 00:00:18 +00:00
hubertf
59b0f424db Prevent error if machine-symlink isn't already there (rm -> rm -f) 1997-10-18 21:46:27 +00:00
mikel
4c46c2bcc3 cosmetic cleanup (newlines, comments) 1997-10-18 04:51:03 +00:00
thorpej
1adb3a7a9d Sync with GENERIC. 1997-10-18 02:01:36 +00:00
thorpej
2f26438522 Major cleanup of the GENERIC config file. The devices are laid out in
a more readable manner now, and sorted by bus type.
1997-10-18 01:42:22 +00:00
bouyer
10e68aaed1 Add tl and mii devices. 1997-10-17 19:25:36 +00:00
bouyer
d3cfd58b6c Add mii. 1997-10-17 18:45:53 +00:00
bouyer
9cba1f94e1 Add detection of cyrix/ibm 6x86 cpu: these CPU pass the 486 test, but
fail the cyrix486 one. Add a test which succeed for all cyrix CPUs (from
FreeBSD).
1997-10-17 18:05:44 +00:00
thorpej
c8c33b5e87 Make pcvt compile with the new dev_t definition. 1997-10-17 15:24:17 +00:00
thorpej
4c970b2547 Add "ne" and "com" isapnp attachments. Move the fe0 declaration to a
more logical location.
1997-10-17 07:27:02 +00:00
enami
80d6b2fb22 Use lowercase for hexdigit. 1997-10-17 07:08:55 +00:00
enami
113f376554 Use TAB to separate cd*' and at'. 1997-10-17 07:07:26 +00:00
thorpej
500a0eac87 Pull marc-pcmcia branch down from trunk. 1997-10-16 23:32:35 +00:00
mycroft
4b807f403c dev/isa/comreg.h -> dev/ic/comreg.h 1997-10-16 08:03:05 +00:00
mycroft
372a74ea3a We don't need sysctl.h here. 1997-10-16 04:57:15 +00:00
mycroft
4a316f1d10 Use vm.h. 1997-10-16 04:48:34 +00:00
mycroft
2e52ce5fd7 Pull in vmparam.h as necessary. 1997-10-16 04:23:36 +00:00
mycroft
37e189d6a8 Need vmmeter.h here now. 1997-10-16 03:22:54 +00:00
mycroft
fc0fb1cfdc Pull in vm.h, not a bunch of individual files. 1997-10-16 03:05:19 +00:00
mycroft
5542cb9709 Include sysctl.h *once*, after vm.h. 1997-10-16 02:58:31 +00:00
mycroft
3e3c21dc5d Update a comment dating from 4.3/VAX. 1997-10-16 02:31:32 +00:00
thorpej
e89814fa69 Adjust for new "com" driver home. 1997-10-16 01:10:52 +00:00
jtk
d6c9c08d70 put in place a proper bioscall.h (sorry about that!)
finish up incomplete job of moving structure used by bioscall() to
<machine/bioscall.h>, with associated changes in include file strategy,
genassym stuff, etc.
1997-10-15 01:20:33 +00:00
thorpej
005a9c192c Add ISA and PCI "ne" instances as appropriate. 1997-10-14 23:30:55 +00:00
christos
37f905c2b8 Someone [who will remain nameless] forgot this... 1997-10-14 22:00:05 +00:00
thorpej
799112abbe Pull down from marc-pcmcia branch:
Implement new ISA interface functions:
* isa_intr_alloc() - allocate an ISA IRQ
* isa_mem_alloc() - allocate ISA memory space
* isa_mem_free() - free ISA memory space
1997-10-14 20:34:38 +00:00
jtk
d405a9e1d6 split APM stuff into APM and BIOSCALL specific conditionals
move some functions to separate files
1997-10-14 03:57:09 +00:00
jtk
f4f693c3a5 move arch/i386/apm_init stuff to arch/i386/bioscall via repository copy/tag strip 1997-10-14 03:56:24 +00:00
jtk
35a23b7856 add bioscall attribute and bioscall.s/apmcall.s files 1997-10-14 03:55:51 +00:00
jtk
36d9fea6ef use NBIOSCALL and NAPM where appropriate (split from former monolithic "NAPM") 1997-10-14 03:55:06 +00:00
jtk
a3cd5fc7ba split out apmcall and bioscall into separate files, for ease of modular
construction into other drivers (eventually)
1997-10-14 03:54:18 +00:00
lukem
28558b28eb rcsid fascism 1997-10-13 14:22:22 +00:00
drochner
e14496efb8 Ignore BIOS partition table and disklabel for floppys and RAW_PART,
for consistency with the kernel.
1997-10-13 09:26:29 +00:00
explorer
80513cb5ae o Make usage of /dev/random dependant on
pseudo-device   rnd                     # /dev/random and in-kernel generator
  in config files.

o Add declaration to all architectures.

o Clean up copyright message in rnd.c, rnd.h, and rndpool.c to include
  that this code is derived in part from Ted Tyso's linux code.
1997-10-13 00:46:08 +00:00
christos
b848861bfd Add ENDIANNESS constant 1997-10-11 19:11:10 +00:00
mycroft
9803f46796 Minor rearrangement to match other files. 1997-10-11 09:12:18 +00:00
mycroft
5c8d588138 Nuke NOOBJ. 1997-10-11 08:44:42 +00:00
mycroft
acf0e569a5 Update all the tags goo, and use bsd.subdir.mk. 1997-10-11 08:42:02 +00:00
explorer
735c351f71 Add hooks to insert timing info into the random system 1997-10-10 01:49:12 +00:00
explorer
bde51b6f93 add /dev/random as major device 46 1997-10-09 23:59:15 +00:00
bouyer
6ab3092b11 Add byte-swapping functions (bswap16, bswap32, bswap64) to libkern.
Only assembly version for i386 bswap16 and bswap32 for now (bswap64 uses
bswap32). Contribution of assembly versions of these are welcome.
Add byte-swapping of ext2fs metadata for big-endian systems.
Tested on i386 and sparc.
1997-10-09 15:42:19 +00:00
jtc
1bcecdd613 Fix tipo inherited from old version of TNF copyright template. 1997-10-09 08:48:33 +00:00
enami
6705728ce7 Make sure that vs.color is always initialized. Fix PR#2510.
- separate initialization code in sput() into new function pcinit().
- call pcinit() in both sput() and pcattach() if (crtat == 0).
1997-10-09 02:05:01 +00:00
mycroft
4d36fbdfa1 Clump USER_LDT with other CPU-related options. 1997-10-08 10:09:36 +00:00
mycroft
a9f50348ae Update comments regarding BIOSEXTMEM (now REALEXTMEM), and add REALBASEMEM. 1997-10-08 09:32:36 +00:00
mycroft
63c9e725bb Deprecate BIOSBASEMEM and BIOSEXTMEM, with an #error telling people to try the
latest version of the boot block first.  Add REALBASEMEM and REALEXTMEM, in case
they really are needed.
1997-10-08 09:23:04 +00:00
augustss
4a72d59d77 Add GUS PnP card to GENERIC. 1997-10-07 10:39:56 +00:00
drochner
4741e294cf Supress error message if ENXIO is returned by "open" of disk partition
while "findroot()". This happens if a disk without BSD partition is
present, or if the partition does not exist in the disklabel - normal
operation, not worth reporting. (Split out a part to keep indentation
level limited.)
Allow to set "nfs_boot_rfc951" by a conditional to make bootp easier
to use.
1997-10-07 09:54:16 +00:00
thorpej
0c368b5f67 Initialize the kernel message buffer earlier (before main() is called). 1997-10-06 20:38:46 +00:00
thorpej
66a1783103 Fix some license confusion. 1997-10-04 22:32:26 +00:00
thorpej
608283bedd Copyright assigned to The NetBSD Foundation. 1997-10-04 17:22:49 +00:00
lukem
7d508b124f define SIZE?=size, and use ${SIZE} instead of size. makes cross
compilation easier
1997-10-03 07:17:00 +00:00
drochner
f596be4ec4 Fix the problem described in PR port-i386/4177: scroll lock could cause
tsleep() to be called from an interrupt handler.
The semantics of the scroll-lock key is changed now: it issues a ^S or
^Q, depending on the current state. (It should probably issue
tp->t_cc[VSTOP] or tp->t_cc[VSTART] instead, but this would require more
serious structural changes because there is not always a tty context
present.)
The "scroll lock" LED is now controlled by pcstart()/pcstop(), so it
will show the real state even if the start/stop characters are remapped
or the normal ^S/^Q are used.
1997-10-01 20:48:59 +00:00
drochner
e125082627 adapt to changed device names 1997-10-01 18:13:19 +00:00
fvdl
d786742d91 Provide workaround (by Charles Hannum) for error in register allocation that
could occur in bus_space_write_multi*
1997-10-01 08:25:15 +00:00
mycroft
640405d50f Only use a subregion if the region we got was of length 8. 1997-09-30 22:10:59 +00:00
christos
90ac749fae PR/4162: Chris Jones: make cleandir does not work properly; it does not
remove the object files and the .depend file in the kernel build directory.
1997-09-30 22:10:32 +00:00
christos
52f4c73570 PR/4189: Matthias Scheler: pccons doesn't compile if national keyboard map
is used
1997-09-30 16:23:21 +00:00
perry
ce92768d58 add ext2fs support to boot floppy. 1997-09-29 15:42:14 +00:00
drochner
6969cb676f Pass new boot information per default. 1997-09-28 13:31:45 +00:00
drochner
22869434f2 Bring the new root disk algorithm into shape (minor cleanup, clarify
error message) and enable it.
1997-09-28 13:17:41 +00:00
drochner
4de13c78d3 Use the "proginstall" rule from <bsd.prog.mk> to get the UPDATE
behaviour right.
1997-09-28 11:47:29 +00:00
drochner
e8e12f56dc Don't use "termios" constants if no "com" devices are configured.
Closes PR port-i386/4166 (Chris Jones).
1997-09-27 10:55:48 +00:00
thorpej
0bd1685aa0 In device_register(), don't check PCI is PCI support isn't configured
into the kernel.

Also, some formatting changes to make new root finding code more KNF'ish.
1997-09-23 22:34:00 +00:00
drochner
1f1e574146 -implement a "device_register()" function to identify network interfaces
by bus type / address (for diskless boot)
-add some (experimental, commented out) code which could be used for
 identification of boot disks - should help for BIOS remappings
1997-09-20 14:15:54 +00:00
drochner
610abce93b Copy data passed by the boot loader into an array "bootinfo".
The former "cyloffset" argument is used as an (indirect) pointer to the
information structures. "cyloffset" has always been set to zero in the
past, so this should be save to do.
1997-09-20 14:01:26 +00:00
drochner
968f26b9d3 -define a buffer for information passed by the bootloader
-add a function ("lookup_bootinfo") to extract data
-use passed console information, if present, for console attachment
-arrange definitions for console and KGDB device a bit nicer
1997-09-20 12:51:13 +00:00
drochner
b8a47d06da Define "machdep.booted_kernel" for sysctl. 1997-09-20 12:40:25 +00:00
drochner
c03122fcb1 In some future (ie, without COMPAT_OLDBOOT), we don't want to bother
with the disk type (IDE or SCSI) here - the BIOS doesn't do it either.
Set "#ifdef"s accordingly.
1997-09-20 12:36:05 +00:00
drochner
dc0b04e0ad Note use of common menu functions and new framework for argument passing
to the kernel.
1997-09-20 12:28:21 +00:00
drochner
041680f614 don't forget to save the partition number for the kernel 1997-09-20 12:17:41 +00:00
drochner
9b4679d869 -Don't pass hardware address, it is not of much use for the kernel.
-define "addr" differently for ISA and PCI devices - for PCI, it is
 (bus,device,function) now, in the format used by the PCI BIOS
1997-09-20 12:13:01 +00:00
drochner
1d47009a08 Use <machine/bootinfo.h> for definitions shared with the kernel. 1997-09-20 12:10:06 +00:00
drochner
17b42ff68d Data structures passed from the boot loader to the kernel. 1997-09-20 12:08:21 +00:00
leo
d4713d24c2 Implement the kernel part of pr-1891. This allows for a more flexible sized
msgbuf. Note that old 'dmesg' and 'syslogd' binaries will continue running,
though old 'dmesg' binaries will output a few bytes of junk at the start of
the buffer, and will miss a few bytes at the end of the buffer.
1997-09-19 13:52:37 +00:00
drochner
8b0c39d09e The additional linefeed appeared again... kill it. 1997-09-17 19:39:37 +00:00
drochner
a577f67769 Use common menu / parse functions.
Adapt to new console / exec_netbsd arguments.
1997-09-17 18:52:41 +00:00
drochner
a1fc367b4b Cleanup for new libsa/bootp.c (unused global variables).
Do the vararg stuff right.
Remove the useless "no_bootp" variable.
1997-09-17 18:50:24 +00:00
drochner
5a1b04beab Put bootfile name into "bootfile" before network initialization, for
use by BOOTP.
Put name of bootfile into "bootinfo" structure.
1997-09-17 18:47:13 +00:00
drochner
d9641ea06f Use common menu / parsing functions.
Adapt to new console / exec_netbsd arguments.
1997-09-17 18:44:15 +00:00
drochner
23d58b46d3 Put name of booted file into a "bootinfo" structure.
(not for DOS files for now, we don't know the absolute path)
1997-09-17 18:40:33 +00:00
drochner
38b36ed152 -Use shared menu / parsing functions.
-Adapt to changed console and exec_netbsd arguments.
-Turn private "cd"-like behaviour into a regular command.
1997-09-17 18:37:58 +00:00
drochner
1d521976af Put name of booted file into a "bootinfo" structure. 1997-09-17 18:32:50 +00:00
drochner
0c825594ef Function to collect geometry and partitioning information about the
BIOS-known disks in a "bootinfo" structure (still experimental).
1997-09-17 18:30:51 +00:00
drochner
c65435feb3 "document" serial console support 1997-09-17 18:28:50 +00:00
drochner
a8c2622575 Collect information in a "bootinfo" structure. 1997-09-17 18:21:40 +00:00
drochner
c2095ccd48 Remove old SERIAL support, it will be done at a higher level now. 1997-09-17 18:10:51 +00:00
drochner
2fba0a4db7 Convert DOS error numbers into UNIX errno values. 1997-09-17 18:09:04 +00:00
drochner
4162c9025a Do the vararg stuff cleanly.
Collect disk information in a "bootinfo" structure.
1997-09-17 18:08:13 +00:00
drochner
0851ea1331 Add now common menu / parsing functions.
Adapt to new console I/O functionality.
Update exec() arguments.
1997-09-17 18:04:21 +00:00
drochner
83ce8d9ef8 Use the "bootinfo" defined structures to collect information about boot
device/file and console setting, remove the old, limited, "xbootinfo".
Fix a printf() format warning in debug code.
1997-09-17 18:02:11 +00:00
drochner
f93967e407 add new files 1997-09-17 17:51:12 +00:00
drochner
dae95d6c0b -extend serial console code to all 4 BIOS known interfaces
-optionally, use Martin's direct hardware access to serial lines
-optionally, new console autoselection method: select serial console
 if a character is seen within 1 second
-move awaitkey() here, it can be shared by different bootloaders and
 it is used by console autoselection
-collect information about console selection in a "bootinfo" defined
 structure, for passing to the kernel
1997-09-17 17:48:00 +00:00
drochner
f7b795d3c0 Definitions and helper functions to collect information in the boot
loader (still experimental).
1997-09-17 17:39:29 +00:00
drochner
fb3350eb72 Console I/O functions for serial lines, accessing the hardware directly.
Allows higher baudrates than 9.6 and software flow control.
From Martin Husemann.
1997-09-17 17:31:41 +00:00
drochner
27d7edd928 Factor out functions for table driven boot menus and command line parsing
usable for different boot programs.
1997-09-17 17:13:02 +00:00
drochner
25aa241d8a Use the private nfs.c instead of "nfswrapper".
Disable UDP checksums in the sample configuration, otherwise this doesn't
fit into the ROM.
1997-09-17 17:07:10 +00:00
drochner
7f4ef01688 Use the private nfs.c instead of "nfswrapper". 1997-09-17 17:04:28 +00:00
drochner
ac061ce8b1 Use a private NFS layer. This allows for more optimization than the
separated "nfswrapper.c"/"nfs.c".
This nfs.c differs from the stand/lib/libsa one in that it does not
have a separate mount() function - the mount is done in open().
1997-09-17 17:03:00 +00:00
drochner
3c46c18a00 Use the original bp_siaddr field as TFTP server. Allows to have
different TFTP and NFS servers.
Don't byteswap port number from UDP header back to network order - net.c
doesn't swap it anymore.
1997-09-17 16:57:07 +00:00
is
718fb97e11 Support for the upcoming NetBSD/Amiga Hypercom driver family:
* support chip clocks != COM_FREQ, by introducing sc_frequency (for the
  mainline code) and adding a frequency parameter right after the rate
  parameter to comcnattach() and com_kgdb_attach().
- Make com_isa and com_multi initialize sc_frequency to COM_FREQ.
- Make i386/machdep.c and alpha/dec_xxx.c call com*attach() with the freq.
  parameter.
* supio_attach_args get two more fields: a sc_ipl and a sc_arg, both ints.
- com_supio uses the first for interupt establishment (all childs will, as
  soon as they exist) and the 2nd for sc_frequency.
- drsupio passes sc_ipl alway as 5, and for the "com"s, sc_arg as 16*115200
- hyper will pass sc_ipl as 6, and sc_arg as 16 * 460800
1997-09-16 20:34:23 +00:00
mycroft
25f153bb22 Add fe0. 1997-09-12 05:22:55 +00:00
mycroft
73b4fdacad Initialize all registers in setregs(). 1997-09-12 05:01:09 +00:00
mycroft
d0917c65e9 Add an ibcs2_setregs().
XXX Current implementation is a horrible kluge.
1997-09-11 23:07:25 +00:00
mycroft
99a6404735 Add an ibcs2_setregs(). 1997-09-11 23:05:30 +00:00
mycroft
16a8787248 Fix execve(2) and *setregs() interfaces so emulations can set registers in a
more correct way.  (See tech-kern.)
1997-09-11 23:01:44 +00:00
mycroft
d766a8aa21 Remove some vestiges of BDB. 1997-09-09 21:42:38 +00:00
mycroft
6da60facfb GC a bunch of NEWCONFIG stuff. 1997-09-07 13:05:39 +00:00
mycroft
892d336277 Increase FDC_MAXIOSIZE to MAXBSIZE, now that we can handle it. 1997-09-07 13:03:10 +00:00
drochner
fba474f53a add prototype definition for DHCP support 1997-09-06 14:32:31 +00:00
chuck
0b471e545e add bits for %cr4 and cpu_feature [from freebsd and www.sandpile.org] 1997-09-05 22:28:12 +00:00
chuck
302dad0aaa add invlpg, and rcr4/lcr4 1997-09-05 22:25:20 +00:00
thorpej
dc50e810ea Implement bus_dmamem_mmap(). 1997-09-05 01:44:42 +00:00
mycroft
8c578dc960 Pass down bus_dma_tag_t's as appropriate (per Jason's bus_dma code). 1997-08-30 06:53:57 +00:00
mycroft
d4b3029855 Set the I/O and memory enable flags for the main PCI bus. 1997-08-30 06:52:55 +00:00
mikel
4058521515 add KMEMSTATS and sync GENERIC, INSTALL, and DISKLESS 1997-08-28 08:00:12 +00:00
bouyer
6f3bab1f59 Merge scsipi branch in the mainline. This add support for ATAPI devices
(currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2
busses to which devices can attach (scsibus and atapibus). This needed to
change some include files and structure names in the low level scsi drivers.
1997-08-27 11:22:52 +00:00
mikel
a6a1f307de sync with GENERIC 1.96, no functional change 1997-08-27 04:56:38 +00:00
augustss
a50d4ba893 XXX Add a drq2 locator for the ISA bus. Many sound cards need
two DMA channels to do e.g. full-duplex.  This allows
a way of specifying the second channel in a sane way.
THIS IS TEMPORARY.  The drq2 locator will go away when
the locator system has been changed to allow multiple
values per locator.
1997-08-26 19:26:38 +00:00
fvdl
a153e98871 Recognize Cyrix M2 1997-08-26 18:56:40 +00:00
fvdl
d792a4aa54 Activate SCSIVERBOSE by default. 1997-08-26 18:39:02 +00:00
thorpej
75a4512f7f Notify drivers that we "prefer" I/O mapped space, per discussion with
Chris Demetriou and Matt Thomas, some two or three months ago.  (This hint
is used by the latest "de" driver.)
1997-08-26 03:14:06 +00:00
thorpej
9ffe59d049 In i386_mem_add_mapping(), don't bother calling pmap_changebit() to mark a
device memory mapping cacheable/non-cacheable:
- PG_N doesn't exist on the 386.
- pmap_changebit() only deals with managed pages.
Basically, calling it is unnecessary, and never did anything.  Pointed
out by Chuck Cranor, and further discussed with Frank van der Linden.

Also, add a comment about why we don't mark pages non-cacheable in
_bus_dmamem_map().
1997-08-25 23:02:25 +00:00
thorpej
38f15737fd Protect access to kmem_map with splimp()/splx(). From Chuck Cranor. 1997-08-25 21:17:48 +00:00
drochner
9518da7563 Remove over-sensitive sanity check for console port == KGDB port. 1997-08-24 09:38:19 +00:00
drochner
350184a9b7 Remove unneeded dev/cninit.c. 1997-08-23 14:26:46 +00:00
drochner
01930ff909 Update prototype options for serial console / KGDB for new reality.
"option\t" -> "option \t", as wished by Bernd Ernesti.
1997-08-23 14:25:55 +00:00
drochner
dfbc80bd71 Delete unused constab[]. 1997-08-23 14:22:59 +00:00