christos
59fdcbc7ad
Change the prototype of fillw from (int, caddr_t, size_t) to
...
(short, void *, size_t).
1996-05-05 19:29:26 +00:00
christos
573f5e0cd6
Add the joystick
1996-05-05 19:28:34 +00:00
christos
b927d7be11
Fwd declarations for MD drivers.
1996-05-03 19:34:11 +00:00
christos
8fd0f1f8b3
Add missing prototypes.
1996-05-03 19:26:28 +00:00
christos
391a4ddc7c
use u_int32_t instead of unsigned long
...
and u_int16_t instead of short in the {h,n}to{n,h}{l,s} inline routines
and macros.
1996-05-03 19:25:23 +00:00
christos
0b3580eb25
Comment out unused routines; add prototype for kdb_trap
1996-05-03 19:23:59 +00:00
christos
dc3ce37d53
Add prototypes from other files.
1996-05-03 19:22:49 +00:00
christos
1044435088
Avoid unused variable warnings, by using the first argument to the bus
...
functions.
1996-05-03 19:22:18 +00:00
mycroft
7511a5540e
Remove BIOSSEG.
...
Don't mess with the flags when entering a software interrupt.
Use IF, not VIF.
NOTE: These changes break dosemu, but are required for proper emulation.
1996-04-30 10:35:25 +00:00
mycroft
47bf863ac1
Make some of the flag handling clearer. No functional change.
1996-04-18 10:04:32 +00:00
mycroft
035e9c211e
Use the flag mask in a somewhat more sane fashion.
1996-04-12 05:57:43 +00:00
mycroft
c8ab43244b
Actually keep track of the naughty PSL bits.
...
Use VIF, rather than IF, by default, to be compatible with dosemu. XXXX
1996-04-11 10:07:17 +00:00
mycroft
48643c6605
Export [gs]et_vflags(), and always use them when saving/restoring registers
...
in VM86 mode.
Allow changing of *all* PSL bits in VM86 mode; some applications don't work
right otherwise, and all the nasty bits are virtualized anyway.
Make sure PSL_VIF, PSL_VIP, and PSL_VM don't show up in the user's view of
the PSL.
1996-04-11 07:47:33 +00:00
thorpej
84c7027789
Add bus_io_{read,write}_multi_{1,2,4,8}() to the <machine/bus.h>
...
interface, and implement them (except for the 8-byte versions) on
the i386.
1996-04-05 23:59:37 +00:00
mycroft
6424af4c10
Prototype delay().
1996-03-29 00:23:28 +00:00
perry
ee2fa11baf
add joystick driver from Matthieu Herrb (pr #2267 )
1996-03-27 19:11:13 +00:00
jtc
2ce5f1478b
Add _BSD_WINT_T_ definition so we can handle wint_t type added in NA1.
1996-03-16 01:31:45 +00:00
ghudson
4e0c8707f7
To enable people to mount DOS partitions on disks with no NetBSD
...
partition, add the MBR partitions to the default (faked-up)
disklabel used by NetBSD if it can't find a real one. If the
type of the MBR partition is one of the common DOS ones, mark the
partition as having an MSDOS filesystem.
1996-03-09 20:52:54 +00:00
cgd
0b56afadf3
make this idempotent. bus.h needs to include it, and other things which
...
may include something that includes bus.h may include it as well.
1996-03-08 20:15:23 +00:00
cgd
6826c7bf48
bus memory and I/O space access functions/macros, to be used by
...
machine-independent code for more sane access to bus resources.
New functions will be added to this set, in the future, as appropriate,
but this is a good starting set. Defines:
bus_{io,mem}_{map,unmap}
bus_{io,mem}_{read,write}_{1,2,4,8}
functions, and several types to go with them.
1996-03-08 20:11:23 +00:00
cgd
18ec26aa21
add _MACHINE and _MACHINE_ARCH, which are like MACHINE and MACHINE_ARCH,
...
execpt without quotes. meant to be __CONCAT()ted for easy #includes
of machine-dependent headers for MI code (e.g. for the MI ISA/EISA/PCI/TC
bus code).
1996-03-04 05:04:10 +00:00
cgd
1c5d7babe5
Clean up tabbing/spacing in defns of MACHINE, MACHINE_ARCH, and MID_MACHINE.
1996-03-01 23:30:08 +00:00
jtc
8bd51c47b9
Copyright assigned to the NetBSD Foundation
1996-02-27 22:28:09 +00:00
mycroft
d1bae2700f
Add the obligatory copyright notice.
1996-02-18 13:01:05 +00:00
christos
4d234d08d8
Move pmap_page_index declaration to <vm/pmap.h>
1996-02-12 21:12:29 +00:00
mycroft
9d9a70a5a2
Fix #includes.
1996-02-02 18:05:36 +00:00
mycroft
88e512b693
LOCORE -> _LOCORE
1996-02-01 22:28:24 +00:00
mycroft
7149c5ff14
VM86 support, by John Kohl, touched up a bit by me.
1996-01-08 13:51:30 +00:00
mycroft
87a8c945ba
Hand-code softintr() to deal with GCC braindamage.
1996-01-07 21:48:35 +00:00
mycroft
0696821419
Deal with GCC's dead code elimination being suboptimal.
1996-01-07 03:59:28 +00:00
mycroft
41f463bf2c
Modify splraise() to allow better optimization.
1996-01-07 02:40:44 +00:00
mycroft
946507cf4d
Make cpl, ipending, and astpending volatile.
1996-01-07 02:08:28 +00:00
mycroft
cd8fe86bcb
Make the type of __builtin_va_list a long.
1995-12-26 01:16:24 +00:00
mycroft
0c00214737
Use __builtin_va_alist.
1995-12-26 00:19:09 +00:00
mycroft
fa887628d8
Stylistic changes.
1995-12-25 23:15:31 +00:00
mycroft
d1de691efb
Stylistic changes.
1995-12-25 22:22:02 +00:00
mycroft
0199e002ad
Update for GCC 2.7, and fix bugs.
1995-12-25 21:41:08 +00:00
mycroft
1ca89b7f91
Enable paging of the user area.
1995-12-24 01:07:32 +00:00
mycroft
d2e4a2de4b
Minor cleanup.
1995-12-21 01:08:59 +00:00
mycroft
6698d239ca
Use the U suffix to insure unsigned values are treated as such.
1995-12-20 23:30:57 +00:00
mycroft
e28d5e9168
Use #pragma only for 2.0 <= GCC < 2.7.
1995-12-20 18:09:24 +00:00
mycroft
e09cc4cf9d
Use alternate structure packing method added in GCC 2.7.
1995-12-20 17:58:55 +00:00
mycroft
dab27d0c21
Use explicit integer sizes. Adjust constraints for GCC 2.7.2.
1995-12-20 07:53:09 +00:00
mycroft
086845d5d3
Move the initialization of proc0's TSS and LDT to the end of cpu_startup(),
...
and switch to dynamically allocating the TSS.
1995-10-12 17:56:36 +00:00
mycroft
2765bc7b44
Go back to statically allocating the GDT entries for proc0.
1995-10-11 19:32:31 +00:00
mycroft
ddbde6d166
Remove reference to dead variable.
1995-10-11 06:24:28 +00:00
mycroft
72805df917
Various changes from John Kohl and me:
...
Map kernel stacks only at unique addresses.
Use one TSS per process.
Add sysarch calls for modifying IOPL and the I/O permission bitmap.
Add a compacting GDT entry allocator, for TSS and LDT selectors.
Enable modifying %fs and %gs with PT_SETREGS.
Sanitize various bits of code.
1995-10-11 04:19:29 +00:00
mycroft
25f53a986f
Add USERMODE() and KERNELMODE() macros, and use them.
1995-10-10 04:45:03 +00:00
mycroft
0ad97bc5c9
FreeBSD binary compatibility module, from Noriyuki Soda.
1995-10-10 01:22:31 +00:00
mycroft
8096b83664
Eliminate soft segment descriptors; instead use a functional interface for
...
creating segment descriptors. Add the duplicate system call gate used by
BSD/OS 2.0 executables. Prototype setsegment() and setgate(), and fix a bogon
caught by this.
1995-10-09 06:34:11 +00:00