mark
e75becbba3
Initial commit of proper [fs]uword() and associated functions. This
...
replaces fusu.c which comtained horrible stubs to things like copy{in,out}().
1996-08-21 19:37:43 +00:00
mark
663aa7fac0
Removed the #if notyet guards as this code now works.
...
Optimised the imsw16() and outsw16() functions by using ldm and stm
instructions.
1996-08-21 19:19:44 +00:00
cgd
fb6d196140
fix up for new libkern path specs
1996-08-21 19:18:47 +00:00
mark
caddfcc9e1
Make sure we have at least 1 rtc device configured otherwise
...
inittodr() and resettodr() will not work.
1996-08-21 19:07:19 +00:00
mark
88331f5ddc
Removed debugging/diagnostic tracebacks. We have DDB now so can traceback
...
from there after the panic.
Guarded several checks with #ifdef DIAGNOSTIC
1996-08-21 19:04:17 +00:00
cgd
2d7e005418
add COMPAT_12 to all configs
1996-08-21 16:25:05 +00:00
cgd
78b0ddd68b
wrap a debugging printf in NEW_PMAP
1996-08-21 15:54:18 +00:00
cgd
c8fbe2de87
PSL_IPL_HIGH -> ALPHA_PSL_IPL_HIGH
1996-08-21 15:53:26 +00:00
jonathan
acebbfc2bd
Fix sfbinit() call to pass four arguments, not three, matching the
...
signature in sfb.c, which was changed to support multiple sfb devices.
1996-08-21 14:02:48 +00:00
cgd
137c61ba70
OLD_PMAP -> NEW_PMAP
1996-08-20 23:18:44 +00:00
cgd
04bac6838f
OLD_PMAP -> NEW_PMAP. also, fix bug where i wasn't disabling
...
all reporting of correctable errors on startup, but rather was
just clearing all outstanding correctable errors.
1996-08-20 23:16:27 +00:00
cgd
645fb5dd99
lots of debugging printf flags, serious clean, add pmap_{,de}activate()
1996-08-20 23:08:08 +00:00
cgd
00c4aefc1a
add a bunch of printfs for NEW_PMAP
1996-08-20 23:05:10 +00:00
cgd
a6ff68785e
add cached dirbase PFN, protos for pmap_{,de}activate()
1996-08-20 23:02:59 +00:00
cgd
0a50735abb
OLD_PMAP -> NEW_PMAP
1996-08-20 23:02:30 +00:00
cgd
8bc62db31e
K0SEG_END is inclusive
1996-08-20 23:02:17 +00:00
cgd
488b657b68
OLD_PMAP -> NEW_PMAP
1996-08-20 23:00:24 +00:00
cgd
e59fad87f5
OLD_PMAP -> NEW_PMAP
1996-08-20 22:38:26 +00:00
cgd
e4ff992e15
allow dots in names (but not at start of names), so that
...
GENERIC.PROF gets built.
1996-08-20 22:28:37 +00:00
cgd
33d6183e0f
kill OLD_PMAP, since it now takes 'NEW_PMAP' to get the new pmap code.
1996-08-20 22:25:16 +00:00
cgd
68f23ebb4d
kill 'microcode' Makefile.inc include, define CWARNFLAGS with ?=.
1996-08-20 22:23:01 +00:00
cgd
8bdeec7c79
switch 'old_pmap' option to 'new_pmap', since getting the new pmap code
...
is going to take a while...
1996-08-20 22:20:07 +00:00
cgd
d7083cda8d
update so that SYSCALL_DEBUG works again. s/nosys/sys_nosys/g.
...
(It must not have been used for a long time!)
1996-08-20 22:00:36 +00:00
ragge
1c367d4761
Modify bus code arguments. Cleanup.
1996-08-20 14:19:41 +00:00
ragge
2e489636e4
Use common routine to map in pages before DMA'ing.
1996-08-20 14:15:04 +00:00
ragge
c5db4b8756
Support for cmi bus on 11/750.
1996-08-20 14:13:50 +00:00
ragge
34d020edd2
Change uba* functions to take pointers, rather than uba unit numbers.
1996-08-20 14:07:33 +00:00
ragge
1be0c00cf0
Add another parent bus for 11/750 (cmi). remove mtc.c.
1996-08-20 14:05:16 +00:00
ragge
9f1148c9c4
Use the same device driver for both uda and mtc. Actually, the only
...
difference is vcid. The unit names must differ, so that it is possible
to distinguish them at autoconf time.
1996-08-20 13:49:15 +00:00
ragge
3a504ef134
Modified to get cleaner match/attach code for different parent buses.
...
Fix so that resource wait queueing works.
Changed all functions to take a pointer to uba_softc instead of unit
number, except for ubareset(). This must be done later.
1996-08-20 13:37:57 +00:00
oki
b4ffdaad58
Oops, added forgotten "-". closes port-x68k/2706.
1996-08-19 17:22:14 +00:00
cgd
eb9c65ce77
add a version of GENERIC which is always compiled with
...
profiling enabled. (named the same as what GENERIC kernel
would be named if configured with config -p, which would end up
generating the same kernel as this.)
1996-08-19 04:53:24 +00:00
cgd
15f9c59baf
check in the code used to build the kernel that Andrew Gallatin used to
...
figure out the correct IRQ for the ethernet on the AlphaStation 500.
That code is enabled via KN20AA_BOGUS_IRQ_FROB (but hopefully won't be
needed any time soon, and won't link w/o slight changes to other code).
Basically, when establishing an interrupt that we don't know what to
do with, prompt the user for what interrupt line to enable. If you
get stray interrupts when you try to use the device (but not before),
then you've got the right line.
1996-08-19 04:28:25 +00:00
cgd
3c7eaa04e2
fix typo in comment
1996-08-19 04:19:01 +00:00
cgd
b4bfcf063f
21040 ethernet chip on AlphaStation 500 lives in slot 6 (a slot not
...
found on the AlphaStation 600), and interrupts on interrupt line 13.
Thanks to Andrew Gallatin for booting a test kernel 32 times (trying
each interrupt line, looking for the right one) to find this.
1996-08-19 04:14:58 +00:00
jonathan
4a1279de25
Import framebuffer drivers from 4.4-Lite2 as the root for NetBSD drivers.
...
Only change from Lite (or lite2, qv.c and qd.c do not change) is adding
NetBSD RCS ids.
1996-08-18 21:28:53 +00:00
hpeyerl
f5f1393c35
Get rid of dkn stuff. It's deprecated.
1996-08-18 17:01:53 +00:00
leo
6aab91675e
Revert to polled-DMA on Falcon.
1996-08-16 08:25:46 +00:00
jtc
a05f11b6e1
Added prototypes for memcmp, memcpy, memmove, and memset functions.
...
Added #ifdef'd out macros which map b* function calls to their mem*
equivalents.
1996-08-16 01:23:46 +00:00
jtc
030f7ba872
Added to libkern in preparation for change from b* to mem*.
1996-08-15 22:59:11 +00:00
cgd
e295ad51df
clean up stray interrupt handling a bit.
1996-08-15 22:17:44 +00:00
mycroft
312e49bad1
After processing an AST, check for another one. Pointed out by ws.
1996-08-15 15:34:03 +00:00
explorer
a9ef8aef84
This fixes a nasty little bug where traceroute (and other raw-ip sending
...
programs which attach their own header) can crash the machine. The problem
in this case was:
a variable "space" was set to the total data to copy,
len was used to remember how much to copy in this chunk (mbuf),
in one case, len = min(MCLBYTES - max_hdr, resid) but
size -= MCLBYTES;
instead of
size -= len;
Note that userland programs can still crash the machine by providing
bogus data in the ip->ip_len field I suspect. I haven't verified this,
but will soon be doing so and applying a fix of some sort. Probably
clamping the ip->ip_len value to the true packet size will be ok.
1996-08-14 05:53:18 +00:00
cgd
b3703a8fcd
oops; fix bogon in last.
1996-08-14 05:47:39 +00:00
cgd
1f675e847d
say 'stray kn20aa irq' rather than 'stray PCI irq'; former is more correct.
1996-08-14 05:45:52 +00:00
cgd
a96b24415d
fix inadvertent reordering of switch which cases by slot number but
...
is ordered by interrupt number.
1996-08-14 05:44:31 +00:00
explorer
1177a1fc69
formatting fix only
1996-08-14 05:43:35 +00:00
explorer
13659c5c84
spelling error only
1996-08-14 05:43:19 +00:00
thorpej
5404d54edb
Another %lx -> %x for ntohl()
1996-08-14 03:47:42 +00:00
thorpej
3ca11aa1ad
Fix some DIAGNOSTIC printf() formats; ntohl() provides a 32-bit quantity,
...
and should be printed with %x, not %lx.
1996-08-14 03:46:44 +00:00
thorpej
f124a6aaa9
Back out previous; this is a bigger problem than I expected.
1996-08-14 00:32:53 +00:00
thorpej
a05a1045f7
The htonl(), htons(), etc. functions return u_long and u_short. Add
...
casts to the big-endian versions of these calls so that the compiler
won't complain when they're passed as arguments to printf().
1996-08-14 00:07:35 +00:00
thorpej
d719cb7901
Inside some DIAGNOSTIC code, cast some pointer arithmetic results
...
to long to quiet the compiler.
1996-08-13 23:25:10 +00:00
thorpej
28df9248ce
Fix a typo and an error in color plane offset calculation. Submitted by
...
Konrad Schroder <perseant@hitl.washington.edu>, PR #2695 .
1996-08-13 20:52:43 +00:00
explorer
c87188f1bd
be quiet about read_subchannel. Some CD players use this to poll, and having
...
a screen filled with kernel messages isn't nice. Closes pr kern/817
1996-08-13 08:55:38 +00:00
explorer
5c3b7a7213
Fix condition where disk_unbusy may not get called
1996-08-13 08:31:31 +00:00
jonathan
1cc7b834e4
* Add declarations for MIPS-III (r4000) locore entrypoints.
...
* Add initialization code to set MIPS-III exception vector and runtime
jump-table for locore functions.
* Clean up for -Wall, pass 1.
1996-08-13 08:19:50 +00:00
chuck
c0bae2d189
sync with sparc version:
...
repair XDC_HWAIT macro to handle the fact that waithead is now
unsigned. should fix xdc watchdog timeouts noted in port-sparc
by nathanw@mit.edu .
1996-08-12 20:28:54 +00:00
chuck
cfdb99f44c
repair XDC_HWAIT macro to handle the fact that waithead is now
...
unsigned. should fix xdc watchdog timeouts noted in port-sparc
by nathanw@mit.edu .
1996-08-12 20:19:27 +00:00
mycroft
1eba3fc001
Use to build `makemodes'.
1996-08-12 00:57:35 +00:00
mycroft
558d72128e
Put into . Remove hooks for `config-dependent' and
...
`device-driver' flags.
1996-08-12 00:51:24 +00:00
mycroft
88578318ca
Remove the only use of `config-dependent', as it isn't actually needed.
1996-08-12 00:16:25 +00:00
jonathan
99b43cc2bc
* Apply LOCORE -> _LOCORE change so locore.S doesn't #include struct
...
definitions.
* Include <mips/cpuregs.h> in <cpu.h> so kern_clock.c has user/kernel
status bits in scope. Still needs work; r2k/r4k previous-mode bits
are different.
* Include <mips/mips_param.h> in pica/include/param.h, for locore declarations,
and definitions of vm and other constants that should be shared across
NetBSD/mips systems to esnsure user-level binary compatibility.
1996-08-11 23:30:22 +00:00
jonathan
14bd2765a1
Fix old lint and changes not pulled back from pmax, pass1:
...
* include <mips/locore.h> where callbacks into locore are made, to get
prototypes in scope. Cast calls appropriately.
* include <mips/cpuregs.h>, not the old Sprite-derived <machine/machConst.h>.
machConst.h is deprecated.
* dk_establish() must return void, not int.
1996-08-11 22:35:46 +00:00
oki
e575454bf6
fixed kernel couldn't boot from most machines. more generic for x68k.
1996-08-11 15:37:42 +00:00
oki
33f551acdb
fixed major number of vnd and cd. (PR#2635)
1996-08-11 15:34:56 +00:00
oki
c85101f816
drive 2 (or 3) couldn't access with drive 0 (or 1). fixed this.
1996-08-11 15:32:49 +00:00
oki
95d984309f
fixed use of uninitialized pointer.
1996-08-11 15:28:36 +00:00
veego
2ca67bae05
Bring in changes from the 1.2 branch which where only in the release
1996-08-11 12:27:50 +00:00
veego
66bb4a489f
Disable the Hardwarecursor on the RetinaZ3 to solve the problems with
...
wrong mouse jumps under X11.
Remove the not working options KGDB from DRACO and GENERIC and added
an option to enable the HWC for the RetinaZ3
1996-08-11 09:48:17 +00:00
mrg
cd658e4447
oops, need to copyinstr() here. how come it worked anyway?
1996-08-11 04:05:33 +00:00
mrg
db019893b4
update sunos_sys_reboot() to actually work again.
1996-08-11 03:16:26 +00:00
mycroft
121dfd8f1b
Change PCI_MAPREG_{MEM,IO}_SIZE() to use the standard `x & -x' trick to select
...
the lowest bit set. This isn't any more or less valid according to the PCI
spec, but it deals with lame devices that don't implement all of the top
bits.
1996-08-10 15:42:33 +00:00
mycroft
5c2e33fc0a
Put back `waittime' variable.
1996-08-10 13:47:54 +00:00
mycroft
988597c420
Eliminate reference to stddef.h.
1996-08-10 09:25:11 +00:00
mycroft
118b9b478d
sys/dir.h -> sys/dirent.h
1996-08-10 09:08:26 +00:00
mycroft
3d7adb4768
sys/dir.h -> sys/dirent.h
1996-08-10 08:48:24 +00:00
mycroft
ef186dd501
Look for the sequencer code in the right place.
1996-08-10 08:45:17 +00:00
mycroft
cdfce2d74f
Theres no microcode/Makefile.inc now.
1996-08-10 08:40:53 +00:00
mycroft
035c4e9b65
Compile the sequencer statically.
1996-08-10 08:36:48 +00:00
mycroft
ed82d062fe
Use HOSTED_C_C when building the assembler.
1996-08-10 08:24:59 +00:00
veego
ee871d0972
Fixed pr#2681
...
The prototyp of adoscaseequ was right in adosfs.h
1996-08-10 07:28:49 +00:00
mycroft
cf67f29afe
* Add a HOSTED_C_C variable, which strips `-p', `-pg', and
...
`-nostdinc', and use it when building genassym.
* Use `-nostdinc' just to be sure we're self-contained.
1996-08-10 06:07:57 +00:00
mycroft
f94052ed3a
* Define CWARNFLAGS and MKDEP in some moderately consistent fashion.
...
* Make S expand to an absolute path at compile time.
* Use `-S' rather than `-x' to remove debugging symbols.
* Garbage collect unused variables.
* Reverse a handful of port-specific changes that do not correspond to
the common build model and are not needed.
1996-08-10 05:29:24 +00:00
mycroft
811315ca92
Add anchors so that only exactly `-I. is modified.
1996-08-10 04:01:29 +00:00
mycroft
9c5b0780c0
Convert the -I. to -I${.OBJDIR}, so that the `machine symlink is available.
1996-08-10 03:00:51 +00:00
mrg
72bad48e62
implement RB_STRING, derived from SunOS, via compat_sunos.
1996-08-10 00:23:14 +00:00
is
0f2514d2a0
Add manu/prod id for the DMI resolver board here. (No, no driver yet)
1996-08-09 18:18:05 +00:00
mrg
5abbf990f3
Change reboot(2) to take two arguments: bootopt like normal and also
...
a boot string for firmware that can do this, such as the SPARC and
the sun3 models. It is currently silently ignored on all other
hardware now, however. The MD function "boot()" has been changed to
also take a char *.
1996-08-09 10:30:23 +00:00
mrg
c01edc3a02
use sc_unit instead of pointer arthimetic.
1996-08-09 08:34:00 +00:00
mhitch
79fb4c0c30
Add missing #include of "ppp.h" to get definition of NPPP so that the
...
pppintr() call is actually included. This fixes ppp so that it actually
works again.
1996-08-09 05:11:02 +00:00
thorpej
6054b19d94
Add EX_NOALIGN and EX_NOBOUNDARY macros to be used as arguments to
...
allocation calls in the event the caller does not wish to utilize those
features of extent map allocation.
Suggested by Matthew Green <mrg@eterna.com.au>
1996-08-09 00:00:13 +00:00
thorpej
b276d02b9d
Fix typo, pointed out by Greg Hudson <ghudson@mit.edu>
1996-08-08 23:42:30 +00:00
mycroft
44f440543f
We dont need to pass down COMPATDIR and KERNDIR.
1996-08-08 15:15:16 +00:00
mycroft
3f0b5a641e
Run the child make in the source directory, so that nothing here needs to be
...
changed when the compile directory is outside the source tree.
1996-08-08 15:06:39 +00:00
cgd
440a942944
fix bogus returns from dec_kn20aa_intr_map(), and slightly simplify interrupt
...
mapping code. (instead of using a "slot" and multiplying by 4 and adding the
pin number later to get the IRQ, just use base IRQ value and add the pin
number.)
1996-08-07 04:33:21 +00:00
cgd
efec732f4d
fix a typo, add a function kn20aa_disable_intr() to disable a given
...
kn20aa interrupt line.
1996-08-07 04:22:40 +00:00
scottr
bfb6d245b5
Make the calculation of the PA returned by get_physical() agree with the
...
comment immediately preceding it: We have to take the most significant
"numbits" from the returned value "ph", and the rest from our addr. The
addition used previously introduced a carry which was causing great
difficulty in determining the correct PA of the framebuffer VA passed in
by the booter.
1996-08-06 04:03:33 +00:00
cgd
f160e92962
revert PCI_MAPREG_IO_ADDR_MASK and PCI_MAPREG_IO_SIZE_MASK to their old
...
values, i.e. 0xfffffffe and 0xffffffff respectively. The changed
definitions were incorrect, according to the PCI Local Bus Specification
(Revision 2.0). Further rationale and a workaround for the broken
devices that instigated the change provided in a message to
current-users@netbsd.org , dated Mon, 05 Aug 1996 22:06:58 -0400,
message ID 16773.839297218@ux2.sp.cs.cmu.edu>.
1996-08-06 02:11:25 +00:00
briggs
d2ea50dad8
Fix improperly terminated comment. Noticed by brg@dgate.org (Brian Gaeke).
1996-08-05 23:20:46 +00:00