Commit Graph

17178 Commits

Author SHA1 Message Date
bouyer ab57245c0f Document the use of flags to set/disable PIO/DMA/UDMA modes. 1998-12-02 10:54:26 +00:00
thorpej a6f7e0c05a Implement WARN_REFERENCES(). 1998-12-02 00:58:42 +00:00
leo 7cce2beefa Fix the __abs_copy() macro (wrong parameters to __abs_opname). 1998-12-01 15:32:28 +00:00
leo 70249fa2f2 Make this compile again... ('maximum entropy'). 1998-12-01 15:30:01 +00:00
thorpej 1e7ec4d50e Use _C_LABEL() to generate C labels in assembly code, don't prepend an
underscore (_) directly.  (XXX Except in a few places, where traditional
CPP's macro evaluation semantics break things, so we test for __ELF__
directly in those places).
1998-12-01 04:30:59 +00:00
ragge 6e9aa26bb0 Fix disk size identifier bug. 1998-11-30 22:27:32 +00:00
mycroft abfe9cee7b Sync with 32-bit SPARC version. 1998-11-29 22:20:19 +00:00
minoura e01f39790b BUFCACHE option. 1998-11-29 16:20:13 +00:00
minoura 933646a42b Re-enabled SMALL.
This kernel can run on small memory machines.
1998-11-29 16:17:01 +00:00
ragge 133ae4e0b7 Wall fix. 1998-11-29 15:12:57 +00:00
ragge b5c0d58042 vm_offset_t -> vaddr_t. Count up memory here. 1998-11-29 15:12:23 +00:00
ragge 09cbabdb40 Don't map in unnecessary pages. 1998-11-29 15:09:10 +00:00
ragge 6c5df58799 Protect against multiple inclusion. Struct needs at least one argument. 1998-11-29 15:06:02 +00:00
ragge dbcd5013d0 blkclr -> memset. 1998-11-29 15:04:56 +00:00
ragge 3fec5558a2 uvm_km_alloc -> uvm_km_zalloc. 1998-11-29 15:04:36 +00:00
ragge a2d54053dc Fix (small) segv bug. Recognize in-kernel trace and breakpoint traps. 1998-11-29 15:04:05 +00:00
ragge 2298227965 Remove support to execute reno/ultrix binaries. It doesn't work, and
must be done in another way to work.
1998-11-29 15:01:49 +00:00
ragge 015d31ae8d - Save R/M bits after a page is unmapped.
- Keep track of mapping count (for statistics).
- vm_offset_t -> vaddr_t/paddr_t.
- Move away counting of available memory.
1998-11-29 14:55:04 +00:00
ragge f07a586dc6 the btoc/ctob/btop macros must use CLBYTES, not NBPG. How this should
work in the long run is an open issue; some parts must be reworked
in a MI way.
1998-11-29 14:48:51 +00:00
ragge c738e45cd6 Memory disk support. 1998-11-29 14:31:53 +00:00
mycroft 34a1fe3ee3 Fix bogus asm statements; tmp1 and tmp2 need to be outputs rather than inputs. 1998-11-29 10:37:08 +00:00
thorpej 11f3c29221 Add USB devices. 1998-11-29 06:57:46 +00:00
thorpej ff78cf69cf Move cdev_usb_init() and cdev_usbdev_init() to <sys/conf.h> 1998-11-29 06:56:13 +00:00
jonathan 7d813b16c3 Add PV_REFERENCED and track as for PV_MODIFIED,.
UVM relies on pmap modules keeping track of modified/referenced bits
after a page has been removed from all mappings.  So *dont* clear
PV_REFERENCED or PV_MODIFIED flags in pmap_remove().
1998-11-29 03:18:32 +00:00
jonathan fa0ee282ff Read icsr in interrupt handler (from development tree). 1998-11-29 00:58:06 +00:00
jonathan 34fe177e8e * Use dc_tty_init() to set serial-console line state both for boot-time
console setup and driver attach-time.
* Dont wire potential console lines as CLOCAL; use softcar.
* #ifdef tests on #ifdef NRASTERCONSOLE, not HAVE_RCONS.
1998-11-29 00:28:29 +00:00
is 0136b1bd69 Add ne (AriadneII). 1998-11-28 21:27:42 +00:00
thorpej 16eabd8a1f Add an RCS ID. 1998-11-28 20:59:26 +00:00
ender a5b3596bc4 Remember to recognize modifier key releases when the Option key is down.
Fixes art of PR 6444.  Tested by Frederick Bruckman <fb@enteract.com>.
1998-11-28 19:42:49 +00:00
is 06f7b24f4c Implement softintr_disestablish(). 1998-11-28 16:39:25 +00:00
is b36e0e66ff Fix typo. 1998-11-28 14:46:53 +00:00
is 36ebc2012e Sorry. Hypercom1 and Hypercom3 code is not yet available. 1998-11-28 12:19:44 +00:00
jonathan cdc3ba978c Remove last vestiges of console special-case handling:
* use dc_coldparam() in dc_tty_init(), dc_kbd_init().
 * use dc_tty_init() to set line for serial console in dc_consinit()
 * only call dc_mouse_init() if the console major-number  is RCONSDEV.
1998-11-28 09:52:55 +00:00
eeh 7010132044 Calculate the size of the TSB correctly. 1998-11-27 20:02:57 +00:00
eeh ff27dd92da Improve page table printing. 1998-11-27 19:58:46 +00:00
simonb e931618c25 Don't do a mkdep on SFILES if it is empty. Stops an annoying:
cc: Warning: `-x assembler-with-cpp' after last input file has no effect
    cc: No input files
message.
1998-11-27 01:01:40 +00:00
simonb 8eef08e4ae fix another white space botch 1998-11-27 00:44:46 +00:00
simonb bf95b924c9 White space and comment formatting police 1998-11-27 00:09:33 +00:00
pk 2e89e9144b Turn a bunch of bus_space_*() macros into in-line functions mostly to avoid
variable aliasing.
1998-11-26 23:50:52 +00:00
fvdl 82d0f812ab Save and restore pcb_onfault in a few copy functions that may be called
from a context where we can't afford to clobber it. Mostly from
Charles Hannum.
1998-11-26 23:47:36 +00:00
pk c918193752 Add splserial(). 1998-11-26 22:53:13 +00:00
mycroft 9a7fd5c1ac Sync kcopy() with 32-bit SPARC version. 1998-11-26 22:40:17 +00:00
mycroft 8df55592be Minor changes; indentation for delay slots and NOTREACHED comments. 1998-11-26 22:36:43 +00:00
mycroft 90a44dd270 Clean up kcopy() some more:
* Return EFAULT, not -1.
* Rearrange some instructions for better parallelism.
1998-11-26 22:30:31 +00:00
pk 79bf04ce4f kcopy() must restore pcb_onfault handler. Pointed out by Charles Hannum. 1998-11-26 22:17:33 +00:00
ragge 237ff74c36 Fix kcopy fault-handler saving.
Get kernel last address from boot instead.
1998-11-26 21:21:06 +00:00
thorpej e3e5bd6220 Erg, fix the non-error code path, too. 1998-11-26 21:16:08 +00:00
thorpej 8458248eec copyin() and copyout() should return EFAULT if a fault occurs, not
EACCESS.
1998-11-26 21:06:21 +00:00
thorpej e328e13450 Oops, in some delay slot confusion, I ended up clobbering s0 before it
restored pcb_onfault.  Make it the way I wrote it originally, which was
correct.  Pointed out by Michael Hitch and Charles Hannum.
1998-11-26 20:52:45 +00:00
tsubai 35f82ac3eb Save and restore pcb_onfault in kcopy(). 1998-11-26 20:48:45 +00:00
thorpej 958666b11a Oops, restore pcb_onfault if a fault occures in kcopy(). Pointed out by
Charles Hannum.
1998-11-26 20:26:52 +00:00
mycroft 2aeb226755 Save and restore pcb_onfault for kcopy(), as pointed out by Steve Woodford. 1998-11-26 19:34:38 +00:00
pk 4dc534f05d Export the `pcmciabus' attribute on the `pcic' controller. 1998-11-26 15:35:58 +00:00
leo 15586aca07 Check-point work on isa-interrupt handling 1998-11-26 13:34:23 +00:00
ross 8bc9c17338 Disable sanity checks and unnecessary setup for conblock (-b) mode. 1998-11-25 21:19:35 +00:00
hwr 59acb69be1 Add (commented out) 'gre' pseudo device line. Feedback is welcome.
Inspired by Klaus Klein.
1998-11-25 20:30:44 +00:00
mjacob 6b12feab6d add missing include file 1998-11-25 19:58:47 +00:00
pk b34cd5fdf0 Add IPL_SERIAL 1998-11-25 19:33:02 +00:00
tv 182b5b1d68 Sync with various options in GENERIC that were not added/changed here. 1998-11-25 18:37:48 +00:00
tv e7f7d54046 The wss driver does work (AS200/233 uses it). Uncomment. 1998-11-25 18:37:27 +00:00
frueauf 04674130a0 pain(void) -> pain(void *), pointed out by Adam Ciarcinski. 1998-11-25 14:50:14 +00:00
mycroft 63f7ee9e53 Return instructions can also be unconditional branches. 1998-11-25 13:58:49 +00:00
mycroft 8fbc327df1 DDB needs the stack pointer at the time of the fault to single step through
returns.  So, adjust the trap frame format to store sp.
1998-11-25 13:09:14 +00:00
mycroft f4b034d33a First whack at making single-stepping work through switch and return
statements.
1998-11-25 06:41:26 +00:00
nisimura 53ac67d9b1 - Fix two bugs; inst_call() is supposed to check OP_SPECIAL opcode with
either OP_JR function code or *OP_JALR* function code (not OP_JAL opcode).
insn_unconditional_flow_transfer() was to read an unintialized variable.
Those MD DDB routines seems not useful work so far.
1998-11-25 01:14:48 +00:00
kleink 799ebea61d Need declarations of defined inlined spl/sr functions. 1998-11-24 17:07:54 +00:00
kleink cb37e264d2 Need <sys/device.h> to bring configure() declaration in scope. 1998-11-24 16:48:26 +00:00
leo dee282eb12 You also need intr.h, psl.h, pte.h and vmparam.h to build the world... 1998-11-24 15:16:48 +00:00
leo d40f376b56 Implement BUFCACHE option as suggested by lukem. 1998-11-24 15:07:33 +00:00
leo a3f9798019 Make compile with -DDEBUG 1998-11-24 15:05:53 +00:00
leo f65666430f Pull-in device.h for configure() prototype. 1998-11-24 15:03:31 +00:00
kleink 94696a9ac3 Add support for the BUFCACHE config option. 1998-11-24 13:19:48 +00:00
mrg d4fb975471 bring a prom_printf prototype into scope. 1998-11-24 13:02:59 +00:00
mrg ed2db65750 add WARNS=0 for now. 1998-11-24 12:56:55 +00:00
mrg 7ad164b566 use rm -f. this makefile needs to be fixed.. 1998-11-24 12:56:40 +00:00
mrg 4e85f6d151 remove fixalign prototype, it is now elsewhere 1998-11-24 12:55:56 +00:00
mrg 0a61098abd remove some dead variables. 1998-11-24 12:55:25 +00:00
mrg 1458c370fc #if 0 pv_syncflags as it is not used. avoid comments in comments. 1998-11-24 12:55:06 +00:00
mrg 7fa9d2a08d move now unsed variable under #ifdef NOT_DEBUG 1998-11-24 12:53:27 +00:00
mrg 06dfd0f985 #if 0 an unused declaration 1998-11-24 12:51:19 +00:00
mrg 0bd7e232e2 do not start comments inside comments. 1998-11-24 12:50:56 +00:00
mrg 0a3c644dbc include db_interface.h, remove unused variable & add proto for db_uvmhistdump. 1998-11-24 12:50:27 +00:00
mrg b066708a2e add protos for switchtoctx, fixalign and emulinstr. XXX should all these be here? 1998-11-24 12:49:14 +00:00
mrg 5711320263 these are fpu_xitof & fpu_ftoxi in the code... 1998-11-24 12:48:14 +00:00
mrg 12f8528ba4 add a cast. 1998-11-24 12:47:24 +00:00
tsubai ac7d3e6487 Add PIC definitions. 1998-11-24 11:17:17 +00:00
ender 15f2f5d901 Take emulated button state into account before handing off mouse events.
Fixes part of PR 6444.  Tested by Frederick Bruckman (fb@enteract.com).
1998-11-24 08:34:37 +00:00
tsubai f917584d54 Add more delay in adb_reinit(). 1998-11-24 08:26:50 +00:00
dbj 0a67f72c26 uncommented the "intrnames" definitions used by vmstat to
label interrupt counts.
1998-11-24 07:02:10 +00:00
sakamoto 28c9fd0c8c Fix no check for negative offset in mmap. 1998-11-24 06:34:10 +00:00
mrg 3660a1e953 make sure we do not write more than 7.5k of bootblock. 1998-11-24 00:03:19 +00:00
christos 1eebc10d76 add aha at isapnp? 1998-11-23 20:47:03 +00:00
scw 6861b95582 Get rid of memset() prototype, it's not used and egcs doesn't like it. 1998-11-23 20:45:26 +00:00
mrg 84826f1771 add installboot 1998-11-23 08:16:10 +00:00
mrg cd3e42513b add a sparc64 installboot script. just dd the bootblk to the right part of the disk. can be improved... 1998-11-23 08:15:11 +00:00
jonathan 89cad55ba4 Make rcons work, if configured, even when using serial console:
do rcons_connect() even if using a serial console.
  identify first attached framebuffer as being `rcons' output device.
1998-11-23 04:26:15 +00:00
mrg fdbb273f39 fix some warnings, and some not DEBUG problems. 1998-11-22 23:56:49 +00:00
pk 701d8366f0 Define `interrupt priority levels'.
XXX - for now, these arbitrary identifiers; NO INTERPRETATION IS DEFINED YET
1998-11-22 23:53:24 +00:00
eeh 4cf9a921c9 Move allocsys() back to cpu_startup(). We're no longer allocating it from
the locked 4MB TLB entry, but it solves the problem where large memory machines
overflow the 4MB TLB entry.
1998-11-22 23:38:53 +00:00
pk cecf78e09d Connect the PCMCIA bus. 1998-11-22 23:36:42 +00:00
pk e40c5c3c20 Add busses: PCMCIA, MII, ATA 1998-11-22 23:22:26 +00:00
pk bc98f448b8 Turn the passed tag into "used" arguments. 1998-11-22 21:52:24 +00:00
ws 82fe9b4f90 The last fix in trap.c missed R2.
And correct the size of the fault buffer while being here.
1998-11-22 21:21:32 +00:00
eeh 3bb71e68c6 ofwboot.elf is now ofwboot. 1998-11-22 17:22:50 +00:00
eeh 2f274f97e5 Don't ask the firmware to find our partition because it doesn't understand
NetBSD disklabels and gets horribly confused.
1998-11-22 16:21:02 +00:00
tsubai 01a2fb8424 Fix typo. 1998-11-22 15:57:37 +00:00
oster dd377fd943 Remove erroneous duplicate lines in cdev_sw[]. Now things are lined
up right and RAIDframe can find it's block device again.
1998-11-22 15:51:04 +00:00
drochner 1c0cc94837 Update for INT13 support.
XXX We can't easily emulate this here due to the 16-bit-pointer
call interface.
1998-11-22 15:44:03 +00:00
drochner 1e2b2f29f2 one more (last?) wdc_channels adaption 1998-11-22 14:55:29 +00:00
drochner e1244719fd oops - forget update for wdc_channels definition change 1998-11-22 14:36:38 +00:00
oster a8e48ccd6e Fix RAIDframe typo. (Reported by msaitoh@netbsd.org) 1998-11-21 23:41:13 +00:00
scw 28b6542336 Fix misplaced comma... 1998-11-21 20:37:06 +00:00
tsubai 491966b273 When DSI occurs and pcb_onfault != 0, registers are incorrectly restored.
Fix this.
1998-11-21 20:18:47 +00:00
tsubai 13a8c73bb6 Flush write buffer in ZS_DELAY(). 1998-11-21 14:57:59 +00:00
drochner 7e21eb25d4 Set the p-v list head to NULL if there are no valid mappings.
This should be not necessary because the pv_pmap member is already set to
NULL in this case which should keep the pv_next pointer from being
followed. However, PR port-i386/5291 reports that this measure helps in
at least one case (VINO).
Reviewed by Chuck Cranor, final fix is functionally identical to the PR's
proposal.
1998-11-20 17:44:39 +00:00
leo c9971df573 Follow the amiga vmparam.h, from Ignatios:
Yet another workaround for pmap bugs. Several reports on the port-amiga
list claim this helps with some big-machine situations.
1998-11-20 13:01:12 +00:00
leo b981000a00 If the disklabel on the floppy says that there are more tracks and sectors
than the hardware is capable off, believe the hardware...
1998-11-20 12:58:13 +00:00
leo 6827fd2ff0 Checkpoint my work on et6000 support. 1998-11-20 12:56:09 +00:00
leo 396634e8c7 Adapt to new wd world-order. 1998-11-20 12:54:37 +00:00
leo d8b37265bc Fix parameters of uvm_unmap(). 1998-11-20 12:48:13 +00:00
leo c852714bf9 Make it compile with -DDEBUG again. 1998-11-20 12:46:51 +00:00
leo 394afce1c9 NWDC -> NWD (wdc.h -> wd.h) 1998-11-20 12:43:11 +00:00
tron 45d30cea9d Sync with GENERIC. 1998-11-20 11:50:29 +00:00
itohy 6fca929d87 Moved the manual to share.
Added -L for libc.
Use `&&' instead of `;' for  cd and print-objdir  in order to avoid
infinite fork() if chdir failed.
1998-11-20 10:59:22 +00:00
mhitch 475a5c2afd RZ25 disks seem to need a short delay after a start command; the test unit
ready right afterward succeeds, but the getsize following that failed with
a "not ready".
1998-11-20 06:24:02 +00:00
kml ba30effcf8 Changes to support a HIPPI Framing Protocol device, which allows raw
HIPPI packets to be written without having to go through the network
stack.
1998-11-20 04:12:57 +00:00
ross 8d957efade Sigh, shuffle the nsio ide frobber yet again. 1998-11-20 03:58:22 +00:00
thorpej 5f0577babc Adapt to the new scsipi_adapter interface. 1998-11-19 21:43:00 +00:00
mrg db3051d720 fix problems in many d_mmap routines:
- returned EOPNOTSUPP rather than -1.
	- no check for negative offset.
many of these fix potential security problems in these drivers.


XXX XXX XXX
the d_mmap cdev routine should be changed to have a prototype like:
	paddr_t (*d_mmap) __P((dev_t, off_t, int));

by someone!
1998-11-19 15:38:20 +00:00
he db360b9524 Bump ramdisk size by 100 blocks -- ran out of space. 1998-11-19 11:43:57 +00:00
dbj 044d782820 Removed unused buserr and addrerr declarations. 1998-11-19 08:32:26 +00:00
jonathan 20cf682664 kernel config file for pmax install via ramdisk. 1998-11-19 06:05:11 +00:00
ross 3f24fce866 More include shuffling. 1998-11-19 02:53:47 +00:00
ross b0f44850f5 Don't insist on an FFS if we are in contiguous block (-b) mode. 1998-11-19 02:44:40 +00:00
ross d963824bdc #include <machine/intrcnt.h> 1998-11-19 02:35:39 +00:00
ross bc9cb58205 Fix interrupt map for baseboard bridge. 1998-11-19 02:33:37 +00:00
ross 47c613e7dd #include <machine/alpha.h> 1998-11-19 02:29:49 +00:00
ross 4ea2865631 +#include <machine/alpha.h>
+#include <machine/intrcnt.h>

Also, this module gets the junk I/O IDE channel frobber that used to
be in dec_axppci_33.c, so it can be called for the eb64plus also.
1998-11-19 02:28:56 +00:00
ross 372977cf54 Nuke the final holdout of INTRNAMES_DEFINITION.
Do a nice gas.new .rept/.endr loop and also pad each string with spaces
in case a platform actually does want to rewrite the names.

G/C some EVCNT_COUNTERS stuff.
1998-11-19 02:27:29 +00:00
ross b9fa3646cb #include <machine/intrcnt.h>
#include <machine/alpha.h>
g/c some EVCNT_COUNTERS stuff.
1998-11-19 02:23:15 +00:00
ross c6c1b0098f #include <machine/alpha.h> 1998-11-19 02:22:01 +00:00
ross ee226b43f1 Include <machine/alpha.h> and do not directly include <bus.h> 1998-11-19 02:20:07 +00:00
ross 7221bd8229 +#include <machine/alpha.h>
-#include <machine/bus.h> (done for you by alpha.h)
Take the junk I/O chip IDE channel frobber and move it to machdep.c.
1998-11-19 02:05:07 +00:00
ross d3509bcc51 Clarify the 1000/1000A situation: two variation tables and an all-purpose
backup platform.family string.
1998-11-19 02:02:45 +00:00
ross 9b7ad6c70c #include <machine/alpha.h> 1998-11-19 01:59:39 +00:00
ross 8470625657 New module to hold the alpha-specific prototypes that don't need to be
exported to the MI kernel. Almost everything here was formerly in cpu.h.
Optionally, this module could in the future be used to #include anything
that is always needed by arch/alpha modules.
1998-11-19 01:57:56 +00:00
ross 19a4c3110c Rip out 70 lines of (all of) the port-alpha-specific decls and prototypes.
They should not be visible to the MI kernel and the MI kernel shouldn't
depend on this junk.  Most of it moves to new module <machine/alpha.h>.

Leave badaddr() here, though, because it's used so widely.
1998-11-19 01:51:40 +00:00
ross e2e3ee52ae Nuke the giant ugly-as-sin per-platform INTRNAMES masterpiece.
I just cannot add one more platform without getting sick.
Instead, we do just one table for all platforms. More-or-less,
it was only the A12 that even named it's individual interrupts anyway.

Also, prototype set_iointr() here. It's a slightly odd place, but 10*
better than the old place it was, and this file is included by exactly
the perfect set of .c files for set_iointr() visibility.
1998-11-19 01:48:04 +00:00
ross a68dbb068a Stop including <machine/alpha_cpu.h>; we already export <machine/cpu.h>. 1998-11-19 01:42:37 +00:00
ross da8b1017f4 "extern struct rpb *hwrpb" belongs here (duhhh) 1998-11-19 01:41:36 +00:00