mycroft
5de9f548a2
Give every emulation its own Makefile for the syscall table.
1996-09-03 03:18:04 +00:00
mycroft
a8fd25767d
Define execv() and execve() consistently across emulations.
...
Do path name translation.
1996-09-03 03:12:17 +00:00
mycroft
65605b0484
Fix bogus offset calculation in ibcs2_sys_read(), per PR 1804.
1996-09-03 02:44:14 +00:00
mycroft
086bf59214
Remove gratuitous insn.
1996-09-03 02:07:34 +00:00
mycroft
aeda55543b
Splice in Ignatios' bus error detection code.
1996-09-03 02:07:02 +00:00
mhitch
704caddf5f
Fix several errors when setting a color map entry for the maxine display.
...
1. Start at the specified entry instead of entry 0.
2. Use the blue value instead of the green when setting the blue color entry.
3. Don't use the starting index again for storing the saved entry - the cmap
pointer was previously initialized using the starting index. This fixes
a hard hang on the maxine when console output is done after calls to
set the color map (usually by the X server).
1996-09-02 17:35:52 +00:00
is
905db38340
Add IP multicast support as per RFC 1122 section 3.3.7 to ARCnet.
...
"The mapping of IP Class D addresses to local addresses is
currently specified for the following types of networks:
[...]
o Any network that supports broadcast but not multicast,
addressing: all IP Class D addresses map to the local
broadcast address."
1996-09-02 17:28:22 +00:00
mycroft
42f3427158
+cs8 -istrip -parenb
1996-09-02 16:27:52 +00:00
mycroft
0a59726320
Fix obvious typo.
1996-09-02 12:42:11 +00:00
mycroft
b3eac79b64
tty stop functions really should return void, not int, and certainly not both.
1996-09-02 06:43:16 +00:00
mycroft
125a8c5ce5
Add a set of generic file system operations that most file systems use.
...
Also, fix some time stamp bogosities.
1996-09-01 23:57:15 +00:00
mycroft
e1ea13d92a
Fix typo.
1996-09-01 23:54:53 +00:00
mycroft
c52352c819
Add a set of generic file system operations that most file systems use.
...
Also, fix some time stamp bogosities.
1996-09-01 23:47:48 +00:00
christos
da17295d91
Calling shmdt(2) before calling shmat(2) would crash the system because
...
p->p_vmspace->vm_shm would be NULL. Protected the rest of the cases where
that might happen too. This was the reason why sunxdoom would panic the
system in SVR4 emulation.
1996-09-01 22:53:06 +00:00
mycroft
664a66d009
Add mmap method for audio devices.
...
XXX This is just a placeholder to avoid updating conf.h again.
Also, clean up some error values.
1996-09-01 21:33:43 +00:00
mycroft
c53e1e6267
Add mmap method for audio devices.
1996-09-01 21:32:24 +00:00
mycroft
de1c962824
Don't core dump if ruid != euid or rgid != egid.
1996-09-01 01:56:10 +00:00
mycroft
80110252d0
Minor changes.
1996-09-01 00:54:34 +00:00
mycroft
91665cb6ef
General cleanup, like other drivers.
1996-09-01 00:49:48 +00:00
mycroft
70944d2e2c
Minor changes.
1996-09-01 00:20:20 +00:00
mycroft
e8b5bd5b35
Update.
1996-09-01 00:10:55 +00:00
mycroft
0c0b33c781
General cleanup, like other drivers.
1996-09-01 00:09:30 +00:00
mycroft
30a617c634
Wrap the default definition of `S' in `.ifndef'.
1996-08-31 21:40:47 +00:00
mycroft
42c80a3779
Oops. Add patterns for PCI BusLogic cards.
1996-08-31 20:43:53 +00:00
mycroft
06349d0f45
Update for BusLogic and UltraStor changes.
1996-08-31 20:39:14 +00:00
mycroft
a561952cf9
Add generic bha and uha code.
1996-08-31 20:27:55 +00:00
mycroft
44bb2d98e1
Split the UltraStor driver apart.
1996-08-31 20:26:48 +00:00
mycroft
06fdef11fd
Split the BusLogic driver apart, and rename it to `bha (like BSDi).
1996-08-31 20:18:24 +00:00
mycroft
0947abc4ec
Oops; fix typo.
1996-08-31 05:10:03 +00:00
christos
e32eb9631f
regen syscall tables
1996-08-30 23:08:21 +00:00
christos
0c1a0303ec
add obsolete stime(2)
1996-08-30 23:07:49 +00:00
christos
f8dddb3afe
add: I_FDINSERT, _I_BIND_RSVD, _I_RELE_RSVD, SI_SHUTDOWN
...
this fixes programs that use listen(2) and accept(2), and
makes unix domain sockets work both in tcp and udp.
1996-08-30 23:06:24 +00:00
mycroft
fbfd18b011
Make sure b_resid is always set before biodone().
1996-08-30 19:59:07 +00:00
thorpej
0794023752
RCS id police.
1996-08-30 17:43:56 +00:00
mycroft
ecde95b64d
clock >= tty | net | bio
1996-08-30 15:39:31 +00:00
jtk
f6fa8f12a6
change to use consistent APM_ constant names
1996-08-30 02:37:04 +00:00
jtk
f613796771
make all constants use APM_ prefix, and some other minor cleanup so that
...
this can be the sole APM include file
1996-08-30 02:36:00 +00:00
jtk
dbeeead15d
clean up includes and uses of constants so that we use one include file,
...
<i386/include/apmvar.h>
remove some files we don't need anymore
1996-08-30 02:32:13 +00:00
thorpej
164af20154
Add a missing "int" in a function declaration.
1996-08-30 01:40:35 +00:00
thorpej
9fd32a826d
Fix name conflict with boot() prototype in <sys/reboot.h>
1996-08-30 01:34:01 +00:00
mark
97c857ef9c
Initial commit of the prom interface code for VLSI RC7500 motherboards.
1996-08-29 22:35:41 +00:00
mark
bda575c253
Removed stub code for copystr(), copyinstr() and copyout() now that
...
optimised assembly versions are in place.
Added support for mounting an NFS filesystem as the root filesystem even
for generic configs.
Don't hardcode the number of spl levels use the define in psl.h
1996-08-29 22:33:24 +00:00
mark
64860a1d74
Print the instruction word for undefined instructions.
1996-08-29 22:25:26 +00:00
mark
7568e05e32
Added machine command for reporting panic related information.
...
Trap undefined instructions that are used for breakpoints for all
processors modes. If the mode was USR32 then post a SIGTRAP signal.
1996-08-29 22:23:45 +00:00
mark
2fb1f405f7
Added a new machine function to report information following a panic
...
e.g. panic string, message buffer etc. This is to aid debugging panics
following a panic while X was running as X will swallow all the panic
text.
1996-08-29 22:21:06 +00:00
mark
75a39e190b
Replaced the generic copystr() and copystrinout() functions with
...
optimised copystr(), copyinstr() and copyout() functions.
This removes the need for the copy{in,out}() stub code in stub.c
1996-08-29 22:18:09 +00:00
mark
8b3ff9c94f
Added support for NFS root and swap.
...
Define argdev here.
Fixed the interpreting of the root and swap devices passed from the
boot loader.
1996-08-29 22:08:58 +00:00
mark
468b7ec21b
Define swapdev here as all the other ports do.
1996-08-29 22:05:50 +00:00
mark
2c16eec75d
Removed declarations of swapdev and argdev. These are now defined
...
elsewhere.
1996-08-29 22:03:53 +00:00
cgd
a84c80e23c
regen for new pcidevs
1996-08-29 21:36:01 +00:00
cgd
d29b00b3c3
add entry for the IBM 82351 PCI-PCI Bridge
1996-08-29 21:34:22 +00:00
pk
686dd328c0
Faster checksumming, contributed by Zubin Dittia.
1996-08-29 20:14:49 +00:00
thorpej
c4366945e5
Quiet the ahc driver down a bit by only enabling some of less useful
...
messages #if defined(DEBUG) in the NetBSD case.
1996-08-28 23:39:40 +00:00
thorpej
33dec3a69a
Correct a comment.
1996-08-28 23:02:22 +00:00
thorpej
1a5971cc12
Renate this file; I guess I should have taken a vote :-)
1996-08-28 23:00:46 +00:00
cgd
71ad30d0e9
(1) set scsi_link channel to either the appropriate channel (if a
...
multi-channel driver), or to SCSI_CHANNEL_ONLY_ONE if a
single-channel driver.
(2) use scsiprint() rather than a locally-defined autoconfig print
function, and kill any locally-defined print function.
1996-08-28 18:59:15 +00:00
cgd
4d62c94345
add a space i forgot, for prettiness
1996-08-28 18:51:53 +00:00
cgd
11ec3588ad
(1) add a 'channel' field to scsi_link.
...
(2) in scsibusmatch, match channel as appropriate.
(3) add a scsiprint() function, to do the "scsibus at..."
and channel (if not SCSI_CHANNEL_ONLY_ONE) printing,
i.e. the common functionality that all SCSI drivers currently
should be doing.
1996-08-28 18:47:51 +00:00
cgd
0f3dafde2e
add an optional 'channel' keyword to the 'scsi' interface attribute
...
(defaults to -1, a.k.a. SCSI_CHANNEL_UNKNOWN).
1996-08-28 18:44:53 +00:00
cgd
a4bb0a41da
define PDQ_ASSERT directly in terms of __assert, because cpp doesn't seem
...
to do:
#define foo(x) ...
#define bar foo
like we'd like it to.
1996-08-28 16:01:29 +00:00
thorpej
4deb6e56b8
Kernel configuration for "NetBSD1", NetBSD.ORG's new mail server.
...
(This would be a good reference kernel for others setting up network
server systems...)
1996-08-28 07:17:58 +00:00
mrg
f4bfba2364
add compat svr4 and sunos modules. the sunos module will not work
...
very well due to places in the kernel using COMPAT_SUNOS (this may
also be true for svr4).
1996-08-28 06:17:23 +00:00
jonathan
703e546127
Add mrg's "options COMPAT_12" back into the trunk.
1996-08-28 05:50:59 +00:00
jonathan
18db5ea067
* Rename miniroot GENERIC kernel to GENERIC
...
* Add changes needed/used to build 1.2 GENERIC kernel:
* Delete obsolete and ambiguous DS5000 option.
* Add CPU_R3000 which is now required to compile in mips1 locore support.
* Add an explicit declaration of HZ.
* back out COMPAT_12 for this revision.
1996-08-28 05:49:35 +00:00
mrg
358f853f46
re-order to allow NBPG/PGSHIFT/PGOFSET to work always.
1996-08-28 03:01:27 +00:00
explorer
97227d64b3
find ../sys relative to src dir, not obj dir
1996-08-27 23:42:01 +00:00
cgd
2a73ef60b7
change cfprint_t type definition to take a const char *, rather than
...
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).
1996-08-27 21:53:46 +00:00
thorpej
db75d73b4c
sbappend() -> sbappendrecord(); fixes SNAP encapsulation on NATM sockets.
...
From Matthias Drochner <drochner@zelux6.zel.kfa-juelich.de>.
1996-08-27 21:45:21 +00:00
explorer
576f04f8b1
Clean up some unneeded Makefile variables
1996-08-27 21:44:32 +00:00
thorpej
dbe7ffa007
Add support for AAL5 datagram sockets.
...
From Matthias Drochner <drochner@zelux6.zel.kfa-juelich.de>.
1996-08-27 21:37:29 +00:00
cgd
f8ed933394
implement realloc(), just like the user-land version, except it takes
...
"type" and "flags" arguments a la kernel malloc().
1996-08-27 20:01:42 +00:00
cgd
2c47809239
include <sys/systm.h> for printf prototype
1996-08-27 16:28:08 +00:00
cgd
00209d1db1
remove include of <sys/types.h> (it's implied by including
...
<sys/param.h>, and historically has been), and add include of
<sys/systm.h> for prototypes.
1996-08-27 16:24:18 +00:00
jonathan
73a5d45710
* Add initialization of colourmap array when using mfb as a console.
...
* Add interrupt handler for 3MIN, where we cannot disable TC slot interrupts.
* Change mfbinit() signature to match other (pmax) TC framebuffer init
routines.
* TODO after 1.2: add {cfb,mbf,sfb}var.h. Declare init functions there.
1996-08-27 02:32:48 +00:00
cgd
de2285c4d2
#undef assert before defining it, so the new libkern definition doesn't
...
conflict with this one.
1996-08-27 01:00:00 +00:00
cgd
5c7192b20c
Including user-land headers in kernel code is not allowed in NetBSD.
...
Therefore:
(1) define offsetof here, and
(2) implement assertion checking in terms of the libkern
assertion-checking macros.
1996-08-27 00:51:29 +00:00
cgd
bdbfa48c0b
Add machine-independent assertion-checking support. macros are:
...
assert() which always does assertion checking
unless "NDEBUG" is defined.
KASSERT() which does assertion checking if DIAGNOSTIC
is defined.
KDASSERT() which does assertion checking if DEBUG is
define. This macro exists for compatibility
with existing ports' assertion checking macros.
(Assertion checking is not typically an
"expensive" operation, and DIAGNOSTIC should be
used for inexpensive consistency checks.)
1996-08-27 00:44:20 +00:00
cgd
d32f475ed4
regen for new tcdevs
1996-08-26 23:41:46 +00:00
mrg
b8e9f36083
add COMPAT_12.
1996-08-26 23:39:36 +00:00
cgd
3076d34c84
add entries for DGLTA-FA and OTTO ATM boards, alphabetize and clean up
...
other entries.
1996-08-26 23:39:34 +00:00
mrg
4daafadec3
add COMPAT_12.
1996-08-26 23:39:21 +00:00
thorpej
07e59e34e8
Regen; syscalls.master changed.
1996-08-26 22:52:17 +00:00
thorpej
b0f977ee6b
Implement sunos_sys_execve(). The previous code simply called
...
sys_execve() without doing an alternate patch check, which was
incorrect. Bug pointed out by Krister Walfridsson <cato@df.lth.se>
on port-sparc@NetBSD.ORG .
1996-08-26 22:49:43 +00:00
cgd
6b5b72905d
regen for new pcidevs
1996-08-26 20:20:02 +00:00
cgd
8080fdf200
add ids for the PGXGB (TGA2), and DGLPB (OPPO).
1996-08-26 20:12:16 +00:00
scottr
7dff0aa247
After servicing an interrupt, check to see that there's not another
...
one pending before we clear the interrupt flag. This avoids a condition
where the line appears to go catatonic (which is particularly easily
triggered by pppd). From Bill Studenmund <wrstuden@loki.stanford.edu>.
XXX - we should probably log this if it gets excessive.
1996-08-26 14:09:19 +00:00
thorpej
2d88fe9293
Old-style disk instrumentation is long gone, buster!
1996-08-26 06:47:42 +00:00
thorpej
3eaf7130d9
Update for structure member name changes made in the MI code.
1996-08-26 06:39:03 +00:00
jtk
b86b695240
add Advanced Power Management driver
...
Includes bootstrap support from FreeBSD (Tatsumi HOSOKAWA and <ukai>)
1996-08-25 23:38:57 +00:00
thorpej
7e7c76ba78
Correct mistakes similar to those made in cgfour.c: Log message from
...
cgfour.c:
Fix a typo and an error in color plane offset calculation. Submitted by
Konrad Schroder <perseant@hitl.washington.edu>, PR #2695 .
1996-08-25 07:47:34 +00:00
thorpej
a90c2638f0
Add the United Kingdom and Swedish HIL keyboard maps to the kernels
...
used in the binary snapshots.
1996-08-25 01:22:13 +00:00
leo
4c996d1a2a
Fix a compiler error.
1996-08-23 20:06:29 +00:00
leo
2df99561c9
- Make the Hades a valid machine type
...
- Add some 68040 specific prototypes.
1996-08-23 11:21:01 +00:00
leo
0f6a2c3cef
- Make all definitions relative to 'stio_addr'
...
- Add the PCI areas.
1996-08-23 11:17:00 +00:00
leo
3a68f68754
Don't use an absolute I/O adress.
1996-08-23 11:14:59 +00:00
leo
26039da980
Fix some compiler warnings.
1996-08-23 11:12:51 +00:00
leo
dd183a092a
Recognize the Hades as a valid machine type.
1996-08-23 11:11:51 +00:00
leo
d546be9627
Make the fpu config info print somewhat nicer.
1996-08-23 11:10:10 +00:00
leo
6ab410f919
- Make it compile & work for the 68040
...
- Map the various I/O areas just below Sysmap
- Cleanup a bit
- Fix machine-type detection to recognize the Hades.
1996-08-23 11:07:56 +00:00
mrg
3b78ac59ad
Update these to build in a consistant manner, and not assume /sys, etc.
...
Should work with obj dirs but not heavily tested.
1996-08-23 05:38:53 +00:00
cgd
3c435c25c4
regen for new pcidevs
1996-08-23 04:36:41 +00:00
cgd
6269a2a911
add an entry for the FORE PCA-200e
1996-08-23 04:35:41 +00:00
cgd
b9a7acad48
define a new frame buffer type code for the TGA2
1996-08-23 00:50:25 +00:00
thorpej
9221f4ecc6
Add COMPAT_12 to all kernels, and COMPAT_11 to a few as well.
1996-08-22 21:02:49 +00:00
explorer
f190d66387
Add the lkm stuff I've been working on to the tree.
...
This mostly works -- see the README file in sys/lkm for more information
on what does and doesn't. I'm putting this in here mainly to help speed
development and such to make this useful sooner.
1996-08-22 20:18:07 +00:00
jonathan
562faf95ac
Re-apply to the trunk a change that was misapplied to 1.2 release branch:
...
>apply old name change, MachEmptyWriteBuffer -> wbflush()
1996-08-22 04:37:41 +00:00
jonathan
eb75b94621
Re-apply change that was misapplied to 1.2 release branch to trunk:
...
>Cosmetic changes to pass -Wall -Wstrict-prototypes -Wmissing-prototypes:
> * remove inline prototypes for keyboard redirection,
> include {dc,scc,dtop}var.h files instead.
> * add prototype for rcons_connect().
>
1996-08-22 04:29:43 +00:00
jonathan
9a8c8b9858
* the 3MIN does not mask non-enabled TC interrupts, and the SFB generates
...
a vertical-blank interrupt. Add a handler to clear the interrupt, and
establish that handler if running on a 3MIN.
1996-08-22 04:17:23 +00:00
mark
4be6fcfb6e
Only disable IRQs during cpu_switch(). FIQs can be left activeas they cannot
...
interfere with a context switch.
Fixed several comments.
1996-08-21 20:29:19 +00:00
mark
4522daecc9
Added defines for more proc structure fields (used by the FPE).
1996-08-21 20:26:41 +00:00
mark
7b0a0c0a24
Initial commit of the NetBSD/arm32 kernel TODO list.
1996-08-21 20:25:04 +00:00
mark
9d18e41fd8
No longer need the relocation function arm_fpe_mod_reloc() as this is now
...
sorted out at link time.
fpe_arm_header is now the header structure for the fpe and no longer
a pointer to a header structure.
1996-08-21 20:21:05 +00:00
mark
7b8910c01d
Vastly simplified the FPE stubs code now that there are labels for all the
...
core entry points. i.e. the linker does the work rather than the stub code.
Optimised transferring the trapframe between UND32 and SVC32 mode stacks
in the fpe_post_proc handler.
Added experimental code to handle must of userret in UND32 mode. This means
that the copy of the trapframe and the switch to SVC32 mode is only needed
if mi_switch() has to be called. (This saves a vast number of pointless
trapframe copies).
1996-08-21 20:16:30 +00:00
mark
3142731d09
Re-written FPE core header.
...
Added branches relative to the start of the module and labels to the various
entry points.
All other offsets are now relative to _fpe_arm_start.
This removes the need for boot time relocation of the FPE.
1996-08-21 20:10:04 +00:00
mark
e37583ac84
Removed the prototype arm_fpe_mod_reloc().
1996-08-21 20:06:26 +00:00
mark
66d9ef4edb
Updated with more info on the ARM7500 IOC/IOMD.
1996-08-21 20:00:50 +00:00
mark
9c8e5632da
Replaced arch/arm32/arm32/fusu.c with arch/arm32/arm32/fusu.S
...
Added new iomd device.
1996-08-21 19:56:00 +00:00
mark
45bd77d893
Initial commit of a new iomd device. This device manages IOMD devices
...
for all ARM processors.
1996-08-21 19:53:21 +00:00
mark
64c91a1cc3
Report EASI space timings when probing the podule bus.
1996-08-21 19:46:47 +00:00
mark
e8f3059a07
Define EASI space cycle types.
...
Added macro for setting the EASE space cycle time for a podule.
1996-08-21 19:44:53 +00:00
mark
e53ec9745b
Updated to work better with the new assembly functions like fuswintr().
...
Removed calls to traceback() as this info can be obtained via DDB after
a panic if needed.
1996-08-21 19:42:36 +00:00
mark
165dc50b4c
This file can be removed now that the stubs functions it contained have
...
been replaced with proper assembly version in fusu.S
1996-08-21 19:38:39 +00:00
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