Commit Graph

3859 Commits

Author SHA1 Message Date
thorpej
ed0aee1190 When mapping bus space, we can use pmap_kenter_pa(), since the pages
are never managed.
1999-05-25 23:30:27 +00:00
thorpej
774ceea703 msgbuf doesn't need VM_PROT_EXEC, biostramp does. 1999-05-25 23:19:00 +00:00
thorpej
5832084eaf bus_dmamem_map() maps DMA safe memory, which is usually one or more
managed pages, into KVA space.  Since the pages are managed, we should
use pmap_enter(), not pmap_kenter_pa().

Also, when entering the mappings, enter with an access_type of
VM_PROT_READ | VM_PROT_WRITE.  We do this for a couple of reasons:

	(1) On systems that have H/W mod/ref attributes, the hardware
	    may not be able to track mod/ref done by a bus master.

	(2) On systems that have to do mod/ref emulation, this prevents
	    a mod/ref page fault from potentially happening while in an
	    interrupt context, which can be problematic.

This latter change is fairly important if we ever want to be able to
transfer DMA-safe memory pages to anonymous memory objects; we will need
to know that the pages are modified, or else data could be lost!

Note that while the pages are unowned (i.e. "just DMA-safe memory pages"),
they won't consume any swap resources, as the mappings are wired, and
the pages aren't on the active or inactive queues.
1999-05-25 23:14:03 +00:00
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