Commit Graph

3906 Commits

Author SHA1 Message Date
thorpej
f197609d93 Add some DIAGNOSTIC checks for inconsistent use of pmap_enter/pmap_kremove. 1999-05-25 20:33:33 +00:00
thorpej
f311a1c308 Make a slight modification of pmap_growkernel() -- it now returns the
end of the mappable kernel virtual address space.  Previously, it would
get called more often than necessary, because the caller only new what
was requested.

Also, export uvm_maxkaddr so that uvm_pageboot_alloc() can grow the
kernel pmap if necessary, as well.  Note that pmap_growkernel() must
now be able to handle being called before pmap_init().
1999-05-20 23:03:23 +00:00
lukem
e4a87aa1a9 * convert to using MI allocsys(). most ports were using an MD allocsys(),
although a couple still used the old pre-4.4-lite (?) mechanism.
* use format_bytes() to format the various printf()s that print out memory sizes
1999-05-20 08:21:42 +00:00
bouyer
cbd39e5f67 Document the 'wdc at isa' flags. 1999-05-19 14:41:54 +00:00
drochner
19e64942a2 don't printf(NULL), not even in the DEBUG case
(It doesn't hurt the bootloader, but the junk output hangs my serial
console.)
1999-05-15 15:42:23 +00:00
thorpej
c10a926030 Allow the caller to specify a stack for the child process. If NULL,
the child inherits the stack pointer from the parent (traditional
behavior).  Like the signal stack, the stack area is secified as
a low address and a size; machine-dependent code accounts for stack
direction.

This is required for clone(2).
1999-05-13 21:58:32 +00:00
thorpej
c256b94b6e Oops, forgot to commit this file. 1999-05-12 21:21:48 +00:00
thorpej
5f3034757f Move the user-set LDT out of the PCB and into the pmap. Applications
which set the LDT and share VM space (e.g. new versions of WINE) expect
the LDT to be logically coupled to the address space.  Use the new pmap_fork()
interface to copy non-shared user-set LDTs when the address space is forked.
1999-05-12 19:28:28 +00:00
drochner
998ac16bb7 add some casts for gcc -Wall, from David Rankin
<drankin@bohemians.lexington.ky.us> per PR port-i386/7554
1999-05-11 19:57:05 +00:00
drochner
6959d736df make sure the ./machine link is created early enough for specific targets,
fixes PR port-i386/7553 by David Rankin <drankin@bohemians.lexington.ky.us>
1999-05-11 19:43:09 +00:00
drochner
fe310dd299 include <lib/libkern/libkern.h> for intoa()/inet_ntoa() 1999-05-07 16:19:27 +00:00
christos
3cc711cbe0 Well we are functional enough to install from an NTFS volume, so why knot? 1999-05-06 17:12:26 +00:00
christos
d8463798c9 Add NTFS 1999-05-06 16:29:26 +00:00
christos
0c7931917a recognize ntfs mbr fsid 1999-05-06 15:45:51 +00:00
drochner
4479f71283 sync diagnostic printouts in opms_pckbc_probe() with dev/pckbc/psm.c:
pmsprobe() -- most notably: put a part inside #ifdef DEBUG
1999-05-06 09:10:51 +00:00
chs
9528f61050 in vmapbuf(), use pmap_enter() instead of poking PTEs directly. 1999-05-05 05:25:32 +00:00
chs
39a7993efb update resident_count and wired_count properly in pmap_kenter_*()
and pmap_kremove().
1999-05-05 05:21:13 +00:00
fvdl
4fbaa0b272 Restrict "out of CHS range" check to harddisks. 1999-05-04 17:14:55 +00:00
christos
c596c324e3 Define __builtin_*() for lint 1999-05-03 16:30:31 +00:00
fvdl
ec559f688b Be more careful with saving registers around the "out of CHS range" check. 1999-05-02 12:44:34 +00:00
drochner
e26f758e69 ed* -> we*, PR port-i386/7503 by Andrew Gillham <gillhaa@ghost.whirlpool.com> 1999-05-01 17:19:52 +00:00
christos
57e4b98787 - Use the proper multiply instructions so that we don't get truncated. 1999-04-30 15:31:17 +00:00
fvdl
48003b2c88 Only use int13 extensions if the sectors can not be read through the
older CHS interface. This works around stupid BIOSs who report that
int13 extensions are present and functional, but fail when you actually
use them. Like Adaptec SCSI BIOSs.
1999-04-28 23:24:42 +00:00
christos
4f8814a98c Fix tyop 1999-04-28 10:58:10 +00:00
christos
c5ec77e01b use new loadfile 1999-04-28 09:14:22 +00:00
christos
5317a4673a Use new loadfile 1999-04-28 09:14:07 +00:00
christos
a030d021a7 Use new loadfile.c 1999-04-28 09:13:51 +00:00
christos
0766a607d4 MD defines for the MI loadfile 1999-04-28 09:10:07 +00:00
thorpej
b8073b401b Garbage-collect the VM_MBUF_SIZE constant. Instead, use the size
(nmbclusters * mclbytes), so that the right amount of KVA space is
allocated if those variables are patched.
1999-04-26 22:46:44 +00:00
abs
0d2cfcdb5a Update vanity config 1999-04-26 18:30:45 +00:00
simonb
5d8b1ef3e4 g/c REAL_CLISTS. 1999-04-25 02:56:26 +00:00
drochner
ca053f4364 remove an "unmodified" so that the copyright notice will hopefully match
pk's "BSD-style (clauses: 2; no acknowledgements)" pattern
1999-04-22 10:27:16 +00:00
fvdl
3fb6f009a4 Handle instruction prefixes (skip them, in our case). 1999-04-22 00:23:33 +00:00
mycroft
0e603b27d7 +LFS +MFS 1999-04-19 16:57:06 +00:00
drochner
2519327c42 oops - forgot half of it 1999-04-17 16:52:06 +00:00
drochner
9684e9a613 disable the "aria" sound board per default until the problems with its
"probe" functions are solved (gives false positives)
1999-04-17 16:50:26 +00:00
drochner
982c55e22c another nit in error handling: don't try to print out a NULL filename
(which means "use default" and is dealt with properly by open())
1999-04-17 11:18:36 +00:00
explorer
6f9b6a2f1a remove BUFPAGES= line for now (commented out) 1999-04-16 01:11:22 +00:00
explorer
927ebf9949 sync to the currently installed kernel 1999-04-16 01:09:25 +00:00
christos
30ffed2123 remove bogus prototype for getopt 1999-04-14 15:22:46 +00:00
christos
c70b4ad2a1 Add prototype for getsecs 1999-04-14 15:22:07 +00:00
drochner
1ecbaaabf8 this is now sys/lib/libsa/ufs_ls.c 1999-04-14 13:31:49 +00:00
hpeyerl
6cde76c6fe fix some copyright foo. 1999-04-14 12:56:33 +00:00
drochner
e4841b3edf add prototypes, use ufs_ls() from mi libsa,
compile with -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
1999-04-14 11:53:43 +00:00
drochner
312eae2bf4 add prototypes, use ufs_ls() from mi libsa, revert to "void main()",
compile with -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main
1999-04-14 11:45:39 +00:00
drochner
dd0ed4267b add prototype 1999-04-14 11:19:23 +00:00
drochner
2d1e6a1f5a add prototypes, slight formatting changes 1999-04-14 11:17:04 +00:00
drochner
ffd8d7c6d0 add prototypes
being here, format ala KNF
1999-04-14 10:57:59 +00:00
pk
b13e5d1469 Quote "AS IS" as in the majority of Carnegy Mellon notices. 1999-04-12 20:38:17 +00:00
chs
f455dd6596 add a `flags' argument to uvm_pagealloc_strat().
define a flag UVM_PGA_USERESERVE to allow non-kernel object
allocations to use pages from the reserve.
use the new flag for allocations in pmap modules.
1999-04-11 04:04:04 +00:00
drochner
7d5e1f9211 fix error handling: almost all errors were ignored 1999-04-09 20:12:57 +00:00
bad
201401bd9a Enable the TROPIC based shared RAM Token-Ring drivers. 1999-04-09 18:17:35 +00:00
drochner
552f55e726 Call bi_getbiosgeom() after loadfile() returned successfully. This avoids
a memory leak if loadfile() gets an error.
1999-04-08 18:21:15 +00:00
drochner
31ca52f98b add "poll" entry to i4btel device 1999-04-08 12:10:53 +00:00
drochner
0ead10436a define VERSIONFILE, from John Darrow <John.P.Darrow@wheaton.edu>
per PR port-i386/7336
1999-04-08 10:23:23 +00:00
pk
c40eb1cd97 Fix a pasto in copyright text which has been procreating like rabbits.. 1999-04-06 20:09:18 +00:00
drochner
5d86b86370 #ifdef out the last change for the branch 1999-04-01 19:36:09 +00:00
drochner
3497f157fd On serious boot errors, dont lock the machine. Instead, wait 3 seconds
and call the ROM BASIC vector. This might behave differently on different
machines, but normally it allows to reboot without power-cycling.
1999-04-01 17:07:54 +00:00
drochner
99a84ef740 sync to changed biosdisk interface again 1999-04-01 16:09:49 +00:00
thorpej
2f832df90c Do proc0's TSS and LDT initialization at the end of configure() (i.e.
once the FPU has been attached).
1999-04-01 00:37:50 +00:00
thorpej
967b8c433c Don't call configure() from cpu_startup(). 1999-04-01 00:17:45 +00:00
mycroft
94590084d7 Enable rnd. 1999-03-31 14:16:20 +00:00
fvdl
fb1b0e7a0b Shifting ecx without explicit prefix in real mode won't work. 1999-03-30 22:35:21 +00:00
drochner
17de7b2576 adapt to set_geometry change: we don't have to correct the geometry
anymore
1999-03-30 17:58:05 +00:00
drochner
62031ff978 fix some disk handling problems introduced in the last commits:
-read retries were botched, use the right sector count
-read-ahead buffer was effectively unused
-concentrate the handling of the weird BIOS geometry report at one place
-fallback for old floppies left cylinder count uninitialized
1999-03-30 17:55:48 +00:00
drochner
4feae58ec1 sync to changed geometry handling in the standalone code 1999-03-30 11:51:35 +00:00
bouyer
20cfe22bc8 Needs to include opt_bufcache.h. 1999-03-30 08:21:54 +00:00
perry
55adc1e16e remove BROKEN_LPT_DELAY option 1999-03-29 21:51:25 +00:00
drochner
2396efd0b7 add a commented out WS_KERNEL_BG option, closes PR port-i386/7271
by Charlie Root <root@theprovider.com>
1999-03-29 19:57:34 +00:00
mycroft
7c33a450ba Recalculate delaytab[]. We need to round up in case we were on the edge of a
tick and the hardware mysteriously responds fast enough that the delay ends
up being 1 tick short.  An unlikely event, but just in case anything actually
relies on this...
1999-03-29 17:54:34 +00:00
mycroft
c40877ff9d delay(): For small values of n, use a fixed lookup table. Also use
rtclock_tval as the limit, since this is what we actually programmed the chip
for.
1999-03-29 17:33:29 +00:00
fvdl
1e3ed49ca1 Remove debugging printf. 1999-03-28 19:55:51 +00:00
fvdl
b815df141c Only use the total number of sectors information field from the EDD if
the bit is set that declares the geometry valid. The spec itself says
that this field isn't covered by the "geometry valid" bit, but at
least one BIOS implements it that way.
1999-03-28 19:41:27 +00:00
abs
67f5f8fa08 Another vanity config 1999-03-28 01:09:48 +00:00
nathanw
95b075be1e Remove commented-out uaudio declaration;
we don't actually have support for it.
1999-03-27 23:27:57 +00:00
kleink
65dd935211 Typo. 1999-03-27 11:42:12 +00:00
explorer
f644cf78d0 remove EXPERIMENTAL comment, enable /dev/random in GENERIC kernels 1999-03-27 07:04:35 +00:00
mycroft
93768384ee Fix a bug in pmap_collect_pv(), even though nobody currently uses it:
When we put a page on the collection list, we must subtract NPVPPG from the
total free count: one for each pv_entry that's free in that page, and one for
each free pv_entry in other pages that we're going to eat by moving the ones
in the page being collected.
1999-03-27 05:57:02 +00:00
mycroft
12d512bbb7 Oops; vm_offset_t -> vaddr_t. 1999-03-27 00:30:06 +00:00
mycroft
9c6b797796 Changes for modified pmap_enter() API:
* Map the message buffer with access_type = VM_PROT_READ|VM_PROT_WRITE `just
  because'.
* Map the file system buffers with access_type = VM_PROT_READ|VM_PROT_WRITE to
  avoid possible problems with pagemove().
* Do not use VM_PROT_EXEC with either of the above.
* Map pages for /dev/mem with access_type = prot.  Also, DO NOT use
  pmap_kenter() for this, as we DO NOT want to lose modification information.
* Map pages in dumpsys() with VM_PROT_READ.
* Map pages in m68k mappedcopyin()/mappedcopyout() and writeback() with
  access_type = prot.
* For now, bus_dma*(), pmap_map(), vmapbuf(), and similar functions still use
  access_type = 0.  This should probably be revisited.
1999-03-26 23:41:25 +00:00
perry
b476609d5f fix typo 1999-03-25 17:06:38 +00:00
explorer
bdf33ae1f0 add entry for lmc* at pci? 1999-03-25 03:35:26 +00:00
perry
ea0f7990a8 add a (commented out) BROKEN_LPT_DELAY 1999-03-25 02:22:21 +00:00
tron
1eb060a0ba Remove remaining "ifdef UVM" checks. 1999-03-24 11:23:45 +00:00
tron
e1d80e2d51 Don't include "opt_uvm.h" any more. 1999-03-24 11:21:47 +00:00
mrg
ca5f9685bb clean up kernel/config files files for machVM lossage. 1999-03-24 06:06:09 +00:00
mrg
d2397ac5f7 completely remove Mach VM support. all that is left is the all the
header files as UVM still uses (most of) these.
1999-03-24 05:50:49 +00:00
drochner
76fa1751fe Add a macro to check for sufficient pointer alignment in bus.h context,
"BUS_SPACE_ALIGNED_POINTER()".
Equal to the param.h "ALIGNED_POINTER()" normally, but obeys additional
requirements of the bus_space_xxx_n() macros. (BUS_SPACE_DEBUG)
1999-03-23 21:29:03 +00:00
bad
b5348881aa Add tcic PCMCIA controller. 1999-03-23 20:08:55 +00:00
bad
23d89d53f3 config(8) glue for the TCIC PCMCIA backend. 1999-03-23 20:07:39 +00:00
christos
f36829e285 s/DEBUG/LDT_DEBUG/ This got too verbose when running Wine. 1999-03-23 15:48:19 +00:00
bad
fee4297b62 Add IBM and 3COM ISA Token-Ring drivers. 1999-03-22 23:43:30 +00:00
mycroft
6ada3afd8b Reject variant numbers which are too large (so that a new version of isapnpdevs
with an old driver will not lose mysteriously).
1999-03-22 10:00:09 +00:00
mycroft
2cccf3bd4a Update callers of isapnp_devmatch(). 1999-03-22 09:44:12 +00:00
mycroft
a873302b17 Add a SonicVibes. 1999-03-22 07:51:28 +00:00
mycroft
2fba0f875b More sound cards for testing... 1999-03-22 07:50:29 +00:00
thorpej
a77ccfe460 Garbage-collect. 1999-03-20 01:40:25 +00:00
cgd
d324c9f2f6 pull isa_machdep.h in from machine/ instead of from $(MACHINE)/isa/ 1999-03-19 05:13:16 +00:00
cgd
37d2c204a7 Moved to arch/i386/include/isa_machdep.h,v 1999-03-19 05:02:11 +00:00
cgd
7b5fe5e402 Moved from arch/i386/isa/isa_machdep.h,v 1999-03-19 05:02:10 +00:00