Commit Graph

29768 Commits

Author SHA1 Message Date
cgd
cba7918db6 (1) add a flag to the softc to indicate that the APM device may be
disabled even if it's attached.  If disabled, ENXIO on open.
(2) in the case where the code32 segment len overflows the I/O hole,
    instead of giving up truncate it.  (In other words, revert
    change (2) in rev 1.21 which i suggested mistakenly.)
(3) map bios data space in the 0->640k range with _i386_memio_map()
    rather than with bus_space_map(), so that no accounting checks
    are done.  The checks which are done to make sure that allocation
    in this range is safe are sufficient.
(4) check the return value from _i386_memio_map(), and if it indicates
    an error disconnect from the APM BIOS, print an error message,
    and return without having marked the device 'enabled'.
1997-07-10 03:07:29 +00:00
cgd
9989c90b52 rename i386 bus_space_{map,unmap,subregion,alloc,free} implementation
functions (which only work on memory and i/o space) to i386_memio_*,
and make bus_space_* in bus.h be #defines which invoke them.  This makes
life easier for people who need to define the all of the bus_space functions
so that they work on spaces other than memory and I/O space.  Also, add
an _i386_memio_map function which is like i386_memio_map but doesn't do
the extent map checking or allocation.  _i386_memio_map and i386_memio_*
are for use only by machine-dependent code.
1997-07-10 02:36:44 +00:00
christos
487628a792 Fix memory corruption that was caused by debugging code leftovers. 1997-07-10 00:54:44 +00:00
is
e76096387d Make multichannel output work. The cc parameter to hw_start_output is
a byte counter, it seems. Somebody should really write man 9 audio_if.
While here, make debug output invisible #ifndef AUCCDEBUG.
1997-07-09 22:37:08 +00:00
pk
f3dc7ce0f4 Use setpgt4m(), not bzero(), to initialize a pmap's first-level page table.
Fix a slightly misleading comment.
1997-07-09 21:51:26 +00:00
matthias
df05f3a8b1 * Flush the icache from user mode. The original code and the idea came from
Ian Dall. I just did some slight optimizations.
1997-07-09 19:32:51 +00:00
matthias
bb66aaeadc * Make it possible to disable disconnect/reconnect on a per target base.
* Eliminate disable interrupts in ncr_pdma_in. No more fifo overflows at
  high baud rates :-) (Thank's to Ian Dall for this).
1997-07-09 19:28:25 +00:00
matthias
c5e3d310a6 When booting from a md device set RB_DFLTROOT in boothowto. 1997-07-09 19:28:20 +00:00
matthias
1c1450c97a Remove __VM_PMAP_HACK. 1997-07-09 19:27:54 +00:00
matthias
ed60e6a598 This wasn't in use for several years now. 1997-07-09 19:27:33 +00:00
matthias
147aa6816f Remove __VM_PMAP_HACK. 1997-07-09 19:26:34 +00:00
leo
1c21c4994d Make sure the card is probed once. 1997-07-09 14:38:02 +00:00
leo
89325630dd Introduce 'bootversion' in locore.s. Check this to decide if installing
a bootstrap with the running installboot makes sense.
1997-07-09 14:31:12 +00:00
thorpej
b4ab2c89f5 Oops, fix a slight oversight, and remove T_MACHCHECK handling (some
code for this was in my private tree at one time, and I must have
forgotten to g/c the constant from trap.h).  Reported by
enami tsugutomo <enami@but-b.or.jp>, PR #3845.
1997-07-09 07:01:29 +00:00
phil
edce639300 Clean up play, let player see play more often, improve display timing.
Preliminary work from PR 2055 (as reverse patches).
1997-07-09 06:25:45 +00:00
mikel
b81225118c fix typos and other nits 1997-07-09 05:54:15 +00:00
scottr
348e1c023c Add a header file I missed some time back. 1997-07-09 05:52:22 +00:00
mikel
bcb582e71c eliminate dangling FFS references 1997-07-09 05:48:34 +00:00
mikel
1ac5792267 update printf formats to match type of line counts 1997-07-09 05:29:48 +00:00
mikel
70875d29b0 protect more variables against gcc longjmp() clobbering 1997-07-09 05:25:45 +00:00
mikel
f50e8d7409 make matchto() return type explicit 1997-07-09 05:23:36 +00:00
mikel
adaf168e3f add prototype for incfile() 1997-07-09 05:22:00 +00:00
jtk
8a210e82b2 fix mixer goof on GUS max 1997-07-09 03:03:21 +00:00
jtc
c56d18f4cb /var/spool/mail -> /var/mail 1997-07-09 02:54:38 +00:00
jtc
4ca4391165 /usr/spool/mail -> /var/mail 1997-07-09 02:53:39 +00:00
jtk
67085194b6 add -d option to shutdown, as companion to reboot's -d flag (force crash dump) 1997-07-09 02:39:37 +00:00
jtc
408b1c68b0 /usr/spool/mail -> /var/spool/mail 1997-07-09 02:37:59 +00:00
jtc
a6d081153f Changed pathnames to correspond to current reality. 1997-07-09 02:34:42 +00:00
jtc
afdf5dcf23 Changed /var/spool/* to /var/spool/output/*, to be consistant with reality. 1997-07-09 02:04:26 +00:00
pk
94289e9990 In the turbosparc's "match" function, test for the `master' CPU, in case
someone ever builds a multi-processor turbosparc module.
1997-07-08 22:14:42 +00:00
pk
37d77087e8 Check `b_dev' field in bdwrite() before using it as an index into bdevsw[].
`b_dev' value of NODEV happens and is normal if the buffer is on its way
to the underlying device strategy function for the first time.

Also, MFS sillily uses a major device number (255) which cannot be used
to index bdevsw[]. Check marked with XXXs.
1997-07-08 22:03:30 +00:00
pk
b7b1073fd0 In bread() and breadn(): if getblk() returns a DELWRI buffer, don't
call biowait() but return `success' immediately. We can return `success'
because buffers with recorded errors are not returned by getblk().
(Takes care of PR#3694).
1997-07-08 21:42:59 +00:00
christos
fd464a1a5d Correct prototype for __errno(). 1997-07-08 20:23:42 +00:00
pk
8eae6eb3b7 Fix a pasto in kvm_uncache() (sun4m)
Add TLB flushes when removing segments/regions.
Flush cache appropriately when cache-tag protection bits need invalidation.
1997-07-08 20:02:47 +00:00
pk
27d22f8faf Add FPU version 5 (turbosparc on-chip).
Re-arrange cpuattach() a bit so that more initialization is done before
dealing with the FPU.  Some more work is still required to de-couple
FPU detection from the autoconfiguration attach code in SMP systems.
1997-07-08 19:58:14 +00:00
mark
ec553ec8c0 New version of the ARM FPE core built. This core does not have all the
builtin veneer code. Instead this veneer code has been moved to kernel.
This removes the need for any runtime fixups of the fpe.
1997-07-08 19:41:28 +00:00
thorpej
4e8a131f3a When allocating space used by physical memory from the iomem extent,
use a value derived from biosbasemem, rather than a constant.  Pointed
out by Chris Demetriou <cgd@netbsd.org>
1997-07-08 17:55:44 +00:00
veego
34915ccca5 Sync. 1997-07-08 17:20:30 +00:00
kleink
96914606be From sun3:
Correct handling for Trap #2 in SunOS executables,
 now that we know it is supposed to flush the cache.
 (Was thought to be "some obscure FPU operation".)
1997-07-08 16:56:31 +00:00
veego
5e57562634 New adosfs lkm, which will only be build on the Amiga. 1997-07-08 16:46:24 +00:00
veego
91a6533462 lkm for the adosfs. From Matthias Scheler in pr#3726 1997-07-08 16:44:49 +00:00
perry
42e0f38878 Close pr-2333 from hwr@pilhuhn.de by noting that the install/upgrade
floppy only groks wd[01] and sd[012] so you shouldn't put install sets
on high numbered drives.
1997-07-08 15:55:12 +00:00
christos
44b323ecef PR/3837: Enami Tsugutomo: Incorrect printf format.
(use %p not %x to print pointers)
1997-07-08 14:23:54 +00:00
kleink
c2b4ef7d65 Fix a masking botch from last commit; make this more intuitive. 1997-07-08 09:11:29 +00:00
mikel
8bbb2dbf1c check geometry string more carefully; from Enami Tsugutomo in PR bin/3809.
free string from rawdevice(); part of Enami's PR bin/3810
include <unistd.h> for close() prototype, prototype config(), and
  other misc. cleanup
1997-07-08 06:37:16 +00:00
mrg
02e5531ec7 put back IPFILTER_DEFAULT_BLOCK, as documented in options(4). 1997-07-08 05:54:02 +00:00
christos
58564b9a61 Fix another typo: falsticker -> falseticker. 1997-07-08 05:07:47 +00:00
mikel
abbcc05d81 avoid last.temp filename collision by using rel-suffix;
from Scott Stevens <s.k.stevens@ic.ac.uk>
1997-07-08 05:01:15 +00:00
mikel
e513e4a964 include release suffix when reporting update times; from my PR bin/1344. 1997-07-08 04:37:11 +00:00
christos
2b0c0d95ab Make this work for SETUIDSCRIPTS:
- include <sys/stat.h> for S_ISUID, S_ISGID
- fix bug where shortcut to fail would use uninitialized variables.
- elide other warnings.
1997-07-08 02:32:02 +00:00