Commit Graph

18026 Commits

Author SHA1 Message Date
pk
cf93b65b10 Print version prettier. 1999-03-02 13:41:03 +00:00
pk
e2909faa19 Sanatize consinit() a bit. 1999-03-02 13:40:05 +00:00
jonathan
74c847de33 Fix up eliding nested interrupts. 1999-03-02 12:23:58 +00:00
dbj
e7058e7205 turn on diagnostic check in dma for controller bits at shutdown.
adjusted esp overrun to avoid diagnostic check triggering.
1999-03-02 12:11:24 +00:00
jonathan
19ad1c6c19 Re-enable 3MIN clock intrs after servicing. Prepare to do same for ttys. 1999-03-02 09:37:35 +00:00
jonathan
004971519d Do callouts for IOCTL asic lance interrupts before SCSI callouts. 1999-03-02 09:24:17 +00:00
nisimura
370ab4d04e - Make compilable with DECstation. Looks running well on MI SCSI enabled
kernel.  Will be relocated to sys/dev/tc/ soon.
1999-03-02 01:44:30 +00:00
thorpej
673ddc8f39 Style nits in last. 1999-03-01 22:24:53 +00:00
scottr
624b6ac9a6 Implement the BUFCACHE kernel config option. 1999-03-01 21:32:24 +00:00
matthias
470ebb82a6 Define PMAP_NEED_PROCWR and make pmap_procwr flush the icache.
Thank's to Ignatios Souvatzis noticing this.
1999-03-01 14:27:59 +00:00
simonb
1397fd691b fix spel. 1999-03-01 12:46:16 +00:00
simonb
d9c1c30e0e If we get an error (file or bootblocks too big), unlink xxboot and
bootxx and exit(1) so a make will fail.  Especially in the too big
case, we don't want a make to work!
1999-03-01 11:52:34 +00:00
mark
98c62c02c3 Since all the calls to the postmortem debug code have been removed by
various folks, the actual code can be removed as well.
1999-03-01 10:01:52 +00:00
jonathan
0d4c6bb54a Recalibrate MIPS3 delay constants.
XXX mips4, faster clocks than 100MHz?
1999-03-01 08:37:05 +00:00
mark
d4a3aa46b4 Add support for tracing other processes with trace /t. 1999-03-01 05:48:31 +00:00
simonb
19893da01b Add a callback to the PROM routine clear_cache. Not needed now, but
used in two-stage bootblocks.
1999-03-01 04:05:18 +00:00
simonb
33fe56f80f Fix prototype for clear_cache (takes an address and length, not void). 1999-03-01 04:01:50 +00:00
kim
d3a3d58726 Try not to run when kernel is in secure mode. 1999-03-01 01:05:51 +00:00
simonb
19221fa28e A 5800 is a kn5800. 1999-03-01 00:18:13 +00:00
jonathan
5f9b5ac4f4 Garbage-collect pmax writebuffer drain when invalidating caches, pass 0:
Change `#ifdef pmax' to `#ifdef PMAX_CACHEFLUSH_FORCES_WBFLUSH'.
1999-02-28 21:53:00 +00:00
mhitch
cb8e3b18a7 Change switch_exit() to use the *current* proc0 stack pointer, instead of
the *initial* stack pointer.  The proc0 stack is being used by proc0 (i.e.
uvm_scheduler).  This had been working because switch_exit() wasn't
overwriting any critical areas of the stack - unless kernel profiling
was turned on.
1999-02-28 20:36:31 +00:00
ross
e47e3c9f45 schedclk() -> schedclock(), for consistency with hardclock(), statclock(), ...
update comments for recent scheduler mods
1999-02-28 18:14:57 +00:00
explorer
3ebb419571 Update to slightly altered rnd_attach_source() api 1999-02-28 17:08:05 +00:00
scw
5a1959a811 Push 'curproc' on the stack, not 'cachectl'. (I own Ignatios one brick :) 1999-02-28 16:49:04 +00:00
drochner
d57c7b76ca replace ENTRY() label in data segment which broke the code completely 1999-02-28 11:45:44 +00:00
mark
3aca0028f1 Fix else ambiguity. 1999-02-28 10:01:08 +00:00
mark
8b41c31868 Fix compiler warning. 1999-02-28 09:59:33 +00:00
is
04e9e604aa Regenerate. 1999-02-28 07:45:13 +00:00
is
c3f462a037 Alas, Melody boards don't configure in a DraCo. 1999-02-28 07:42:47 +00:00
scottr
e640c5d7cc Move all IPL setup to intr.c, and do some sanity checking. 1999-02-28 04:52:07 +00:00
mark
b8ca758af8 Implement pmap_procwr() the arm32 part of fix for pr 6152. 1999-02-28 01:49:25 +00:00
eeh
89c4b1c360 Let's try to make prom_cnget() work. 1999-02-28 00:29:24 +00:00
eeh
b6bf56be36 Use block load/store in pmap_zero_page()/pmap_copy_page(). 1999-02-28 00:26:46 +00:00
eeh
1f9186e111 Teach it some VIS instructions. 1999-02-28 00:23:58 +00:00
eeh
4ffa956fbb Fix up alignment issues dumping physical memory. 1999-02-28 00:22:32 +00:00
is
27fc050f1d Oops.
Forgot to commit this LONG ago.
1999-02-27 20:46:56 +00:00
is
0fe440926c Correct type of 3rd argument. 1999-02-27 19:31:58 +00:00
tsubai
78665b6502 Increase default data size to compile libbfd without `virtual memory
exhausted'.  Suggested by Scott Reynolds.
1999-02-27 18:32:31 +00:00
pk
f008a1bbd0 Missing `break'. 1999-02-27 16:13:59 +00:00
pk
49035b27c8 Do not call printf() from a CPU that is spinning up; defer the probe
messages to cpu_attach() where the boot processor takes care of them.
This also necessitates a slight change in the way the FPU name is stored.
1999-02-27 13:11:21 +00:00
mark
d6f8b575ea Add PCI-PCI bridge device.
Up maxusers to 32.
1999-02-27 11:19:25 +00:00
mark
bbd7276407 Add PCI-PCI bridge devices. 1999-02-27 11:18:27 +00:00
mark
54e053627e Implement bus_space_{read,write}_region_2().
Make bus_space_copy_region_2() work correctly for overlapping regions.
1999-02-27 11:14:27 +00:00
mark
77d06b9612 Remove a debug hack. 1999-02-27 11:12:44 +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
jonathan
63deecd7e6 Define C structures (struct kernframe, struct trapframe)
for kernel-to-user trapframe.  Use C structs in genassym.cf.
1999-02-27 02:54:05 +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
8474ed8a1e MVME68K specific part of fix for PR 6152 1999-02-26 22:16:35 +00:00
is
d04273bac7 sun3 part of fix for PR 6152 1999-02-26 22:03:28 +00:00
is
0f5ed05445 next68k specific part of PR 6152 fix 1999-02-26 21:34:38 +00:00
is
5e073f4807 MIPS part of fix for PR 6152, sligtly changed from M.Hitch's version 1999-02-26 19:03:39 +00:00
tsubai
b10dbdb37a Initialize BAT registers in the first place. 1999-02-26 18:36:15 +00:00
is
bce0bda05c x68k specific part of fix for PR 6152 1999-02-26 16:07:07 +00:00
tsubai
01614b7217 Implement pmap_procwr().
(Not tested.  gdb doesn't work on powerpc yet.)
1999-02-26 14:40:45 +00:00
is
d93a991a48 Make cpu_model big enough to hold the DNARD cpu's identification, and a bit
more.
1999-02-26 12:05:49 +00:00
thorpej
3dfa044911 Move declaration of prom_slock. 1999-02-26 03:59:14 +00:00
thorpej
2b5175cd53 Fix printf formats. 1999-02-26 03:57:10 +00:00
is
84971e3a6f mac68k part of pr 6152 fix, and missing bits for the others 1999-02-25 23:13:39 +00:00
is
7cf63be6cb Atari part of fix for pr 6152 1999-02-25 22:47:18 +00:00
is
75469a775e hp300 part of the fix for pr 6152 1999-02-25 22:34:41 +00:00
is
fde637530e Machine independent part of fix for PR 6152 (gdb doesn't work on machines
with UVM and seperate I&D-Cache). Mostly by Michael Hitch, but pass struct
proc * instead of the pmap. Reason: said machine will need a method to do
the syncing operation for "curproc", too; this way more code can be shared.
1999-02-25 21:54:53 +00:00
is
435f80f928 prepare for gdb fix 1999-02-25 19:51:22 +00:00
ross
321c6be8de Enable eap (Ensoniq AudioPCI), sb (SoundBlaster), and sv (S3 SonicVibes). 1999-02-25 12:37:39 +00:00
christos
e13149e632 Don't need to stick the interpreter at 0 anymore, it relocates itself. 1999-02-25 10:18:04 +00:00
thorpej
07304bd858 On multiprocessor systems, it is possible that a lev1map might be in use
by two processors concurrently.  This means that we cannot modify the
lev1map in use by the processor which wishes to use the PROM.

Fix this by creating a separate lev1map for PROM users.  This lev1map
is a copy of the kernel_lev1map, with the exception of the necessary
PROM mapping.  When a processor wishes to use the PROM, it switches
its PTBR to point at the prom_lev1map, performs the PROM operation,
and switches back to its previous lev1map.

Note that kernels without multiprocessor support use the old method
of modifying the current lev1map.

Also, serialize access to the PROM via a spin lock.
1999-02-25 03:43:14 +00:00
thorpej
45a5ad4153 Fix an uninitialized variable. 1999-02-24 23:35:25 +00:00
drochner
9e8c9e9594 -pull in exec.c, needed since loadfile.c
-don't pull in tftp.c anymore, it's in libsa now
1999-02-24 19:38:17 +00:00
thorpej
726091e400 Explicitly include opt_multiprocessor.h, rather then relying on its
implicit inclusion by pmap.h.
1999-02-24 19:36:04 +00:00
drochner
f1d1de8c7a moved to mi lib/libsa 1999-02-24 19:32:34 +00:00
thorpej
a65d3ba579 Note that the way the temporary PROM mapping is handled is completely
broken on multiprocessor systems.
1999-02-24 19:25:56 +00:00
thorpej
4cdbd84b63 First-cut at multiprocessor TLB shootdown. This simple implementation can
probably be improved somewhat, but an attempt to be efficient has been
made.

Note: TLB shootdowns are NOT YET ENABLED.
1999-02-24 19:22:16 +00:00
thorpej
911465b54c Restructure the IPI code a little, allowing multiple IPIs to be sent at
once.  Add a way to broadcast an IPI to all processors (except the sender,
obviously).  Add an IPI for TLB shootdown.
1999-02-24 19:17:09 +00:00
drochner
6ed35ee84b sync to [nisimura-pmax-wscons] version
(only change: include register definitions from regdef.h)
1999-02-24 18:36:32 +00:00
chs
31ef6fbb8d add RODATA(), which is like ENTRY() but without the _PROF_PROLOGUE. 1999-02-24 16:02:19 +00:00
simonb
e73260106c This stuff is _hopelessly_ out of date, and will almost certainly never
be used again.  (Famous last words :-)
1999-02-24 14:26:25 +00:00
simonb
61b327c2ac Remove bootconf.c from CLEANFILES; not used anymore. 1999-02-24 13:54:54 +00:00
pk
9efc61e01c Accept __syscall() in NetBSD a.out emulation. 1999-02-23 06:47:05 +00:00
thorpej
76e4555f2c Now that we have the kthread mechanism, massively clean up the way
additional processors are spun up on multiprocessor Alpha systems.
Now, each processor gets its own idle thread (the primary processor
uses proc0).  This idle thread is used in switch_exit(), rather than
explicitly referencing proc0.

Also, make `curproc', `fpcurproc', and `curpcb' per-cpu values.  This
required some data structure rearrangement; cpu info is now statically
allocated in the BSS, rather than via malloc(), and cpu_softc is gone.
(Modeled somewhat after NetBSD/sparc's multiprocessor info structures.)
1999-02-23 03:20:00 +00:00
ross
16204c31ac Generate the new schedclk() call into the MI kernel. Set schedhz
here to indicate that.
1999-02-23 02:56:40 +00:00
ross
b4a33c4e60 Scheduler bug fixes and reorganization
* fix the ancient nice(1) bug, where nice +20 processes incorrectly
  steal 10 - 20% of the CPU, (or even more depending on load average)
* provide a new schedclk() mechanism at a new clock at schedhz, so high
  platform hz values don't cause nice +0 processes to look like they are
  niced
* change the algorithm slightly, and reorganize the code a lot
* fix percent-CPU calculation bugs, and eliminate some no-op code

=== nice bug === Correctly divide the scheduler queues between niced and
compute-bound processes. The current nice weight of two (sort of, see
`algorithm change' below) neatly divides the USRPRI queues in half; this
should have been used to clip p_estcpu, instead of UCHAR_MAX.  Besides
being the wrong amount, clipping an unsigned char to UCHAR_MAX is a no-op,
and it was done after decay_cpu() which can only _reduce_ the value.  It
has to be kept <= NICE_WEIGHT * PRIO_MAX - PPQ or processes can
scheduler-penalize themselves onto the same queue as nice +20 processes.
(Or even a higher one.)

=== New schedclk() mechansism === Some platforms should be cutting down
stathz before hitting the scheduler, since the scheduler algorithm only
works right in the vicinity of 64 Hz. Rather than prescale hz, then scale
back and forth by 4 every time p_estcpu is touched (each occurance an
abstraction violation), use p_estcpu without scaling and require schedhz
to be generated directly at the right frequency. Use a default stathz (well,
actually, profhz) / 4, so nothing changes unless a platform defines schedhz
and a new clock.  Define these for alpha, where hz==1024, and nice was
totally broke.

=== Algorithm change === The nice value used to be added to the
exponentially-decayed scheduler history value p_estcpu, in _addition_ to
be incorporated directly (with greater wieght) into the priority calculation.
At first glance, it appears to be a pointless increase of 1/8 the nice
effect (pri = p_estcpu/4 + nice*2), but it's actually at least 3x that
because it will ramp up linearly but be decayed only exponentially, thus
converging to an additional .75 nice for a loadaverage of one. I killed
this, it makes the behavior hard to control, almost impossible to analyze,
and the effect (~~nothing at for the first second, then somewhat increased
niceness after three seconds or more, depending on load average) pointless.

=== Other bugs === hz -> profhz in the p_pctcpu = f(p_cpticks) calcuation.
Collect scheduler functionality. Try to put each abstraction in just one
place.
1999-02-23 02:56:03 +00:00
jonathan
68a5ad19be Fix off-by-one width: 220, not 221. confirmed against PROM setup. 1999-02-23 01:35:56 +00:00
simonb
381c553a53 Use -Os to reduce code size (from Krister Walfridsson). 1999-02-23 01:23:26 +00:00
thorpej
fbca0a78d7 Do all the fancy printf format checking. 1999-02-23 01:00:51 +00:00
is
e6da344c31 Update. 1999-02-22 22:07:37 +00:00
is
74ad0ecb0d Generate the MIT-assembler-format files statically. They nearly never change,
and if so, should be generated via the new Makefile and committed, too.
1999-02-22 21:25:05 +00:00
tsubai
16442fd649 Add MESH SCSI driver.
Sort entries.
1999-02-22 20:25:43 +00:00
thorpej
ca42d26309 GENERIC already has DDB. 1999-02-22 19:14:46 +00:00
pk
372e76a3bb Since V2 & V3 proms already pass us ihandles for stdin and stdout,
there's no need to open the device a second time. It suffices to
just convert the `ihandles' to `phandles'.
1999-02-22 17:15:30 +00:00
simonb
ffa92484e2 Update cpp defines to current reality. 1999-02-22 11:57:18 +00:00
simonb
74f2d414ef Load the bootblocks at 0x8070000 so that ramdisk kernels don't
overwrite the beginning of the bootblocks.
1999-02-22 11:53:57 +00:00
simonb
69ba0d255c Update list of source files to reflect reality. 1999-02-22 11:31:46 +00:00
simonb
c3baaf3ba5 Lightweight memset routine. 1999-02-22 11:26:15 +00:00
simonb
31f50e4868 Assembly stubs to PROM callback routines. 1999-02-22 11:22:40 +00:00
simonb
80ef484669 Use sys/lib/libsa/ routines now. 1999-02-22 11:21:21 +00:00
simonb
74df4f53e0 Allow code in sector zero (from Michael Hitch).
Also in start.S:
 + Removed unused printf routine.
 + Removed unused dummy __main for gcc.
 + s/bzero/memset/.
1999-02-22 11:01:43 +00:00
simonb
09cca9e076 Don't use the conf.c->bootconf.c guff, remove last tape support,
and actually install the bootblocks.
1999-02-22 10:53:13 +00:00
simonb
3d6a630813 Break single read and printf of text+data into two separate reads and
printfs.  Better aesthetically, especially with a twiddle.
1999-02-22 10:23:53 +00:00
simonb
63e306cbe7 Use "#ifdef UFS_NOCLOSE/UFS_NOWRITE" instead of "#ifdef SMALL". 1999-02-22 10:18:40 +00:00
simonb
6932c61287 Use memset() instead of bzero(). 1999-02-22 10:16:52 +00:00
simonb
e87d6bf17e More tape support not needed. 1999-02-22 09:25:16 +00:00
simonb
50ae7be229 Don't implicitly type the devopen() function.
Don't include machine/dec_prom.h.
1999-02-22 08:24:47 +00:00
simonb
2e4a4cb289 Revert to a simple memcpy implementation - a memcpy() PROM callback is not
available on all DECstation models.
1999-02-22 08:22:21 +00:00
simonb
2407241a09 Sync with sys/lib/libsa/ufs.c. Now the same except for the memset/memcpy
#defines at the top.
1999-02-22 08:16:57 +00:00
fvdl
f927176889 Add internal 3com PHYs for the ex driver. 1999-02-22 07:44:50 +00:00
simonb
ddf48f18a0 Remove traces of tape support - we're nowhere near handling it at the
moment.
1999-02-22 07:17:44 +00:00
mycroft
0dbf3ab3ca Use DMAMODE_DEMAND. Not tested, but presumed to work. 1999-02-22 02:56:13 +00:00
mycroft
0d22ee1396 Use DMAMODE_DEMAND. Tested on an AS200. 1999-02-22 02:52:24 +00:00
jonathan
8b01b985e7 Cannot do mcount() profiling in TLB exception-handler code. 1999-02-22 00:21:39 +00:00
scw
4a38a5de3a Remove a comment of mine which no longer applies. 1999-02-21 18:10:10 +00:00
scw
6312ec9ab7 Move scsi_nosync declaration into ncrsc_pcctwo since I've permanently
disabled sync negotiation in the 147's SBIC driver. (I could never make
it work). Also, don't enable bus-snooping with a 68060 based board.
1999-02-21 13:59:35 +00:00
scw
dfaaa08fb4 Include the GENERIC config. file instead of VME147. 1999-02-20 17:19:41 +00:00
scw
134a854765 Add some missing targets from sys/lib/libsa. 1999-02-20 16:26:57 +00:00
scw
9a7c49a33e Add splserial(). 1999-02-20 16:24:53 +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
scw
f94ac542ec Forgot to commit this one; added SCSI and VME drivers. 1999-02-20 00:44:31 +00:00
kristerw
871ac39c21 The recent simplification of the lint version of the va_arg macro broke
linting of vfprintf.c, where va_arg is used as
   *va_arg(ap, quad_t *) = ret;
Make the macro slightly more complicated...
1999-02-20 00:33:55 +00:00
scw
42058284c1 Config file with support for both '147 and '167. 1999-02-20 00:18:49 +00:00
scw
38a327cafe Add entries for SCSI and VME. While I'm here, bump maxusers to 16,
and enable a couple of other things which weren't useful in the
early days of development.
1999-02-20 00:16:38 +00:00
scw
0c1ed3ce56 Add NFS_BOOT_BOOTPARAMS option. 1999-02-20 00:13:43 +00:00
scw
4f53e52d8a Add support for the VMEchip2 and the ncr53c710 SCSI IOP.
VMEchip2 support work is ongoing. SCSI is complete.
1999-02-20 00:11:59 +00:00
mycroft
45e082f472 Fix thinko. 1999-02-19 22:32:21 +00:00
mycroft
7d0a7c6abf Do the pcb_onfault test earlier, so that the DIAGNOSTIC code doesn't trip. 1999-02-19 22:15:09 +00:00
leo
10d94b3a1c STANDALONE -> _STANDALONE per recent discussion. 1999-02-19 21:51:20 +00:00
leo
10cf345ed4 Fix type lossage reported by Julian Coleman. 1999-02-19 21:04:06 +00:00
leo
2426418d47 More work on Tseng support. Now both my et6000 _and_ the et6100 work. I just
whish that programming MDRAM latency values came out of the BlackMagic(tm)
domain :-(
1999-02-19 21:03:00 +00:00
leo
89347a3159 Add <machine/bswap.h> in the list of include-files. 1999-02-19 20:57:03 +00:00
drochner
eac4e51111 redirect the linker's stderr to the protocol file too 1999-02-19 19:53:01 +00:00
drochner
cb2e02af94 Make this compile and work again after the assembler update.
The new assembler doesn't allow 16-bit relocations involving arithmetics
with 32-bit variables. (The old one did silently truncate, which was
the right thing in our case.) Further, the new assembler uses to scatter
size prefixes around if the size of the operation is not explicitely
specified, even if the result is nonsense, eg for moves to segment
registers or control registers.
Add some debugging code (generating printouts) and comments.
Remove the !BOOTROM code which was intended for a DOS harness but isn't
that useful anymore.
Some cleanup and formatting to make it more similar to the other
startup code variants.
1999-02-19 19:48:06 +00:00
drochner
fd3ad59373 make the ethernet address an unsigned char array to avoid sign extension
when it is printed
1999-02-19 19:30:46 +00:00
drochner
0ce9e35aae add boot ROM support for the DMA-only 3com network adapters, tested with
3c900b-Combo only for now
1999-02-19 19:22:52 +00:00
mycroft
59e2f9373d Indicate which IRQ is being used for compatibility interrupts. 1999-02-19 18:01:27 +00:00
mycroft
4449a6ef39 Kill vestiges of isa_establish(). 1999-02-19 16:15:06 +00:00
tsubai
650f05d8c7 Ensure msgbuf_paddr is accessible (by bat). 1999-02-19 14:11:35 +00:00
tsubai
c8117990ae Use 6x11 font if screen size is smaller than 1024x768.
(Open Firmware ROM has 6x11 font.)
1999-02-19 14:02:33 +00:00
tsubai
da71ba4292 First step of MESH SCSI support.
XXX no disconnect/reselect.
XXX sync transfer is very unstable.
1999-02-19 13:06:03 +00:00
mycroft
88281a63ff Only use the PnP PCIC attachment. 1999-02-19 00:04:58 +00:00
mycroft
d9f4f0e31a Add PCMCIA goo. 1999-02-18 21:58:18 +00:00
mycroft
e3dc7a4881 Okay; pcic_isapnp doesn't quite work yet. 1999-02-18 21:54:04 +00:00
mycroft
9bf7aaa65f Add pcic_isapnp. 1999-02-18 21:27:54 +00:00
thorpej
bd72e4386f Add floppy controller and drives. 1999-02-18 20:39:04 +00:00
mycroft
3bf5fab3c0 Add a floppy drive. 1999-02-18 20:18:54 +00:00
thorpej
1df60a8989 Floppy driver for NetBSD/alpha, copied from i386 port, and munged to take
out the i386'isms (i.e. no NVRAM read for default floppy type; floppies
just default to 1.44MB).
1999-02-18 20:15:53 +00:00
christos
85a8ddde1d make the #if 0'ed code compile... 1999-02-18 17:23:55 +00:00
christos
88bdeec361 && || confusion. 1999-02-18 17:21:14 +00:00
mycroft
1445849c2f Add:
* PCI VGA (tested with Imagine-128)
* ISA SoundBlaster (tested with SB1!)
* AudioPCI (tested with ... AudioPCI!)
* PnP SoundBlaster (currently loses in 16-bit mode due to extent lossage)
* SonicVibes (currently loses; see sv.c commit log)
1999-02-18 16:42:31 +00:00
jonathan
6e065bd434 Use cpu_spl3() for all device-level spls, not splhigh().
Lets reset button work when stuck at device  spl.
1999-02-18 10:24:16 +00:00
mycroft
579eeb8cf7 If we have to increase the boundary due to the spill pages, use the old
boundary as an alignment.  Otherwise we fail to enforce the old boundary,
causing massive lossage.
1999-02-18 08:55:16 +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
gwr
5cf3f8e3b2 It appears that pmap_physseg is now required in userland. Too bad. 1999-02-18 07:13:21 +00:00
tsubai
60307f0ef1 Sync with mac68k. 1999-02-17 14:56:56 +00:00
tsubai
e717f0bc2b Use mips/varargs.h. 1999-02-17 14:13:42 +00:00
scottr
928c2f86e0 Fix a typo in the (unused!) splsched() macro. 1999-02-17 04:46:45 +00:00
mrg
e21cbb5e8b KNF nit. 1999-02-17 03:54:46 +00:00
eeh
c9956cf132 Let's test out vectored interrupts. 1999-02-17 03:23:28 +00:00
mjacob
1611b4799f Gronk. DWLPX comment in a MCPCIA file. 1999-02-17 03:17:17 +00:00
jonathan
ce3b5f2c3f Adjust cursor offests so that cursor position reported by X applications
agrees with pointer. Fron PR 6648 (not verified at all resolutions.)
1999-02-17 01:04:10 +00:00
is
2c7fa23c38 Fix Copyright dates 1999-02-16 23:34:10 +00:00
is
dc068e0d1f Assign my files to The NetBSD Foundation, Inc. 1999-02-16 22:46:55 +00:00
tsubai
4806be8d02 Use powerpc/reloc.h. 1999-02-16 17:53:42 +00:00
abs
e54f9521b8 Update IDE comments, from yoavcs@inter.net.il 1999-02-16 17:46:17 +00:00
tsubai
adf03cea81 Add copyright notice. 1999-02-16 15:20:51 +00:00
jonathan
069050d92d Bump mips3 CPU-mhz timing threshholds by 10% due to egcs wins.
XXX mips1 not recalibrated.
1999-02-16 10:10:51 +00:00
jonathan
3cc1ae4ff2 Use VECTOR() and VECTOR_END() in mips1 locore code. 1999-02-16 08:35:35 +00:00
veego
8dcc2f0651 Add support to boot from ide hard disks. 1999-02-16 07:25:43 +00:00
pk
8d45c4eb84 Use promlib version correctly. 1999-02-16 07:22:17 +00:00
jonathan
adc3e91e3a Add VECTOR() and VECTOR_END() macros for declaring exception-vector
code.  Fold in <xxx>End names used to copy exception code to vector
locations. Use in mips3 locore code.
1999-02-16 05:06:26 +00:00
ender
e0a4cb2335 Add NetBSD RCS Id's 1999-02-16 01:08:16 +00:00
scw
80a6d1c537 reboot(8) is now supported, by hitting the hard reset (RST) bit in the GCSR.
Figure out the amount of onboard RAM by looking at the MEMC040/MEMECC
configuration register. (Bank #0 only, for now).
1999-02-15 21:05:26 +00:00
is
83852d7633 regenerate 1999-02-15 19:34:13 +00:00
pk
6139fd16f3 Install the `machine' link again; it went missing a while ago.
Add `-I.' to CPPFLAGS to use it.
1999-02-15 19:31:34 +00:00
is
41bc990eca Create a RCS id in the generated configuration file 1999-02-15 19:16:41 +00:00
pk
2a1ecde639 Transfer copyright to TNF. 1999-02-15 19:01:38 +00:00
pk
d292580f3f Use PROMLIB to streamline this code. This also provides the bulk of
Open Firmware boot code.
1999-02-15 18:59:36 +00:00
pk
8460b71d8d * Add promlib.c to common sources.
* Compile with prototype warnings turned on.
1999-02-15 18:52:12 +00:00
ragge
f379e1e9c0 Fix RCSid, pointed out by Hubert Feyrer. 1999-02-15 07:07:43 +00:00
hubertf
56f2d188fc RCS ID police 1999-02-15 04:54:34 +00:00
sakamoto
a6a228ce7f RCS ID police 1999-02-15 04:38:06 +00:00
hubertf
aa4a217d1c RCS ID police 1999-02-15 04:36:33 +00:00
hubertf
100778d54a RCS ID police 1999-02-15 04:25:28 +00:00
hubertf
dcd5f59c0a RCS ID police 1999-02-15 04:14:54 +00:00
christos
c95ea656d6 Elf bits. 1999-02-14 20:04:26 +00:00
scw
a72d37c4fa Merge support for mvme167 into main tree. 1999-02-14 17:54:27 +00:00
pk
059697a999 Use PROMLIB's prom_setcontext(). 1999-02-14 14:37:45 +00:00
pk
3ee0ba2805 romcall() => prom_halt() 1999-02-14 14:37:15 +00:00
pk
67df93822d Add size arg to getpropstringA 1999-02-14 14:03:16 +00:00
pk
8edcd03969 Use the PROMLIB interface. 1999-02-14 12:44:31 +00:00
pk
9896803ae6 Fake a label only if it appears to be blank, and if so use RAW_PART
instead of 0.
1999-02-14 12:42:33 +00:00
pk
4b9ee1f8ce This file is superseded by promlib.c 1999-02-14 12:38:03 +00:00
pk
4dc82c28b4 Exit: obp.c; Enter: promlib.c & openfirm.c 1999-02-14 12:36:50 +00:00
pk
a8456f4e8a Check OBP magic: if no match then assume an Openfirmware PROM. 1999-02-14 12:33:55 +00:00
pk
1e5bf77774 Adjust to functionality and changes introduced with <machine/promlib.h> 1999-02-14 12:26:16 +00:00
pk
a99ba2939c Provide a uniform interface to most of the PROM functions.
Include an Openfirmware back-end (mostly copied from sparc64).
1999-02-14 12:23:03 +00:00
dbj
f651d280fa Continue hacking on esp driver. Seems relatively stable in read only mode.
write operations appear to lose scsi interrupts and causes timeouts.
changes in this checkin include:
a nextdma bugfix causing a diagnostic check to erroneously trigger
Changed tail strategy to only use tail buffer for the minimal end slop
changed expected write dma overrun to 32 bytes.
turned on nextdma diagnostic check for dma end address since it
no longer gets triggerred by ethernet dma and helps debug scsi dma.
Added esp debugging printout and support.
1999-02-14 10:19:51 +00:00
dean
6dc3d1eae8 Put back bsd.own.mk and added comment explaining why it must be included. 1999-02-14 02:56:19 +00:00
christos
6e13c7d4b5 Avoid defining __extension__ if we don't need to. Breaks lint. 1999-02-13 20:35:02 +00:00
christos
21485fd1d6 noise reduction. 1999-02-13 16:45:28 +00:00
christos
f2da4dfc95 Support __syscall for COMPAT_AOUT properly. 1999-02-13 16:10:44 +00:00
dbj
997f74e47c Continued work on esp scsi driver. Now can at least do enough i/o to create and mount
a filesystem, but is not stable enough yet for general use.
increased priority of ethernet interrupts, mostly useful to aid debugging
of scsi interrupts while using an nfs disk.
added additional debugging output in the next dma driver.
perform extranneous cache flushes/purges before dma reads/ after dma writes
to aid debugging of scsi dma.
1999-02-13 09:44:50 +00:00
lukem
dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
thorpej
22a5cb007f Fix printf format warnings on Alpha. 1999-02-13 02:41:40 +00:00
dean
c372a9b915 Remove bsd.own.mk include 1999-02-12 23:48:46 +00:00
tsubai
31101d57ec Add missing backslash. 1999-02-12 18:13:12 +00:00
drochner
dbdaf91650 change the "mapchar" interface to return a "quality" or "match level"
arguments which allows to find approximations for characters which are
not present in a font
1999-02-12 11:25:23 +00:00
thorpej
02d221f94a Fix printf format problems on Alpha. 1999-02-12 06:25:13 +00:00
thorpej
db631acd8a Fix printf format problems on Alpha. 1999-02-12 06:07:52 +00:00
mrg
aea84d23cc add a proto for print_dtbl 1999-02-12 05:58:27 +00:00
mrg
43542ba2e5 include dev/mii/files.mii 1999-02-12 05:57:21 +00:00
cjs
8a3ac60bb8 Change NOMAN to MKMAN. 1999-02-12 05:15:35 +00:00
cjs
3e90f302b6 Don't give exit() a parameter, as libstand version doesn't take one. 1999-02-12 05:14:22 +00:00
thorpej
5194c207d0 Fix printf format problems on Alpha. (IRONIC?!) 1999-02-12 01:45:42 +00:00
christos
85333355d2 Add COMPAT_AOUT glue. 1999-02-11 20:14:28 +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
mrg
26c0549e41 fix a comment pasto. 1999-02-11 13:18:35 +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
christos
b7ff80b7fb Fix reversed test in my changes to compat_freebsd (thanks charles!) 1999-02-10 16:52:02 +00:00
christos
fe9e04762b PR/6962: Paul Shupak: FreeBSD ELF emulation bits. 1999-02-10 07:10:59 +00:00
is
b0f697496e Provide a minimal instruction/data cache synchronization C binding.
(The function has always been in the kernels as special trap #12).
In response to PR 4951 by Hauke Fath.
1999-02-09 22:32:33 +00:00
tv
e07978e871 Split the "mips" MACHINE_ARCH for 1.4. newsmips is "mipseb"; pmax is
"mipsel".
1999-02-09 17:15:51 +00:00
thorpej
c9f76153fa Add some missing newlines in printfs. 1999-02-08 19:37:29 +00:00
bouyer
f6f9f8a965 Change DIOCEJECT to do what's needed to eject a device before the eject
command (unlock for sd and cd) if no other partitions are open, return
EBUSY otherwise. DIOCEJECT will have the old semantic if its argument is not
0. The old ioctl has been renamed to ODIOCEJECT for binary compatibility.
1999-02-08 16:33:16 +00:00
tsubai
cd010c972c Oops, last change is wrong... 1999-02-08 14:32:00 +00:00
he
f96a373094 Avoid "unterminated character constant" error from mkdep (really cc).
I guess in some sense it's stupid to use cc to depend .S files.
1999-02-08 10:45:11 +00:00
fvdl
1461618ead Make this compile for SUN4 only. 1999-02-08 00:13:20 +00:00
christos
d30ef27fb0 s/ELF/__ELF__/ 1999-02-07 20:21:09 +00:00
tron
2fefe24803 Remove "lib" directory only during "make cleandir" so that ".depend"
doesn't get nuked during "make clean".
1999-02-07 18:25:54 +00:00
drochner
b2c4a7b933 use mi data conversion functions, simplify inittodr() and resettodr() 1999-02-07 17:29:26 +00:00
drochner
36be191753 -pull in mi date conversion functions
-include files.vme (not worth much normally, but makes it easy to
 plug in something)
1999-02-07 17:25:31 +00:00
christos
636b3ee69b s/JUMP/JMP/ like every other arch. 1999-02-07 17:20:00 +00:00
drochner
0f145938b4 put all century related code into an own function clock_expandyear(),
touch the CMOS century byte only if the CMOS contents passes a
checksum test which qualifies it as "known compliant"
1999-02-07 16:18:00 +00:00
minoura
cc5f9932f8 Issue SCSI reset on initialize.
Clean unused mha_reset.
1999-02-07 15:18:58 +00:00
tron
08c7376961 Remove "lib" directory created during build process while doing
"make clean" or "make cleandir".
1999-02-07 13:39:36 +00:00
jonathan
c9d036d796 defopt MEMORY_DISK_{HOOKS,SERVER,IS_ROOT}. 1999-02-07 09:34:58 +00:00
jonathan
3fa9c3ec91 garbage-collect `options MULTICAST'. IP multicast is no longer an option. 1999-02-07 07:14:21 +00:00
jonathan
ac38e160d1 Add `strip' line for testing Ricochet modems at 115200 bps. 1999-02-07 07:12:19 +00:00
is
9332e61aae Define _STANDALONE instead of STANDALONE. 1999-02-06 23:17:07 +00:00
is
892e4f60af One more small step towards a unified m68k pmap:
use the common pmap_copy_page() and pmap_zero_page (copied from Atari).
1999-02-06 22:48:08 +00:00
thorpej
ad268a2ff8 STANDALONE -> _STANDALONE. 1999-02-06 21:19:24 +00:00
mycroft
5542a949cd Config for for an AS200 with TGA/WSS/PCMCIA (although the TGA and PCMCIA aren't
fully functional yet).
1999-02-06 20:22:43 +00:00
tsubai
d1276ebc65 Make this compile. (and sync with dev/ic completely) 1999-02-06 20:04:31 +00:00
drochner
bce7f71843 sort the dependencies between terminal devices a bit and add consistency
checks to catch conflicting devices at compile time
1999-02-06 18:46:21 +00:00
jonb
aae389c323 STANDALONE should be _STANDALONE 1999-02-06 15:20:26 +00:00