Commit Graph

25442 Commits

Author SHA1 Message Date
christos
8fb507a3b7 Assign copyright to TNF. 1998-09-05 14:50:25 +00:00
christos
bd52ba3c5a Assign copyright to TNF. 1998-09-05 14:42:05 +00:00
christos
9b63f5f407 Assign copyright to TNF. 1998-09-05 14:30:31 +00:00
christos
344ed1eaef Assign copyright to TNF. 1998-09-05 14:20:01 +00:00
christos
236611ac0b Regen. 1998-09-05 14:18:04 +00:00
christos
c7a4282124 Assign copyright to TNF. 1998-09-05 14:12:36 +00:00
pk
2c9a80baf4 Assign my copyrights to TNF. 1998-09-05 14:01:08 +00:00
pk
5ebcb31dd0 Assign my copyrights to TNF. 1998-09-05 13:45:46 +00:00
pk
8adc8da66b Assign my copyright to TNF. 1998-09-05 13:40:35 +00:00
nisimura
a3d9c9bd87 - Clearify what ioasic_init() is for. No runtime difference because
NetBSD/pmax does not fully utilize the hardware features.
1998-09-05 05:54:15 +00:00
mycroft
f887061852 Disable recent additions, which are gratuitously annoying and *crash my
machine* at boot time (with a divide by 0 fault).
1998-09-05 04:54:23 +00:00
mycroft
68a70a83ba Check permissions on device to be mounted. 1998-09-05 04:34:47 +00:00
mark
ba8c6b9828 arm32 now supports soft serial interrupts. 1998-09-05 04:25:35 +00:00
mark
646b4ca78b Declare boot_file. 1998-09-05 04:14:21 +00:00
nisimura
368fcbd069 - Remove lines make not effects from mainbus.c
- Remove direct device driver calls from dec_3100.c. Close PR#5522.
1998-09-05 04:11:04 +00:00
mark
4285910912 Implement faster method of blocking all lower priority interrupts.
Modify current_spl_level to reflect the temporary change in interrupt
priority level which dispatching.
Don't increment the interrupt stats for every handler in the interrupt chain.
Cleaned up a number of comments.
Define soft interrupt names.
A few miscellaneous tidy ups.
1998-09-05 04:05:31 +00:00
mark
de5eac54ea Simplified initialisation of irqmasks.
Removed any remnants of soft interrupt dispatching.
Cleaned up a number of comments.
Removed a number of blank lines.
Nuked register keywords.
Made sure code is in sync with interrupt handling for other ARM hardware.
1998-09-05 04:04:24 +00:00
mark
451f011ac6 Always call dosoftints() for both lowerspl() and splx().
Fix several comments.
1998-09-05 04:01:53 +00:00
mark
3a115108ed Nuke register keywords.
Update set_spl_masks() to reflect the _SPL_SOFT* macros.
Initialise the soft interrupt mask array.
Update dump_spl_masks() to dump all the hardware and software spl masks.
1998-09-05 04:00:30 +00:00
mark
900bbc08fc Soft interrupt dispatching now uses the soft_interrupts variable along
with the spl_smasks array and the current_spl_level variable to work
out which soft interrupts are pending.
This means that soft interrupts are now separated from the hardware
interrupts so a full 32 hardware and 32 software interrupts can now be
supported.
Implement clearsoftintr() function.
Define several macros to make the soft interrupt dispatching code cleaner.
Implement setsoftserial() function.
Implement soft serial interrupt dispatching.
1998-09-05 03:59:29 +00:00
mark
867fa9eb68 If boot_file is defined try using it to determine the boot device.
Update printing of irqmasks for IPL_SERIAL.
1998-09-05 03:58:31 +00:00
mark
08c24a03e4 Cleanup and simplify interrupt number definitions for various architectures.
Remove all soft interrupt definitions now soft interrupts are being
separated from hardware ones.
Reserved interrupts do not have any special uses so only define then if
needed as placeholders.
1998-09-05 03:51:01 +00:00
mark
6edf348e6d Define _SPL_SOFT{CLOCK,NET,SERIAL} and create or update the
appropriate spl* macros.
Move spllpt() maro here from intr.h
Prototype setsoftserial().
Define spl_smasks array for software interrupt masks to complement the
hardware interrupt masks.
1998-09-05 03:50:01 +00:00
mark
4d98d58935 Define IPL_SERIAL & IPL_HIGH.
Define SOFTIRQ_CLOCK, SOFTIRQ_NET and SOFTIRQ_SERIAL and SOFTIRQ_BIT()
macros.
Move spltty macro to psl.h
1998-09-05 03:47:10 +00:00
mycroft
d9753cd7d0 Install joystick.h. 1998-09-05 03:32:57 +00:00
mycroft
dc0d1c09d5 Add joy at ofisa. 1998-09-05 03:32:36 +00:00
mark
5ae7ff7e6e Added assembly code for set_region_2.
Rewritten/Optimised a number of the bus space functions.
1998-09-05 01:31:53 +00:00
mark
1a6733681f Add set_region_2 to ISA IO and MEM tags.
KNF.
1998-09-05 01:30:02 +00:00
mark
46f166f090 Cleaned up the map_entry*() functions.
Removed register keywords.
Tidied up printf format strings.
Removed a number of blank lines.
1998-09-05 01:23:04 +00:00
mark
a21a7644df Rip out a load of junk thats long past its "best before" date. 1998-09-05 01:18:19 +00:00
mark
ec1dae5a9d Only build modedefs.c if MONITOR is defined. 1998-09-05 01:16:17 +00:00
mark
9ad228e3bc Update MINIROOTSIZE option. 1998-09-05 01:14:43 +00:00
mark
7115a4f53e Updated several comments and acknowledgements. 1998-09-05 01:12:14 +00:00
mark
218bf90f49 Nuke register keywords. 1998-09-05 01:09:42 +00:00
mark
e6aee6549e Updated for recent driver additions and reservations. 1998-09-05 01:06:38 +00:00
mark
3a01450f20 Bring up to date. 1998-09-05 01:04:48 +00:00
mycroft
e2cb6dad8d Make the randomized part of the ISS 24 bits. 1998-09-04 22:34:51 +00:00
mycroft
2f501074f8 Fix a couple of bogons related to tcp_new_iss():
* Don't add tcp_iss_seq when creating a new ISS from TIME-WAIT state.
* Do the clock increment even when using the rnd device.
1998-09-04 22:29:54 +00:00
is
0eb25ce882 Add support for Apollo-68060-board-reworked A3000 motherboards.
This is only tested on the original A3000...
1998-09-04 22:00:27 +00:00
is
a99b5503f1 Account for the 68060 store buffer. 1998-09-04 21:19:07 +00:00
christos
e1f16dd0c9 Assign copyrights to TNF; tv has copyrights on the remaining files...
It would be nice if he changed them (hint, hint)
1998-09-04 19:54:37 +00:00
kenh
466e22e1b7 Add a NODEVMTIME compile-time option. This will inhibit the updating
of modification times on device special files.  Probably only useful
for low-power systems.
1998-09-04 16:04:26 +00:00
tsubai
bd83774fb0 Switch to UVM on macppc. 1998-09-03 15:11:52 +00:00
minoura
2eacfa5148 Deleted unused options EIOMAPSIZE and ITEKANJI.
Removed unmaintained configs.
1998-09-03 14:29:33 +00:00
minoura
2b34aa908f Eliminated meaningless ITEKANJI. 1998-09-03 14:22:06 +00:00
minoura
8749f59fe4 Unimplemented EIOMAPSIZE defaults to 0. 1998-09-03 14:13:18 +00:00
christos
564a4c75d0 PR/5414: Ronald Khoo: tcpdump ppp does not respect inbound/outbound qualifiers. 1998-09-03 14:12:36 +00:00
tsubai
a647a97b1a Remove HTABENTS definition. (calculated automatically) 1998-09-03 14:10:56 +00:00
tsubai
99c8212d10 Change void mcintr() to int mcintr(). 1998-09-03 14:06:06 +00:00
tsubai
f8aa472811 * Remove nam2blk.
* Clean up a bit.
1998-09-03 13:18:44 +00:00
kleink
ef1837c1ad Fix typo in previous (!UVM case, hence insignificant). 1998-09-03 12:38:31 +00:00
nisimura
ff9b85d338 cdevsw[] and chrtoblktbl[] arrays were not in sync. Add missing the
two entries in chrtoblktbl[] as pointed out by Greg Oster PR#5715.
1998-09-03 07:12:43 +00:00
nisimura
e71752d621 An include file describes MIPS processor hardware nature, which will
supercedes cpuregs.h eventually.
1998-09-03 05:09:37 +00:00
mark
323528d86f Integrate another one of Neil Carson's pmap improvements.
Use pmap_clean_page() in pmap_remove_all() to improve cache cleaning
efficiency.
1998-09-03 03:31:53 +00:00
sakamoto
9b0803da20 Use UVM by default. 1998-09-03 01:43:34 +00:00
is
c38a877ead Add bus_space_read_region_1/bus_space_write_region_1 to the Amiga bus.h. 1998-09-02 23:00:04 +00:00
is
a3ee69c87a Split SMC chipset ARCnet driver into
- machine independent chip driver, in dev/ic/smc90cx6.c/...reg.h,...var.h,
  using bus_space methods
- ZBUS frontend in arch/amiga/dev/if_bah_zbus.c
- added IPL_SOFTNET to arch/amiga/include/intr.h, for this
Implementing the ISA bus frontend is left as an exercise to the reader.
1998-09-02 22:32:06 +00:00
drochner
453b195c4d Can't use pckbc_enqueue_cmd() in attach() because pckbc's initialization
is not yet completed, have to use pckbc_poll_cmd() instead.
1998-09-02 20:01:15 +00:00
drochner
b43e33a471 Since the RAMDAC drivers use the !=0-ness of fields for diagnostic
purposes, we have to zero-initialize the tga_devconfig structure.
1998-09-02 19:51:06 +00:00
matthias
0f9ab462ab std.pc532: default to UVM and PMAP_NEW.
DUMMY, KLONDIKE: Update to my current config.
INSTALL: Use -O1 to save space.
1998-09-02 19:22:13 +00:00
matthias
59def94d93 Get rid of vm_offset_t/vm_size_t. Resolve conflicts in pmap.new.[ch] after
last import from port-i386.
1998-09-02 19:17:12 +00:00
drochner
eab9af8df9 define attribute for VME bus attachment 1998-09-02 18:15:20 +00:00
mark
c3dbe8a928 Fix typo in filecore_node_pool declaration. 1998-09-02 18:02:54 +00:00
leo
fcfae9e5df Get rid of vm_offset_t/vm_size_t 1998-09-02 14:58:01 +00:00
mrg
77e8bc0d0f really turn UVM on on the atari... 1998-09-02 14:28:58 +00:00
leo
0d5cf1f723 mv vmebus -> avmebus to make room for MI vmebus implementation (per
reqest of Drochner).
1998-09-02 11:23:41 +00:00
leo
a27ab73aae Nuke vm_offset_t/vm_size_t. 1998-09-02 11:16:31 +00:00
leo
a3b886d834 Reorganize installation if include files. Nuke some from atari/include as
they make no sense out of the kernel add some from atari/dev (ioctl's).
1998-09-02 10:59:14 +00:00
mrg
06ea852ae8 take out UVM_PAGE_TRKOWN and comment UVMHIST 1998-09-02 10:27:27 +00:00
drochner
5e4c58a7d0 Fix incomplete variable renaming in the last commit.
Found by taca@sky.yamashina.kyoto.jp (Takahiro Kambe) - PR port-i386/6087.
1998-09-02 08:24:51 +00:00
nisimura
78aedb2cd3 - kernel boot flag 'd' now means "enter DDB asap" like as other ports.
- bump cpu_model[] length as the longest name occupies over 30 characters.
- place machine_arch[] beside machine[] for clearity.
- nuke useless #include directives.
- small scale cleanup in vm_machdep.c
1998-09-02 06:41:22 +00:00
eeh
cf9a8a5a53 Periodic update: now starts probing devices. 1998-09-02 05:51:35 +00:00
mjacob
fd97cb265c typo for non-SCSIVERBOSE case 1998-09-02 02:18:48 +00:00
enami
38cae9f204 Replace TAB just after the keyword `options' with SPACE. 1998-09-02 02:02:33 +00:00
cgd
8bbc38a130 avail mem is calculated ptoa(uvmexp.free), not ptoa(uvmexp.free - bufpages),
like on other ports.  uvmexp.free is already adjusted by the uvm_pagealloc
calls used to get the buffer pages.  (reported by mrg)
1998-09-02 00:03:05 +00:00
pk
380e88d4f0 Adjust some comments. 1998-09-01 22:56:00 +00:00
jeremy
6693724a83 Changed inaccurate comment on the sc_freq member of the driver's softc
structure.  The frequency is represented in MHz rather than Hz. [PR/6805]
1998-09-01 22:22:03 +00:00
thorpej
1df7dffd26 Nuke an unused variable. 1998-09-01 21:28:04 +00:00
pk
fec2fa9e43 Typo in device Id mask. 1998-09-01 21:04:43 +00:00
ross
899f8f8851 Fix off-by-one errors in assertion in DIAGNOSTIC in pmap_remove() 1998-09-01 20:30:20 +00:00
itohy
3e5ec30a8f Use subdirs. 1998-09-01 20:18:37 +00:00
itohy
b5f246a8ca Changed algorightm to figure out boot device.
Use type of SCSI interface, target SCSI ID and LUN,
passed from the boot loader.
1998-09-01 20:08:21 +00:00
itohy
f9175d6bc7 NetBSD/x68k boot loader. The xxboot now can boot NetBSD from
1. >1GB SCSI disks,
  2. any of the top 7 partitions on disks, and
  3. any SCSI interface.
1998-09-01 20:02:32 +00:00
itohy
ecc30b1784 New boot program.
Load and execute NetBSD/x68k kernel from Human68k.
1998-09-01 19:55:32 +00:00
itohy
8f7b16dd71 X680x0 IOCS library. 1998-09-01 19:53:54 +00:00
itohy
f67f070984 Human68k DOS library. 1998-09-01 19:53:25 +00:00
itohy
16964edb07 The files are moved to stand/xxboot/gunzip/. 1998-09-01 19:52:48 +00:00
itohy
bfd67e9c16 Files used in common. 1998-09-01 19:51:56 +00:00
itohy
19f52a192c New utility program.
Convert a.out to Human68k ".x" format executable.
1998-09-01 19:51:07 +00:00
itohy
330356bc46 The files are moved to stand/xxboot/. 1998-09-01 19:49:33 +00:00
itohy
b8e89a2507 Removed unused files. 1998-09-01 19:48:00 +00:00
itohy
1bf1486a77 Added an include file on port dependent boot information. 1998-09-01 19:47:38 +00:00
itohy
62f989f832 Removed unused files. 1998-09-01 19:44:14 +00:00
jtk
92707994ef use ad1848_isa_attach, so GUS cards with CS4231 don't panic the kernel 1998-09-01 18:48:38 +00:00
drochner
a442e328e7 -add italian layout, from Dante Profeta <dante@mclink.it>
-name pckbd_keydesc_declk -> pckbd_keydesc_us_declk for consistency
1998-09-01 18:11:13 +00:00
drochner
9d3ed7d925 add definition for italian keyboard 1998-09-01 18:09:27 +00:00
pk
30b5826331 Hang on to `old VM' a little while longer.. 1998-09-01 18:05:27 +00:00
pk
6f107350c1 Make user-mode testing work again. 1998-09-01 17:59:36 +00:00
pk
5e3bbeb1e1 Fix a case of duplicate allocation in extent_alloc_subregion() triggered
by specifying a start address that happens to be beyond all currently
regions.
1998-09-01 17:57:44 +00:00
tsubai
8159431e7e Make disklabel writable even if no disklabel exists. 1998-09-01 17:42:59 +00:00
tsubai
2c6eefb899 Add some prototypes. 1998-09-01 17:33:04 +00:00
tsubai
3a8ad815c4 Add some prototypes. 1998-09-01 16:35:50 +00:00
minoura
e97803df25 Typo. 1998-09-01 15:05:21 +00:00
tsubai
d5a3d4b4b7 Don't set RTC time before reading it. 1998-09-01 13:07:23 +00:00
sakamoto
64b0761e4d Include bsd.subdir.mk instead of bsd.prog.mk. 1998-09-01 08:43:48 +00:00
mycroft
b742b9ad67 Move some debugging output to more useful levels. 1998-09-01 07:27:06 +00:00
enami
29e9385ce2 Make this file compile again by removing no longer used `struct
cfdriver md_cd' and related code.
1998-09-01 06:13:33 +00:00
sakamoto
67d65cd631 Sync with i386/include/bus.h. 1998-09-01 05:57:23 +00:00
sakamoto
0bbf57d7ec Eliminate ovbcopy define. 1998-09-01 05:55:14 +00:00
thorpej
51257c6e4a Bump version to 1.3H. Several things, including some items that can
be built as LKMs, are now supposed to use the pool allocator to allocate
certain data structures.
1998-09-01 05:20:39 +00:00
thorpej
77ecf8273e Use the pool allocator and "nointr" pool page allocator for name cache entries.
The only benefit this provides is that we don't use kmem_map to map the memory
used for name cache entries (though, this is a 13 virtual page savings on my
PPro) since vnodes are never freed (they have their own freelist).
1998-09-01 04:33:56 +00:00
thorpej
0ff273aad2 Use the pool allocator and the "nointr" pool page allocator for
filecore nodes.
1998-09-01 04:09:30 +00:00
thorpej
ed45bc1661 Use the pool allocator and the "nointr" pool page allocator for msdosfs
denodes.
1998-09-01 04:04:10 +00:00
thorpej
cf6b3d3ec9 Use the pool allocator and the "nointr" pool page allocator for cd9660 nodes. 1998-09-01 03:40:19 +00:00
thorpej
d0bcffb9a3 Use the pool allocator and the "nointr" pool page allocator for adosfs nodes. 1998-09-01 03:33:26 +00:00
thorpej
38cf17f475 Use the pool allocator and the "nointr" pool page allocator for LFS inodes. 1998-09-01 03:26:05 +00:00
thorpej
3ae149efac Use the pool allocator and "nointr" pool page allocator for ext2fs inodes. 1998-09-01 03:20:46 +00:00
thorpej
9a3664eccf Use the pool allocator and the "nointr" pool page allocator for NFS nodes
and vattr structures.
1998-09-01 03:11:36 +00:00
thorpej
60cfe320cc Use the pool allocator and the "nointr" pool page allocator for FFS inodes.
XXX MFS also comes in here for inodes, and used a different malloc type,
but the structure is the same, so we just use the FFS inode pool.
1998-09-01 03:11:08 +00:00
thorpej
830ea34819 Use the pool allocator and "nointr" pool page allocator for vnodes. The
only benefit this provides is that we don't use kmem_map to map the memory
used for vnodes (though, this is a 30 virtual page savings on my PPro)
since vnodes are never freed (they have their own freelist).
1998-09-01 03:09:14 +00:00
mhitch
7a359022d9 Re-enable mfc and msc serial drivers. Both compile, but only mfc is
currently known to work [I can't test the msc changes].
Add commented-out UVM option (until UVM is standard).
1998-09-01 02:40:36 +00:00
mhitch
1d7e0301d3 Quick fix for TS_WOPEN -> t_wopen change. Compiles, but I can't verify
that it actually works again.
1998-09-01 02:33:32 +00:00
mhitch
b741e97082 Quick fix for TS_WOPEN -> t_wopen change. Compiles and works. 1998-09-01 02:30:29 +00:00
mark
0c11c52fc1 Added csc device. 1998-09-01 02:28:04 +00:00
mark
1c13966ceb Add csc device and scsibus attachment. 1998-09-01 02:27:21 +00:00
mark
edb737d09d Initial commit of a Cumana SCSI II driver using the sfas chip driver. 1998-09-01 02:24:11 +00:00
mrg
478a07de87 generate dependancies from genassym.cf 1998-09-01 01:48:21 +00:00
thorpej
8a1009afd9 Use the pool allocator and the "nointr" pool page allocator for rusage
structures.
1998-09-01 01:02:33 +00:00
thorpej
ad5e377513 Use the pool allocator and the "nointr" pool page allocator for tty
structures.
1998-09-01 00:23:28 +00:00
thorpej
3f8397855e Use the pool allocator and the "nointr" pool page allocator for pgrp
structures.
1998-09-01 00:08:44 +00:00
thorpej
26b8f5c4ac Use the pool allocator and "nointr" pool page allocator for file structures. 1998-08-31 23:55:37 +00:00
jtk
663e79e90a add 32-bit register support and beginnings of APM V1.2 support 1998-08-31 23:54:32 +00:00
jtk
6ab2c0f7d4 config file for BIOSCALL assym.h 1998-08-31 23:53:30 +00:00
thorpej
a8f7175524 Use the pool allocator and "nointr" pool page allocator for pcred and
plimit structures.
1998-08-31 23:53:19 +00:00
jtk
a5026bf4e2 regen 1998-08-31 23:52:58 +00:00
jtk
10ec6359b5 add 32-bit register support to BIOSCALL interface 1998-08-31 23:52:40 +00:00
thorpej
4dc0e91e12 Use the pool allocator and "nointr" pool page allocator for pcred and
plimit structures.
1998-08-31 23:20:16 +00:00
cgd
096cda5a50 the cfdriver's cd_lossage_prevention field is no longer necessary, since
config automatically generates cfdriver structs (for better or worse).
1998-08-31 23:05:52 +00:00
cgd
d58173741d kill the last remnants of __BROKEN_INDIRECT_CONFIG. (only the pica port
used it, and it's non-working and apparently slated for replacement.)
1998-08-31 22:28:04 +00:00
dbj
e07f44da4d Fixed typo in printf bitfields for intrstat register. 1998-08-31 21:21:10 +00:00
pk
779f357ede Implement cache alignment in bus_dmamem_load(). 1998-08-31 20:00:22 +00:00
ragge
58831dae59 Bug fixes and improvements. By Roar Thronæs and myself. 1998-08-31 19:20:24 +00:00
frueauf
56c79255db Fix typo: dbaddr_t -> db_addr_t. 1998-08-31 19:20:17 +00:00
ragge
25f04a8abb Support for all 4 console lines on KA820. Support for this written
by Sergey Svishchev (svs@ropnet.ru).
1998-08-31 18:43:28 +00:00
thorpej
29a84ea0ac UVM+PMAP_NEW is standard now; don't need it in individual config files. 1998-08-31 17:58:44 +00:00
thorpej
4e705c4d21 Switch the i386 port to UVM+PMAP_NEW. 1998-08-31 17:55:26 +00:00
dante
d35b531a68 Remove __BROKEN_INDIRECT_CONFIG
Correct currently known boards
1998-08-31 17:15:25 +00:00
tsubai
b9a44d6b63 vm_offset_t --> [pv]addr_t 1998-08-31 14:43:39 +00:00
tsubai
378fc0778a Change db_expr_t from int to long like other ports. 1998-08-31 14:16:48 +00:00
pk
5038a72078 A few modest simplifications. 1998-08-31 11:13:54 +00:00
pk
860867bfec macro argument protection. 1998-08-31 11:13:10 +00:00
mrg
1fe0874746 use genassym.sh/.cf rather then the C program. 1998-08-31 06:52:18 +00:00
thorpej
667635aebb Add (commented out for now) UVM/PMAP_NEW, enable KMEMSTATS, comment
out the PHY drivers.
1998-08-31 03:54:33 +00:00
mrg
69f13c5156 minor KNF nit 1998-08-31 02:47:00 +00:00
mrg
a2dad2e1a3 err, add sparc32_exec here. must forgot it. 1998-08-31 02:46:22 +00:00
thorpej
38e7a08bed Allocate vm_anon arrays from kernel_map, not via MALLOC(). Helps relieve
much of UVM's kmem_map usage.
1998-08-31 02:43:14 +00:00
mark
0e533ae4c7 Use IPL_AUDIO for the interrupt priority.
KNF.
1998-08-31 02:36:11 +00:00
mark
bd75906989 Use IPL_AUDIO for the interrupt priority.
Cleaned up some comments and removed several un-necessary includes.
1998-08-31 02:35:31 +00:00
mark
47364b0c91 Use IPL_AUDIO for the interrupt priority. 1998-08-31 02:34:36 +00:00
thorpej
d865961d77 Back out previous; I should have instrumented the benefit of this one
first.
1998-08-31 01:54:14 +00:00
thorpej
7338d4e403 Use the pool allocator and the "nointr" pool page allocator for vm_map's. 1998-08-31 01:50:08 +00:00
thorpej
be8d09cda3 Use the pool allocator and the "nointr" pool page allocator for dynamically
allocated vm_map_entry's.
1998-08-31 01:10:15 +00:00
thorpej
99626224a7 Use the pool allocator and the "nointr" pool page allocator for vmspace
structures.
1998-08-31 00:20:26 +00:00
mark
cdaa8d9c45 Further improvements to init_arm(). Use map_chunk() to map a number of
areas of the kernel including the text, data and bss.
1998-08-31 00:11:18 +00:00
mark
80d8aa6034 Remove a couple of redundant lines. 1998-08-31 00:08:11 +00:00
thorpej
694e9583aa Make sure the aobj_pager gets initialized! 1998-08-31 00:03:02 +00:00
thorpej
5a4981d9b8 Use the pool allocator w/ the "nointr" pool page allocator for uvm_aobj
and uao_swhash_elt structures.  Also, fix a bug in uao_set_swlot() where
if setting the swslot to 0 (freeing swap resources), and no swslot was
currently allocated, a new entry would be allocated anyhow (revealed during
pool'ification).
1998-08-31 00:01:59 +00:00
cgd
5fa7eee1ff don't define __BUS_SPACE_COMPAT_OLDDEFS by default. As stated in
bus_space(9), if drivers want it (they shouldn't; easy to convert) they
can define it right before including bus.h.  There's been a release since
the interfaces were (slightly) changed, and no code in the source tree
uses the old interfaces as far as I can tell.
1998-08-30 23:40:14 +00:00
cgd
3110e22945 use current bus_space interface names for barrier ops 1998-08-30 23:29:10 +00:00
mark
c4ae202098 Further improvements to init_arm(). Use map_chunk() to map a number of
areas of the kernel include the text, data and bss.
1998-08-30 23:19:37 +00:00
mark
45faa60d85 Added a new function map_chunk() used during init_arm() when setting up
the kernel page tables. map_chunk() replaces running a loop, calling
map_entry() and in addition where possible it will use L1 section mappings
or L2 large page mappings instead of L2 small page mappings in order to
reduce the TLB entried needed for the kernel.
1998-08-30 23:17:44 +00:00
mark
82661d453d Define new PTE construction macros for L2 large small pages and L1
sections and define some of the other macros using the new ones.
Add more comments for various definitions in the file.
1998-08-30 23:15:14 +00:00
pk
4dbdab4423 Erase sparc_nam2blk[]. 1998-08-30 21:54:25 +00:00
pk
88ab783b42 Define floppy device major number. 1998-08-30 21:53:35 +00:00
pk
a902b8201a Declare `devnametobdevmaj' table emitted by config(8). 1998-08-30 21:34:55 +00:00
pk
fc313d9031 Nuke old getprop() function and put its successor in place. 1998-08-30 21:30:41 +00:00
pk
400208c8b7 getpropA() => getprop() 1998-08-30 21:27:32 +00:00
pk
6f2539f8a6 getpropA() => getprop(). 1998-08-30 21:26:46 +00:00
pk
98e669d970 Use sbus attach args features.
getpropA() => getprop()
1998-08-30 21:25:30 +00:00
scottr
b950031b83 Fix a few comment tyops, kill an inaccurate comment, and
do some minor KNFing.
1998-08-30 20:30:57 +00:00
eeh
26d2d906c7 Some more 64-bit cleanup. Now everything compiles. 1998-08-30 15:32:16 +00:00
drochner
3af18e2765 add missing label 1998-08-30 12:32:48 +00:00
lukem
cdf68a7fa3 a minor hack i've had locally for ages: if PCVT_CAPS_IS_CTRL is
defined, make the capslock key act like another control key.
1998-08-30 09:59:47 +00:00
enami
27d8639238 Make this compile with -DIFMEDIA_DEBUG. 1998-08-30 07:39:39 +00:00
enami
47e906e5d9 As a temporary work around to make kernel links again, protect
renaming of quad type library only when !__NetBSD__ && sun && __svr4__.
XXX. Probably need to check __GNUC_MINOR__.
1998-08-30 05:29:39 +00:00
enami
71ba20edbb Define `len' as size_t rather than int so that correct type is passed
as fourth argument of copystr.
1998-08-30 03:08:43 +00:00
eeh
acbd410040 Some more 64-bit ification and I think I finally fixed the vref() panic. 1998-08-30 02:12:02 +00:00
rvb
7e0aabe421 Remove v_type != DIR check. First, vn_readdir already does
this check, before calling VOP_READDIR.  Second, vn_readdir
returns a different error even.  Finally, some FS's might
want to write their directories into files that look like
BSD directories and then have ufs_readdir parse them.
1998-08-30 00:16:04 +00:00
jtk
61cf67759a make AUDIO_DEBUG work again 1998-08-29 22:49:48 +00:00
pk
110e8db6b0 Define LSI64854. 1998-08-29 21:52:54 +00:00
pk
fe6b9295a8 Adjust for some small changes in lsi64854 back-end driver. 1998-08-29 21:43:00 +00:00
pk
73b946e04e LSI64854 DMA engine driver.
Currently used by Lance Ethernet and NCR SCSI front-ends on sparc/sparc64.
1998-08-29 21:42:03 +00:00
rvb
2eec68d743 Very Preliminary Coda 1998-08-29 21:26:45 +00:00
pk
0a30d383a0 Sbus esp' and le' front-ends now attach in `sys/dev/sbus/files.sbus'. 1998-08-29 20:53:11 +00:00
pk
e4091cb757 Split `esp' driver and DMA engine into separate front-end files.
The Sbus front-ends have all been moved to `sys/dev/sbus', while
the `obio' front-ends remain here.
1998-08-29 20:49:35 +00:00
pk
1f0567dd53 Nuke unnecessary header files. 1998-08-29 20:38:38 +00:00
pk
3557f62f30 Use bus_space_*() to access device registers.
Add `esp' and `le' DMA engine.
1998-08-29 20:32:09 +00:00
pk
15d097c04d Make compile without AUDIO_DEBUG 1998-08-29 19:52:09 +00:00
eeh
d581aadc3e Some more 64-bit-ification. 1998-08-29 18:16:56 +00:00
mrg
e10d7cb026 add sys/swap.h, and not that vm/vm_swap.h should go away later. 1998-08-29 17:06:11 +00:00
mrg
edda33e00c move <vm/vm_swap.h> to <sys/swap.h>. <vm/vm_swap.h> still works for now (goes away later) 1998-08-29 17:01:14 +00:00
mrg
08528c6bd2 remove unnecessary "extern int ncpus" (was also causing egcs warning) 1998-08-29 16:24:25 +00:00
mrg
892ab683dc minor minor KNF nit. 1998-08-29 16:24:03 +00:00
mrg
06a7946b7d register -> int or nothing & egcs warnings cleanup. 1998-08-29 16:21:20 +00:00
mrg
ac9132322e minor minor KNF nit. 1998-08-29 16:16:37 +00:00
mrg
af81b233e1 remove unnecessary "extern int tickadj" (was also causing egcs warning) 1998-08-29 16:15:53 +00:00
mrg
6b1d637705 add "int" type to interrupt handler typedefs (egcs warning) 1998-08-29 16:15:11 +00:00
mrg
3d26a04acb add "int" type to static tzops array (egcs warning) 1998-08-29 16:14:15 +00:00
mrg
ba1bba6844 register -> int (also fixes egcs warning). minor KNF nit. 1998-08-29 16:13:33 +00:00
dante
cb8b14827c Adjust copyright justification 1998-08-29 13:54:50 +00:00
dante
17759893b0 Add rcs id 1998-08-29 13:44:49 +00:00
mrg
b5f69ff667 add a `char se_path[PATH_MAX]' member to struct swapent, that
the pathname of the swap device is saved into.  add a char *swd_path
member to struct swapdev, that contains a copy of the pathname
(using malloc(9)).  rename swapctl(2)'s SWAP_STATS to SWAP_OSTATS,
and add a new SWAP_STATS command (number).  make swapctl(SWAP_STATS,
...) [new version] copy the path out.  if COMPAT_13, also include
support for SWAP_OSTATS.  also fix a minor bug in swapctl(2).

the point of this is that swapfiles are now shown in `swapctl -l'.
1998-08-29 13:27:50 +00:00
mrg
ed88a6f103 add support for finding kernels other than `netbsd'. the list is:
netbsd, netbsd.gz, netbsd.old, netbsd.old.gz, onetbsd, onetbsd.gz
and vmunix, in that order.  this is used by the bootable `bootfs'
image (suitable for floppies and cdroms), which contains a netbsd.gz
by default.
while i'm here, fix up `boot [device] -s' which got broke when
booting kernels with a - in their name was fixed..
1998-08-29 06:40:43 +00:00
mark
eff784066e Don't discard the proc0_pt_pte mapping and make sure that the
proc0_pt_pte and proc_pagedir mappings are uncached.
1998-08-29 04:58:16 +00:00
mark
4a241e1fbd Change KERNEL_BASE to VM_MIN_KERNEL_ADDRESS. 1998-08-29 04:08:12 +00:00
mark
9eb28e934b Include sys/types.h instead of sys/param.h
Junk some un-needed includes and include cpu.h.
1998-08-29 04:05:44 +00:00
mark
ae7526d965 Removed some un-necessary includes. 1998-08-29 04:01:58 +00:00
mark
c611af7c7f Change boot_path to boot_file and initialise to NULL along with boot_args. 1998-08-29 03:57:03 +00:00
mark
5898385f6b Change boot_path -> boot_file and initialise to NULL along with boot_args. 1998-08-29 03:55:57 +00:00
mark
4ad81305d5 Initialise boot_args and boot_file to NULL. 1998-08-29 03:53:17 +00:00
mark
80b4f63e42 Updated for some reserved majors. 1998-08-29 03:28:17 +00:00
mark
af5eba9861 Implement address validation as a separate function db_validate_address().
Use this function to validate the page table entries for all reads and
writes.
1998-08-29 03:21:33 +00:00
mark
3e217a0157 Remove the definition of CURRENT_PAGEDIR_HOLE and CURRENT_PAGEDIR_BASE
as they are no longer reference.
Move ALT_PAGE_TBLS_BASE from 0xf3c00000 to 0xf0c00000.
Increase the size of the KERNEL_VM_SIZE by 16MB now that 0xf3xxxxxx is free.
1998-08-29 03:19:55 +00:00
mark
22a3c54923 Use KERNEL_VM_SIZE to calculate the number of page tables needed for
the kernel data area.
Don't map the proc0 L1 page table into the L2 page tables space.
1998-08-29 03:17:27 +00:00
mark
99bb4b6b6b Rewritten pmap_pte() not to use the mapping of the L1 page table within
the L2 pages tables (CURRENT_PAGEDIR_HOLE).
Don't map the L1 page table into the L2 page table space any more (easy
reference hack) in pmap_allocpagedir().
1998-08-29 03:14:14 +00:00
mark
66074cf792 Use VM_MAX_KERNEL_BUF only to limit nbuf and not bufpages. 1998-08-29 03:09:14 +00:00
thorpej
e554af53c2 Use the pool allocator (and the "nointr" pool page allocator) for
vm_amap structures.
1998-08-29 01:05:28 +00:00
dbj
12107a5187 Updated many of the pmap files to use current versions from the
mvme68k port.  The next68k port now uses MACHINE_NEW_NONCONTIG.
1998-08-28 23:05:53 +00:00
dbj
abbb6f13e3 Added some machine probing information to console printouts. 1998-08-28 22:56:08 +00:00
dbj
fa906c926a added a flag to disable the NEXT_SLOT_ID_BMAP for testing the turbo machines 1998-08-28 22:53:47 +00:00
dbj
a96195b5fd added -Wno-main if USE_EGCS is defined 1998-08-28 22:50:54 +00:00
dbj
a538dbbf21 Moved initialization of vbr, and removed default machine configuration
varaiables to debug probing on the turbo machines.
1998-08-28 22:47:12 +00:00
thorpej
4b7b605d84 Use the "nointr" pool page allocator for pmap_pmap_pool. 1998-08-28 22:22:48 +00:00
thorpej
d1f73558ff Use the "nointr" pool page allocator for pmap_pmap_pool. 1998-08-28 21:58:29 +00:00
thorpej
3d5e078fe9 Use the "nointr" pool page allocator. 1998-08-28 21:20:05 +00:00
thorpej
f1f6ec6afe Add an alternate pool page allocator that can be used if the pool is
never accessed in interrupt context.  In the UVM case, this uses the
kernel_map, to reduce usage of the previous kmem_map resource.
1998-08-28 21:18:37 +00:00
thorpej
7cad30cd22 Add a couple of comments about how the pool page allocator functions
can be called with a map that doens't require spl protection.
1998-08-28 21:16:23 +00:00
drochner
2f94f2c21c some fixes:
-use of uninitialized variable in attach (mostly harmless)
-removal of dead code in attach()
-fix of interpretation of SIA blocks on >=21142 (serious, caused strange
  things with 10Mbit)
1998-08-28 20:58:37 +00:00
pk
8e0c62893c Remove cache flush from dma_espintr(); the bus dma routines take care
of that now. Hence we no longer need <sparc/cpuvar.h>.
1998-08-28 20:14:36 +00:00
pk
ca868d7da6 Specify our boundary restriction when allocating DMAble memory. 1998-08-28 20:07:52 +00:00
thorpej
77d0a69569 Add a waitok boolean argument to the VM system's pool page allocator backend. 1998-08-28 20:05:48 +00:00
mark
808c0cca58 Fix bug with zeroing kernel page tables that I introduced yesterday. 1998-08-28 20:04:35 +00:00
thorpej
370a38c007 Add braces to make egcs happy. 1998-08-28 20:03:10 +00:00
pk
221a000391 Pass on bus_dma*() aligment and boundary arguments. 1998-08-28 20:02:19 +00:00
pk
1643e13b90 XXX - BUS_DMA_BIT24 does not exist everywhere.. 1998-08-28 20:01:08 +00:00
thorpej
f369f261d1 Fix a debug printf. 1998-08-28 19:22:50 +00:00
thorpej
f3bfb08d45 When determining the default media on the Vortex/Boomerang, don't pick
the full-duplex variant.  XXX We should check the EEPROM for "default to
full-duplex".
1998-08-28 18:16:02 +00:00
mark
1cb7a16aed Fix typo. The page table allocation loop in initarm() should be
<= NUM_KERNEL_PTS rather than < NUM_KERNEL_PTS.
1998-08-28 17:15:45 +00:00
fvdl
17c31a8a21 Add ETHER|NONE to default capabilities, or we'll panic when attaching
the forthcoming ex driver.
1998-08-28 12:50:36 +00:00
pk
535cdbe9f2 Slight optimization in audio_[pr]int(). 1998-08-28 12:07:41 +00:00
pk
b1447741da Nuke Dprintf; fix formats. 1998-08-28 08:59:14 +00:00
pk
9441400ef0 Nuke Dprintf; fix formats.
Add missing copyright.
1998-08-28 08:58:24 +00:00
pk
f6a208ce6b Nuke Dprintf; fix formats. 1998-08-28 08:57:38 +00:00
augustss
c50af72c34 Handle the case of MIDI devices with no audio devices. 1998-08-28 07:44:12 +00:00
thorpej
70b6acd9df Use NFS_BOOT_BOOTPARAMS until we change the boot program to use DHCP 1998-08-28 04:56:15 +00:00
mark
25ae95328f Use kernel_pmap->pm_pdir instead of PAGE_DIRS_BASE when mapping podule
space.
1998-08-28 03:19:34 +00:00
mark
17dcbf485c More reworking in initarm().
Further cleanup and simply the allocation and mapping of the kernel
  pagetables and static data pages.
  Removed the page directory page table as it is no longer necessary.
  Changed the allocation of the proc0 L1 page table and L2 page table
  that maps the page tables to map these pages into kernel virtual
  address space.
  Updated for pv_addr_t argument changes to pmap_bootstrap().
1998-08-28 02:58:41 +00:00
mark
133f5c93f0 Updated for pmap_bootstrap() argument change. Modify ofw_configmem()
to obtains pv_addr_t structures for the proc0 L1 page table and the proc0
pagetable that maps page tables.
Use the virtual address from the pv_addr_t structure for the proc0 L1 page
table when calling pmap_bootstrap rather than relying on a special mapping
at PAGE_DIRS_BASE.
Modify ofw_construct_proc0_addrspace() for similar changes to
ofw_configmem().
Remove the kernel_pde page table in ofw_construct_proc0_addrspace() as it
it now longer needed.
1998-08-28 02:52:37 +00:00
mark
1ca0ef8cae Modify the arguments to pmap_bootstrap() to take a pv_addr_t structure
for the page table to map kernel pagetables (kernel_ptpt). This means
that the pm_vptpt field is now valid for the kernel_pmap.
Use constants from vmparam.h in pmap_allocpagedir().
1998-08-28 02:46:51 +00:00
pk
7e95972ed1 Add audiocs' ("SUNW,CS4231") and en' ("ENI-155s"). 1998-08-27 20:56:44 +00:00
pk
efad4d44c0 CS4231 audio driver. Play only for now. 1998-08-27 20:51:17 +00:00
pk
ce2bbbd092 Add audiocs. 1998-08-27 20:49:37 +00:00
pk
dd0709d28d Add selected `%b' bits. 1998-08-27 20:05:11 +00:00
pk
142bff0170 Add missing entries and make it slightly more verbose. 1998-08-27 19:53:02 +00:00
pk
b3279eb3dc Move a few prototypes.
Whitespace cleanup.
1998-08-27 18:45:12 +00:00
tv
6baebf57c6 Nuke egcs warns: void main(), implicit int 1998-08-27 12:20:51 +00:00
mrg
713a7dc9c3 oops, remove old isp attachment here.. 1998-08-27 11:47:12 +00:00
mrg
396330e186 remove sparc64 "options BUS_DMA" -- it is now standard 1998-08-27 11:43:14 +00:00
mrg
82571f5403 move isp sbus attachment to dev/sbus 1998-08-27 11:41:24 +00:00
mrg
bd85d62257 move isp sbus attachment to dev/sbus and support it on the sparc64 1998-08-27 11:40:06 +00:00
mrg
41ad1758ac move isp_sbus attachment into /sys/dev/sbus. 1998-08-27 11:30:45 +00:00
scottr
f8a4876874 Add on-board video information for the LC III, and a guess
at the LC II based on similar machines mentioned in the dev note.
1998-08-27 07:31:34 +00:00
christos
667541561d Try to implement I_GETSIG to make netscape work again (untested) 1998-08-27 07:04:31 +00:00
eeh
a465fdedc6 Add 64-bit pmap support:
Moved from a two level 512/1024 entry setup mapping 32 (9/10/13) bits
respectively to a three level 1024/1024/1024 entry setup mapping 43
(10/10/10/13) bits.  In 32-bit mode we waste about 1/12 pages mapping the high
11 bits.  We also only manage 43 of the possible 44 bits of virtual address
space, wasting half of it.  Oh well, maybe we'll do better next revision.
1998-08-27 06:23:31 +00:00
mark
c5695ed630 Centralize the definition of pv_addr_t to pmap.h 1998-08-27 04:00:53 +00:00
mark
af91a82f1e Remove pv_addr_t and systempage declarations. 1998-08-27 03:58:10 +00:00
mark
e7a61c9984 Centralise the definition of the pv_addr_t structure. 1998-08-27 03:55:06 +00:00
drochner
a80cad6e0a regen 1998-08-26 20:00:37 +00:00
drochner
fe1c5e2163 add the SIS 5597/5598 all-in-one PCI chipset 1998-08-26 19:59:16 +00:00
mrg
a317393b79 use __NetBSD__ not NetBSD 1998-08-26 15:12:55 +00:00
pk
fc397afa14 debug level 0 1998-08-26 15:06:37 +00:00
tv
7308faf67b "COMPAT_11 + COMPAT_12 + COMPAT_13" doesn't work - these are based on
definition, not 1 or 0.  Also, since all pre-1.4 releases require
COMPAT_13 (not just 1.3 binaries), just "#ifdef COMPAT_13".
1998-08-26 14:51:57 +00:00
dante
df94d3f4f5 Add AdvanSys SCSI controller 1998-08-26 14:27:44 +00:00
dante
d93a0d81b0 Add AdvanSys support 1998-08-26 14:20:37 +00:00
dante
97b8010151 Changed ADVSYSPROD to ADVSYS vendor ID
Added 1200A, 1200B, ULTRA, 2300 AdvanSys products ID
1998-08-26 14:18:26 +00:00
dante
d9e417cde9 Add AdvanSys 930U and 940U SCSI controllers 1998-08-26 14:13:58 +00:00
mrg
1f9d0626af regen. 1998-08-26 13:46:56 +00:00
mrg
fa380eed0f make oreboot work. 1998-08-26 13:42:50 +00:00
mrg
c757d26220 use right syscalls. add converters for timespec and semid_ds 1998-08-26 13:42:22 +00:00
mrg
25f5eb1d01 fake sendsig for now.. 1998-08-26 13:38:32 +00:00
mrg
62ba41606d use right syscalls 1998-08-26 13:38:21 +00:00
augustss
c5b4ddc051 Add more opl attachments. 1998-08-26 13:37:49 +00:00
augustss
7972a062b0 Make the OPL driver attach directly to ISA as well. 1998-08-26 13:33:59 +00:00
augustss
8d64ea1683 Less debug printing. 1998-08-26 13:08:44 +00:00
augustss
6633896a67 Do some renaming of registers and make sure we get sound in both
channels on OPL3.
1998-08-26 13:08:10 +00:00
mrg
a40fb261e6 deal with no DDB 1998-08-26 12:41:47 +00:00
mrg
446bcd99d6 panicstack: is needed outside of DEBUG. use _C_LABEL, and printf not db_printf (incase no ddb!) 1998-08-26 12:37:35 +00:00
augustss
9deb19798f Add OPL driver. 1998-08-26 12:10:57 +00:00
augustss
bb3c56652c Make the OPL driver turn on the sound on sound cards that require it.
That makes it much more likely that we get any sound.  DUH!
1998-08-26 12:10:22 +00:00
tsubai
a890d2dd7f Add MD DELAY and spl routines to fit Nisimura's change. 1998-08-26 12:07:21 +00:00
tsubai
1c3e72cd0e Back out previous change. 1998-08-26 11:44:06 +00:00
mrg
8912df90bf fix missed sparc -> sparc64 1998-08-26 10:36:42 +00:00
mrg
e791891d53 - use UVM by default.
- clean up the Makefile a bit to be less solaris-centric :)
- add support for compat_sparc32 (32bit compat module for NetBSD/sparc).  this
  isn't yet fully tested but it mostly written and compiles if not totally
  links yet.
1998-08-26 10:31:36 +00:00
mrg
d3aee6e637 regen 1998-08-26 10:24:11 +00:00
mrg
3ba6ab0970 add a 32-bit compatibility module for the sparc64 port, so it can run NetBSD/sparc binaries with a LP64 kernel. 1998-08-26 10:20:33 +00:00
augustss
76567c8213 Remove ad1848 attribute; it's in conf/files now.
(Why don't we remove the XXX hack in this file?)
1998-08-26 09:32:24 +00:00
mrg
e9762ad2be add COMPAT_SPARC32 1998-08-26 09:31:24 +00:00
mrg
8ea67882ab make this actually work 1998-08-26 09:09:31 +00:00
mrg
be25ea2fb5 put pmapdebug usage inside #ifdef DEBUG 1998-08-26 07:55:10 +00:00
sakamoto
4fa399d4db vm_offset_t -> {paddr_t,vaddr_t}, vm_size_t -> vsize_t 1998-08-26 04:54:17 +00:00
thorpej
bc21c243cd For non-MII Vortex/Boomerang, set full-duplex in the MAC CONTROL register
in epsetmedia() if full-duplex is selected (new feature on these cards!)

On MII Boomerangs, set the full-duplex bit in MAC CONTROL in the statchg
callback from the MII layer.  Should fix full-duplex on these cards.
1998-08-26 01:32:41 +00:00
thorpej
19b759c2e4 Define the full-duplex bit in the W3 MAC CONTROL register. 1998-08-26 01:29:03 +00:00
thorpej
7cfa6e0972 Always use pmap_kremove() if removing a mapping from the kernel pmap. 1998-08-25 23:09:08 +00:00
pk
6ab705c01b Also include SUN4 in the temporary split 1998-08-25 22:42:48 +00:00
pk
2e345f45ff Define the ad1848 attribute here. 1998-08-25 22:38:29 +00:00
pk
d4ec33b5f0 The new MI part of the AD1848 driver. 1998-08-25 22:36:40 +00:00
pk
f7151935ef Adjust for ad1848.c split. 1998-08-25 22:35:25 +00:00
pk
2ffb54bdcc Split the AD1848 driver into MI (dev/ic/ad1848.c) and ISA parts. 1998-08-25 22:34:29 +00:00
mark
47e470f2af Use UVM as standard. 1998-08-25 22:07:46 +00:00
mark
34f8ef18c9 Updated for changes to some of the constants defined in vmparam.h
Simplified serveral parts of the initarm() to make the code clearer and
modified parts of initarm() as part of an on-going effort to abstract
out part of initarm() on various machines.
1998-08-25 22:03:07 +00:00
mark
61bd706797 Include machine/vmparam.h 1998-08-25 21:56:14 +00:00
mark
bd14bb41f0 Define KERNEL_PD_SIZE in terms of various constants defined in vmparam.h 1998-08-25 21:55:06 +00:00
mark
cda0e37703 Collect various kernel constants together and define them in all one
place (some moved from param.h)
Define several constants such as page table addresses in terms of other
constants.
Increase some of the limits :
  MAXTSIZ	8MB -> 16MB
  DFLDSIZ	16MB -> 128MB
  MAXDSIZ	256MB -> 512MB
  DFLSSIZ	512KB -> 2MB
1998-08-25 21:53:37 +00:00
mark
4e8239cdca Removed a number of kernel constants as they have moved to vmparam.h 1998-08-25 21:50:54 +00:00
thorpej
b42b94b608 Shave yet more translation ops from the inner loops of pmap_protect(). 1998-08-25 18:21:17 +00:00
ragge
218681f3e5 Kernel stach should be 4K, not 32K. Increase MCLSHIFT to 11.
Remove ovbcopy().
1998-08-25 17:35:23 +00:00
augustss
a48f7d8a24 Attach the OPL FM synth to the ESS driver.
It probes, but alas, no sound.
1998-08-25 12:52:47 +00:00
matthias
fb5e3aef9b For the pc532 MACHINE (pc532) isn't equal to MACHINE_ARCH (ns32k) but there
is no sys/arch/ns32k.
1998-08-25 11:52:26 +00:00
thorpej
2fa5652849 Break the code that cleans out page tables from pmap_remove_mapping() into
separate functions that perform the cleanout starting at the l3pt, l2pt,
or l1pt.
1998-08-25 09:00:19 +00:00
pk
af5a3e52a5 yanko 1998-08-25 08:28:53 +00:00
thorpej
33caa59da3 Optimize the pmap_protect() loop. Will make a similar change to pmap_remove()
once some changes are made to how pt pages are cleaned up.
1998-08-25 08:00:15 +00:00
thorpej
b7fb6e1711 Change pmap_changebit() to take a mask of bits to set, and a PTE mask,
shaving several instructions out of the inner loop.
1998-08-25 06:21:16 +00:00
thorpej
daa8ad1747 Add some braces to make egcs happy. 1998-08-25 04:56:01 +00:00
thorpej
9f42788795 Add some braces to make egcs happy. 1998-08-25 04:43:46 +00:00
thorpej
2cffea3962 Use do { ... } while (0) in RTFREE(). 1998-08-25 04:22:33 +00:00
scottr
2d981dac3b The return value from intr_dispatch() is no longer necessary. 1998-08-25 04:03:56 +00:00
scottr
2aa56b1c61 Implement splaudio(). 1998-08-25 03:59:01 +00:00
mark
f920e4e2d6 In physconinit(), don't use printf() to clear the screen but call
the console's putstring function directly.
1998-08-25 03:26:36 +00:00
mark
b75234f009 Add calls to cpu_cache_cleanID() after calling setttb() during initarm().
This is necessary as the memory addresses being used for the cache clean
(if the CPU is a SA110) may have been remapped by the setttb() call and
thus the cache could loose sync with memory.
1998-08-25 03:10:25 +00:00
nisimura
e37ce1c5b6 Make spl(9) rountines target port dependent. delay() is also port
dependent anticipating a target with high resolution timer available
for on-the-fly re-programming.  Enum decstation_t was removed from MI
trap.c.
1998-08-25 01:55:38 +00:00
thorpej
9c3e900094 Use the pool allocator for pmap structures. 1998-08-25 01:46:01 +00:00
thorpej
7ff538b614 Oops, use M_VMPMAP as the malloc type in pool_init(). 1998-08-25 01:11:11 +00:00
thorpej
4dfff51650 Use the pool allocator to allocate pmap structures. 1998-08-25 01:09:04 +00:00
thorpej
85c6c03e2a Change the 32-bit fields of the RFA to an arrays of bytes, so that
egcs won't attempt to optimize inline copies of them into a single
load/store (the RFA is not 4-byte aligned in the DMA area).

Just use memcpy() to copy those fields, now, not our own home-grown.
1998-08-25 01:08:15 +00:00
matthias
04232f6196 declare end[] everywhere the same, fix an egcs "missing braces" warning. 1998-08-24 22:52:23 +00:00
mrg
514a5d2570 vm_page_bootstrap takes vaddr_t *'s not paddr_t *'s 1998-08-24 22:36:36 +00:00
drochner
103b7e7b17 The Intel 82371MX identifies itself erroneously as a miscellaneous bridge.
(from "Johnny C. Lam" <lamj@stat.cmu.edu> per PR kern/6021)
1998-08-24 19:27:05 +00:00
augustss
4e7c07c2b4 Write MIDI data from the sequencer to the device in a more sane way. 1998-08-24 17:59:25 +00:00
matt
ea3bfd6d80 Fix bug in transmit logic that would transmits to stop. Boolean dyslexia
stricks again.
1998-08-24 14:09:15 +00:00
pk
c6905522d2 These files are no longer used. 1998-08-24 07:23:10 +00:00
tv
b3e9be0ee3 egcs warning fixes, clean up `register' 1998-08-24 02:37:16 +00:00
tv
54bf4389f9 egcs brace warning 1998-08-24 02:34:44 +00:00
sakamoto
62ed825858 vm_offset_t --> [pv]addr_t. 1998-08-24 01:40:26 +00:00
pk
8c15879aa5 bitmask_snprintf() now takes a quad_t. 1998-08-23 22:43:27 +00:00
pk
9e744b8155 Merge Chris Torek's new `%b' bit-field format into bitmask_snprintf(). 1998-08-23 22:42:32 +00:00
eeh
d395d34886 Work on 32-bit cleanup. 1998-08-23 15:52:43 +00:00
eeh
41fb08c335 Added pv_syncflags() (unused) and debug stuff. 1998-08-23 15:51:23 +00:00
eeh
a579357e66 Remove dvma_mapin() and other cruft. 1998-08-23 15:49:02 +00:00
pk
66795e62e7 Move sparc_vme_dmamem_map() outside `#ifdef SUN4M' 1998-08-23 10:40:38 +00:00
pk
4539119e83 Nuke phys_map & old dvmamap. 1998-08-23 10:08:25 +00:00
pk
4fe6cdf6ca Nuke obsolete prototype. 1998-08-23 10:07:09 +00:00
pk
2a6be00de5 Rename DVMA constants. 1998-08-23 10:05:53 +00:00
pk
666587112f Use bus_dmamem_{alloc,free} instead of the old VM hack. 1998-08-23 10:04:56 +00:00
pk
e68fd96987 Remove DVMA address special cases in pv_changebit(). 1998-08-23 10:01:24 +00:00
pk
434a2cc972 Nuke phys_map & old dvmamap. 1998-08-23 09:59:24 +00:00
pk
9a2b941ecb Rename DVMA constants. 1998-08-23 09:53:03 +00:00
eeh
5e1f92b621 64-bit clean cleanup of ofwboot.elf. 1998-08-23 02:48:28 +00:00
msaitoh
7734e0ef29 fix version string (from PC Card Standard, April 1998 (Release 6.1)) 1998-08-22 23:41:48 +00:00
augustss
c7e036f6e2 Let opl attach to ess.
WARNING: it doesn't work yet.
1998-08-22 22:55:09 +00:00
augustss
f2ff59edc5 Change debug output. 1998-08-22 22:54:11 +00:00
augustss
95fac46655 Get opl MIDI dependecy right. 1998-08-22 22:53:06 +00:00
augustss
c29fdceff3 Prepare for MIDI devices. 1998-08-22 22:50:53 +00:00
eeh
edab5330c3 Fix typo in previous fix. 1998-08-22 22:45:19 +00:00
eeh
9f5435229a 64-bit-ify this. Depend on _lp64. 1998-08-22 22:16:01 +00:00
thorpej
23e384954a Comment the fields in the uio structure. 1998-08-22 20:25:02 +00:00
scw
592953d009 Fix tyop. 1998-08-22 18:11:25 +00:00
msaitoh
369bc4cb89 Allocate an I/O according to the config table entries.
Auto assign is done only when all cfe->iospace[0].start fails.
1998-08-22 17:47:58 +00:00
mrg
0d6736494d change sunos compat structure members from long to int so they stay the same on sparc64 1998-08-22 17:41:43 +00:00
mrg
c54c62ad31 bsd_audioio.h is not used. 1998-08-22 15:56:46 +00:00
mrg
9d4112bf21 make struct xd_iocmd's block member an u_int not a u_long 1998-08-22 15:11:02 +00:00
mrg
4d4f129eaa make "struct sun_dkpart" the same for sparc/sparc64 (sparc64 must have been broken?) 1998-08-22 14:55:28 +00:00
minoura
7f4ad4748e Eliminated vm_offset_t and vm_size_t. 1998-08-22 14:38:36 +00:00
ragge
e727d1e031 Must #define __warn_references if not GNUC. 1998-08-22 12:12:38 +00:00
pk
bc7c6c0c4c Fix DVMA address handling. 1998-08-22 11:47:45 +00:00
scw
a84a67440f vm_offset -> [vp]addr_t and vm_size_t -> [vp]size_t
While I'm here, expunge use of 'register' storage class.
1998-08-22 10:55:33 +00:00
ragge
00475fbb1f New times, new pagesize, use magic number in exec header. 1998-08-22 09:16:45 +00:00
scottr
9237e1254f Take a stab at support for the PowerBook 190/190cs, based on comparison
with other PowerBook hardware.  They seem to be most closely related
to the PowerBook 500-series, but have an internal IDE disk instead.

NOTE:  only external SCSI disks have a chance of working, at this
point.  Nothing has officially changed with regard to IDE support
(yet).
1998-08-22 06:06:05 +00:00
scottr
f234add115 Add gestalt machine type for the PowerBook 190/190cs. 1998-08-22 05:47:37 +00:00
is
9948205c5a Prepare for support of Apollo-cpuboard-reworked A3000 mainboard SCSI. 1998-08-21 19:13:27 +00:00
is
ae8175cb09 Workaround for the incomplete fastmem loading scheme: put uptbase lots higher,
so that hopefully it doesn't get overwritten by the 1:1 mapped kernel copy.
See line 375 for an explanation.
1998-08-21 18:51:58 +00:00
tsubai
5a294dbb55 Add missing "-a" to mkdep line for locore_machdep.S. 1998-08-21 16:24:25 +00:00
tsubai
d4d7416198 vm_offset_t --> [pv]addr_t. 1998-08-21 16:13:28 +00:00
tsubai
f6dcf3f9c6 Change vm_offset_t to [pv]addr_t. 1998-08-21 14:52:29 +00:00
pk
79dd1e8563 Convert to [pv]addr_t & [pv]size_t. 1998-08-21 14:13:53 +00:00
pk
ef6b13cc87 vm_offset_t => vaddr_t. 1998-08-21 14:13:47 +00:00
pk
b8a1caac4a Convert to [pv]addr_t & [pv]size_t. 1998-08-21 14:12:18 +00:00
pk
24255abca0 iommu_{enter,remove} moved to iommuvar.h 1998-08-21 14:10:42 +00:00
pk
ca5b5652b4 Remove vm_offset_t & vm_size_t. 1998-08-21 14:09:59 +00:00
pk
f318f15bc3 Convert to [pv]addr_t. 1998-08-21 14:07:37 +00:00
tsubai
5bcec15811 Add #ifdef DDB around Debugger(); 1998-08-21 14:07:03 +00:00
ragge
6aba9c11ff VAX logical page size increased to 4k. 1998-08-21 13:46:38 +00:00
scottr
33395d926e Remove an extraneous printf when attaching a Valkyrie. 1998-08-21 13:46:31 +00:00
ragge
b3574d3923 VAX logical page size increased to 4k. 1998-08-21 13:41:09 +00:00
pk
7575f8fac5 Move iommu_enter/iommu_remove here from <include/cpu.h>. 1998-08-21 13:29:57 +00:00
ragge
fc2106d632 VAX 1k page size compatibility executable handling. 1998-08-21 13:25:47 +00:00
tsubai
057ca9bfe1 No longer used. 1998-08-21 13:22:25 +00:00
tsubai
5617a263e0 Correctly initialize scb struct. 1998-08-21 13:19:43 +00:00
matt
f1a6a0936f The VAX46 (VS4000) needs the clock stuff the VAX43 does... 1998-08-20 23:52:42 +00:00
pk
02d030ca52 Pass on NOWAIT' and boundary' args to extent_alloc(). 1998-08-20 20:49:33 +00:00
pk
363b678b9e Flesh out more of the sun4 busdma functions. 1998-08-20 20:46:59 +00:00
pk
02c059eefa Pay attention to BUS_DMA_NOWAIT & boundary args where appropriate. 1998-08-20 20:45:40 +00:00
veego
ff2c3adddc Add some braces to stop the new egcs warnings. 1998-08-20 19:55:06 +00:00
tls
8a146cd406 update for b->mem change in sys/kern; now we need memcmp and memset, not just memchr. AFAIK, memcpy is provided by the compiler or by locore on this platform. 1998-08-20 17:56:22 +00:00
ragge
fb9171df3d Fix write/read of memory. 1998-08-20 16:47:11 +00:00
scottr
b27d106197 Match grf_obio devices correctly for the 58x/63x. 1998-08-20 13:58:04 +00:00
pk
aee27828f9 Some machines (Voyagers) apparently have zs devices with multi-valued
register properties in the PROM.
1998-08-20 11:47:39 +00:00
pk
5ad46000df Remove vestiges of sparc-specific interrupt handling. 1998-08-20 11:44:58 +00:00
pk
177621555f remove sparc hack: there's a bus.h now. 1998-08-20 11:42:55 +00:00
pk
1f007a13cc Cast bus_size_t to u_long in printf() args. 1998-08-20 11:42:13 +00:00
augustss
a6ed1cdd4e Provide a workaround for people who want a sequencer but have no MIDI devices. 1998-08-20 10:59:09 +00:00
augustss
915f1fe566 Add missing __P 1998-08-20 10:46:10 +00:00
kleink
a6d3fb3799 vm_offset_t -> {paddr_t,vaddr_t}, vm_size_t -> vsize_t 1998-08-20 08:33:41 +00:00
thorpej
96aa1cec21 Add ofisa attachment for the ISA joystick driver.
XXX currently arm32-specific.
1998-08-20 07:02:32 +00:00
thorpej
f73a7043f3 ISA Game port driver, lifted from BeBox port. 1998-08-20 06:31:34 +00:00
thorpej
b176b7ba0f Add joy driver at cdev 56. 1998-08-20 06:30:56 +00:00
thorpej
31ac3d022c Add joy driver devsw declarations. 1998-08-20 06:28:43 +00:00
thorpej
2d282c7e70 Add joy driver glue. 1998-08-20 06:28:18 +00:00
thorpej
cc042ba0e5 Correct a function name in a panic message. 1998-08-20 05:46:20 +00:00
kleink
1bbb6339c8 In readlink, don't copy the string's NUL-terminator, and remove a redundant
check.
1998-08-19 13:12:40 +00:00
explorer
5ae808b38d ss->special could be NULL, so sane would crash the kernel. 1998-08-19 08:40:31 +00:00
matt
5232b66bd5 Initial steps to getting the VAX to use the MI driver framework. 1998-08-18 23:55:00 +00:00
thorpej
8021b2ae29 Initial support for the Brooktree Bt463 RAMDAC. 1998-08-18 23:29:28 +00:00
thorpej
ff266f0937 Add some braces to make egcs happy. 1998-08-18 18:23:07 +00:00
thorpej
1083dcb6ca Back out previous. 1998-08-18 18:16:30 +00:00
thorpej
39f683419f Back out part of last change (uninitialized work-around). 1998-08-18 18:15:41 +00:00
augustss
0e6f209f9d Add forgotten OPL file. 1998-08-18 17:56:39 +00:00
thorpej
ee26f0775b This now needs <dev/midi_if.h> to build. 1998-08-18 17:55:09 +00:00
thorpej
706381d9ac Fix missing ;, pointed out by Erik Bartelsen, PR #5987. 1998-08-18 17:31:25 +00:00
mycroft
a76eb95be9 Tab vs. space, and turn *off* XSERVER_DDB by default. 1998-08-18 17:03:42 +00:00
leo
2ce88694c7 Do not include files.isapnp, this file is now included from files.isa...
(Julian Coleman)
1998-08-18 11:51:07 +00:00
thorpej
813dfd31c5 Fix a couple of obvious bugs in the hardware cursor handling code, and
use the RAMDAC callbacks to get/set the cursor colormap.
1998-08-18 08:40:39 +00:00
thorpej
6ba7f2f6fd Need an entry point to check cursor colormap entries for validity
before actually setting them.
1998-08-18 08:23:46 +00:00
thorpej
3db6850bb7 When updating the cursor colormap, actually store the data in our
copy of the cursor colormap, not the regular colormap!
1998-08-18 08:22:49 +00:00
thorpej
feaf75c755 Add set_curcmap and get_curcmap RAMDAC methods, for use by the TGA hardware
cursor code.  These are unneeded on the Bt485, since the RAMDAC handles
the hardware cursor.  They are needed for the Bt463, however, since the
RAMDAC only provides cursor color.
1998-08-18 08:07:45 +00:00
thorpej
082116a927 vm_offset_t -> vaddr_t 1998-08-18 08:00:17 +00:00
thorpej
cf3457cb9d Add some braces to make egcs happy (ambiguous else warning). 1998-08-18 07:53:47 +00:00
leo
47cf1b0e0a Circad Leonardo video driver by 'maximum entropy'. 1998-08-18 07:45:02 +00:00
thorpej
b43fc64da6 Registers for the Brooktree Bt463 RAMDAC. 1998-08-18 07:43:09 +00:00
msaitoh
2f823fee5b Add struct cd_sub_channel_q_data for CD_SUBQ_DATA (fixes PR#2143) 1998-08-18 07:28:24 +00:00
thorpej
6fc90a1a4d Add some braces to make egcs happy (ambiguous else warning). Also,
deal with bogus uninitialized warning (__noreturn__ related)
1998-08-18 06:47:53 +00:00