thorpej
2c35c7bd03
Only declare block major numbers for devices which can be the root device.
1999-06-07 20:31:27 +00:00
thorpej
d76e7b8c6d
Don't pass a nam2blk around at all; just have setroot() and friends reference
...
dev_name2blk[] directly. Addresses PR #7622 (ITOH Yasufumi), although
in a different way.
1999-06-07 20:16:08 +00:00
briggs
6e95146ec6
Raise spl4 to spl6 in quick_go--I am now experimenting with interrupts
...
at levels 5 (sound) and 6 (via1) on the Q700.
Raise splhigh when reading and writing registers. It's ugly, but it's
possible that we could get an interrupt from a higher-level source,
causing a re-read of a memory location.
This is not good when, e.g., we are reading the interrupt register.
Ideally, we would just raise splhigh() in ncr53c9x_readregs(), but
that's m.i. code, and it may be expensive on other architectures.
1999-06-01 03:40:12 +00:00
briggs
0ff3b0087c
Add debug routine as an aid for working out new nubus cards.
1999-06-01 03:26:42 +00:00
briggs
5e28d99a64
Add define for another ethernet card (Nuvolink)
...
Wrap nubus_scan_slot() prototype in #ifdef DEBUG.
1999-06-01 03:24:25 +00:00
briggs
42d2797a4b
Comment out DISABLE_EXT_CACHE as it unnecessarily slows down the IIci
...
w/ external cache. Leave it around so the paranoid can still use it.
1999-06-01 02:39:25 +00:00
briggs
f3d8507abd
PR 7021 from Yoshihisa Sugimoto <sugimoto@sums.shiga-med.ac.jp>:
...
Clear interrupt properly on the RasterOps 24XLTV. Same as the 24LX.
1999-05-30 21:43:19 +00:00
thorpej
beb8d06638
Generally update the comment above vunmapbuf().
1999-05-26 22:19:33 +00:00
thorpej
a2d06a4721
Generally update the comment above the vmapbuf() implementations.
1999-05-26 22:07:36 +00:00
thorpej
2580d306ab
Change the vm_map's "entries_pageable" member to a r/o flags member, which
...
has PAGEABLE and INTRSAFE flags. PAGEABLE now really means "pageable",
not "allocate vm_map_entry's from non-static pool", so update all map
creations to reflect that. INTRSAFE maps are maps that are used in
interrupt context (e.g. kmem_map, mb_map), and thus use the static
map entry pool (XXX as does kernel_map, for now). This will eventually
change now these maps are locked, as well.
1999-05-26 19:16:28 +00:00
thorpej
cba22525ce
Fix some broken packet length checks. Really (no, I mean really) works now
...
after the ether_input() changes -- tested on my Quadra 650.
1999-05-24 21:53:42 +00:00
thorpej
e8beb9bbe8
Make this compile again.
1999-05-24 18:40:48 +00:00
thorpej
ed4224c64e
Fix a couple of problems from the ether_input() change:
...
- Make it compile again, with BPF.
- Don't subtract the Ethernet header length from the total packet length.
- Copy the alignment fix from sys/dev/ic/i82586.c (though the m68k shouldn't
really be affected).
1999-05-21 21:48:28 +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
thorpej
f98d358a1f
Rework layer 2 protocol input routines. Instead of calling e.g. ether_input()
...
directly, call the function pointer (*if_input)(ifp, m). The input routine
expects the packet header to be at the head of the packet, and will adjust
as necessary. Privatize the layer 2 input and output routines, allowing
*_ifattach() to set them up as appropriate.
1999-05-18 23:52:51 +00:00
scottr
2f5a40c966
From Yasuhiro Endoh: Performa 58x uses ADB soft poweroff.
1999-05-15 19:29:12 +00:00
nisimura
7a50b38cbd
- Adjust descriptive comment of cpu_fork() which returns nothing and
...
returns once.
- Minor fixes in mips/vm_machdep.c.
1999-05-14 02:11:59 +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
kleink
6290fed1b6
SVR4-related typo in previous.
1999-05-06 14:16:07 +00:00
scottr
0179750b00
Correct two more problems of the same type as in rev 1.21: use the length
...
of the buffer you're copying from as the loop interator, not the length
of the buffer you're copying to. Also, rewrite print_single() with
pointer instead of array operators. Appears to correct some ADB-related
`hangs' during autoconfig.
1999-05-06 06:01:27 +00:00
scottr
a4adbf2f86
Move initialization of the iomem extent struct from mac68k_set_io_offset()
...
to mac68k_init(), so that we're through frobbing the MMU in special ways
by the time we get there. While it doesn't actually cause a problem with
the current structure of our initialization code, it probably would have
in the future.
1999-05-03 19:10:54 +00:00
scottr
b997ba8fa3
g/c some useless calculation on avail_remaining after its last reference.
1999-05-02 17:26:14 +00:00
scottr
2f45ab494c
Remove a (harmless) duplicated line.
1999-05-02 17:23:07 +00:00
scottr
009cda3fb2
Fix a problem with bounds_check_with_label(), noted by Greg Oster: we
...
had been returning (-1) as an error instead of 0. This is the result of
not keeping up with its i386 ancestor, which it was originally derived
from back in 1993. Re-sync.
1999-05-01 09:26:32 +00:00
scottr
9e69eadd92
Rewrite read_mac_label() and friends, simplifying the code considerably
...
in the process. Less is truly More.
1999-05-01 09:12:47 +00:00
christos
d27f70c075
Include opt_compat_sunos.h
1999-04-29 16:22:03 +00:00
kleink
e1529b8f93
Pull in the right generic m68k header. (Where was my mind?)
1999-04-29 14:38:39 +00:00
scottr
eb910c35ce
From Ken'ichi Ishizaka: correct the calculation of the frame buffer
...
offset by masking off garbage bits in the DAFB v7. This has been
tested at all resolutions and common color depths on the LC47x.
1999-04-28 05:24:08 +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
simonb
5d8b1ef3e4
g/c REAL_CLISTS.
1999-04-25 02:56:26 +00:00
ender
e544636cde
Disable ASC interrupt enabling for now. We don't currently use it, and
...
it seems to be causing hangs at attach time on LCII's.
1999-04-22 18:00:34 +00:00
chs
05b971dd5f
in pmap_pageable(), rather than marking a PT page as not modified
...
to trick the pagedaemon into freeing it later, just unmap the page
and free it immediately. fixes PR 7337.
1999-04-22 04:24:52 +00:00
scottr
136972df3a
Actually, the last change solved a different but related problem than
...
the one mentioned in PR 7376. By clearing the display in iteon()
instead, we can kill both birds with the same stone.
1999-04-21 06:00:07 +00:00
scottr
48ff49fee0
When attaching the ite console, clear the entire display rather than assuming
...
that the emulator will do it for us. (The emulator will only clear
full character-sized rows.) Incidentally fixes PR 7376.
1999-04-21 05:18:17 +00:00
kleink
ed74932033
Add COMPAT_SVR4 for m68k.
1999-04-19 21:22:56 +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
scottr
d6fd16c828
vm_size_t -> vsize_t
1999-04-07 06:45:14 +00:00
scottr
fd295b15e1
Turn avail_next, avail_range, and avail_remaining into local variables. Also,
...
change vm_size_t -> vsize_t.
1999-04-07 06:14:33 +00:00
scottr
466895623f
Cleanup: GC unused externs, and some KNF.
1999-04-07 05:59:14 +00:00
pk
c40eb1cd97
Fix a pasto in copyright text which has been procreating like rabbits..
1999-04-06 20:09:18 +00:00
scottr
e169535fc2
Include zsc.h so that SCC soft interrupts have a chance. Fixes PR 7313.
1999-04-06 05:55:06 +00:00
scottr
dc9ec7ace3
Sync with hp300.
1999-04-06 04:04:45 +00:00
scottr
fdd8445219
Prototype kvtop() here.
1999-04-06 03:40:23 +00:00
scottr
bc071709f2
Pull in the many and various hp300 pmap changes that Jason's done
...
so far this year. There are very few appreciable differences left
between this code and the hp300 version.
1999-04-05 06:34:01 +00:00
thorpej
967b8c433c
Don't call configure() from cpu_startup().
1999-04-01 00:17:45 +00:00
scottr
0848c89c55
The last change wasn't quite enough to build libc during a 'make build'.
...
Bump DFLDSIZ, too.
1999-03-31 14:58:15 +00:00
scottr
9c8f206e65
Bump DFLSSIZ so that we can build libc.so.*, and limit MAXSSIZ independently
...
of MAXDSIZ.
1999-03-31 06:53:56 +00:00
scottr
9506e86204
This file is no longer used by anything.
1999-03-27 06:13:51 +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
briggs
f4647f0ec7
Compile itecnputc if NZSC == 0.
1999-03-27 05:53:05 +00:00
scottr
5e3349678a
Update from Hauke to resolve some relatively severe performance problems.
1999-03-27 05:45:19 +00:00
briggs
b15dc3ed17
Only handle SIR_SERIAL if NZSC > 0.
1999-03-27 05:21:20 +00:00
briggs
f41bf819c2
Allow this to compile if NZSC is 0.
1999-03-27 05:19:34 +00:00
briggs
b056247aa9
Make this compile again--pass access_type just the same as prot.
1999-03-27 05:01:28 +00:00
mycroft
9affa543a5
Oops; forgot to change some pmap_enter() calls.
1999-03-27 03:34:08 +00:00
wrstuden
8a4ca40c65
Enable pps support, only if CLOCAL set & MDMBUF clear and no clock present.
1999-03-27 01:17:03 +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
ender
85974131bd
Include uvm/uvm.h instead of uvm/uvm_extern.h because we need the prototype
...
for uvm_unmap() in order to compile a kernel with GRF_COMPAT defined.
Fix provided by Frederick Bruckman <fb@enteract.com> in PR #7237 .
1999-03-26 22:52:15 +00:00
ender
4533a22d80
NetBSD/mac68k installation kernel config
1999-03-26 08:42:49 +00:00
ender
235abbff06
Garbage collect a bit of old VM missed by the initial pass.
...
Fix supplied by Dave Huang <khym@bga.com> in PR #7226 .
1999-03-24 22:28:49 +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
wrstuden
a7678930b4
Oops. mac68k does NOT use PCLK as a clock source, so don't enable it in
...
the default channel setup.
1999-03-23 17:55:03 +00:00
scottr
4982fb8fdb
Fix an obscure bug in send_adb_cuda() found be comparison with
...
the macppc version.
1999-03-18 09:10:19 +00:00
chs
ab7269f62a
if uvm_fault() fails with KERN_RESOURCE_SHORTAGE, send a SIGKILL
...
and print a message about it. this will be used to recover from
out-of-swap conditions.
1999-03-18 04:56:01 +00:00
sommerfe
bc533621ed
defopt MINIROOTSIZE
1999-03-17 18:59:21 +00:00
minoura
e518820ca8
Pullin m68k/ieee.h.
1999-03-15 11:55:53 +00:00
perry
d446fb449c
exterminate ovbcopy. patches provided by Erik Bertelsen, pr-7145
1999-03-12 22:42:30 +00:00
scottr
2ea6ea5db5
Add the PowerBook 170 to what appears to be the correct
...
class of systems, based on the Apple dev notes for this system.
1999-03-05 06:45:41 +00:00
scottr
44a3f70740
Remove ADB_DEBUG; it's not fatal, but it adds a bunch of code that's
...
disabled by default.
1999-03-05 06:33:18 +00:00
scottr
e640c5d7cc
Move all IPL setup to intr.c, and do some sanity checking.
1999-02-28 04:52:07 +00:00
scottr
d32ed292af
defopt BUFCACHE and BUFPAGES.
1999-02-27 06:39:34 +00:00
scottr
21c8d6ed43
Fix tyop in last.
1999-02-27 05:28:35 +00:00
scottr
c1037ea51f
Support the BUFCACHE option.
1999-02-27 03:26:09 +00:00
is
19d0a457aa
oops. void->int
1999-02-26 22:55:33 +00:00
is
f71d843a65
synchronize types, and s/curproc/p/ in one forgotten place
1999-02-26 22:37:57 +00:00
is
84971e3a6f
mac68k part of pr 6152 fix, and missing bits for the others
1999-02-25 23:13:39 +00:00
scottr
cc6252b08b
Handle RB_POWEROFF appropriately.
1999-02-20 10:00:37 +00:00
scottr
66477a6be5
Rename via_shutdown() to via_powerdown() for clarity and consistency.
1999-02-20 09:57:35 +00:00
scottr
1bd69f0915
Er, function prototypes don't belong in fooreg.h.
1999-02-18 07:50:54 +00:00
scottr
9da0e1f5c5
First cut at a floppy disk device driver, for IWM and IWM-compatible
...
controllers. Supports GCR-encoded disks only (400K and 800K); neither
of the 1.44M formats will work until someone figures out how to drive
the SWIM and its descendants.
This code was written by Hauke Fath, and had only minor touchup (mostly
KNF) by me.
1999-02-18 07:38:26 +00:00
scottr
afb76cc809
Add the IWM driver.
1999-02-18 07:35:07 +00:00
scottr
1f3b03f6cd
Add support for the IWM driver.
1999-02-18 07:32:56 +00:00
scottr
867a930654
Minor space-tab KNFing.
1999-02-18 07:16:17 +00:00
scottr
928c2f86e0
Fix a typo in the (unused!) splsched() macro.
1999-02-17 04:46:45 +00:00
ender
e0a4cb2335
Add NetBSD RCS Id's
1999-02-16 01:08:16 +00:00
mycroft
2a304686e6
Minor cleanup.
...
Make the initializer for BAUDLO depend on PCLK directly; it was incorrect on
some ports where PCLK is not 4.9152MHz.
XXX Is the default value actually used?
1999-02-11 15:28:03 +00:00
ender
25e1f69c42
o Change various attach arg and softc datatypes to ints.
...
o Use explicit typecasts when interfacing with MRG data
Should fix port-mac68k/6839. Patch supplied by
Frederick Bruckman <fb@enteract.com>
1999-02-11 06:41:07 +00:00
kleink
f69591d12d
Use of casts as lvalues is a GNU C extension; rearrange slightly.
1999-02-10 17:03:26 +00:00
mycroft
be1af660c0
Don't set DCD_IE in the frontends. KGDB doesn't even use DCD, and the tty
...
frontends get it from zsparam() anyway.
1999-02-03 20:25:05 +00:00
scottr
7bc05635d3
Catch up with changes to MBR handling. From Erik Bertelsen in PR 6911.
1999-01-30 17:34:31 +00:00
thorpej
af39050d19
Use MBR_MAGIC defintions in <sys/disklabel_mbr.h>
1999-01-27 21:20:18 +00:00
thorpej
cb8268a3a5
Use <sys/disklabel_mbr.h>.
1999-01-27 21:00:05 +00:00
mycroft
082204fa3d
Standardize format.
1999-01-22 14:12:07 +00:00
thorpej
2fb041ce0a
No need for <sys/mtio.h>
1999-01-19 18:18:41 +00:00
scottr
d51a8c71b9
Need bswap.h for the bswap32() prototype. From Steve Allen
...
in PR 6846.
1999-01-19 15:41:03 +00:00
scottr
2159f8a301
Add support for the Contour 3-button mouse, inadvertantly missed
...
in the ADB split a few months back. Noticed by Takashi NAKAMURA.
1999-01-16 22:49:37 +00:00