Commit Graph

17252 Commits

Author SHA1 Message Date
drochner 52c16cf83a get "opt_compat_svr4.h" out of <sys/conf.h> 1998-12-18 16:55:39 +00:00
drochner 0f6572f2b1 COMPAT_xxx option review: add missing opt_compat_netbsd.h 1998-12-18 15:49:40 +00:00
kleink fec2cc52f3 T_SVR4_GETHRESTIME returns a nanosecond quantity in %o1. 1998-12-17 22:26:02 +00:00
gwr 271b8ff5ba Sync with GENERIC 1998-12-17 06:46:55 +00:00
gwr ec630d208f Fix some "unused variable" warnings (if !HAVE_CACHE) 1998-12-17 06:17:45 +00:00
tron 67693a18b7 Sync with "GENERIC" and fix description. 1998-12-17 00:07:08 +00:00
minoura 72bcdb203b Synced with GENERIC. 1998-12-16 14:10:38 +00:00
christos 5b07a26bc4 Add a commented out entry for tcom. 1998-12-16 11:42:07 +00:00
kleink 1b6a24c1d4 Support for compound statements enclosed in parenthes to appear as
expressions is a GNU C extension; mark as such them with __extension__ to
suppress portability warnings.  Addresses kern/3562 and misc/6185, as suggested
by Dave Sainty <dave@dtsp.co.nz>.
1998-12-16 11:11:02 +00:00
itohy 36416d8500 Added options COMPAT_LINUX and EXEC_ELF32 as comments
to GENERIC configuration files.
1998-12-15 19:50:00 +00:00
itohy c05dadc113 Added COMPAT_LINUX support. 1998-12-15 19:36:36 +00:00
christos a6406e330a 1000000000 nsec != 2^32 nsec. (from kleink). Also had eax and edx backwards. 1998-12-15 16:10:42 +00:00
christos 9a2a015957 1000000000 nsec != 2^31 nsec (from kleink) 1998-12-15 16:06:15 +00:00
is 920aad33e4 Support for Hypercom 3+ / 4+. Untested yet, but its only some additional
entries in a table.
1998-12-14 20:33:45 +00:00
itohy 643e0d4cc2 Added intr.h 1998-12-14 19:04:58 +00:00
kleink 342b5e5134 Also need to initialize the queue length of a newly allocated fpstate. 1998-12-14 16:18:46 +00:00
itohy b40f2a1c88 Make egcs happy. 1998-12-14 15:22:04 +00:00
christos 80f51bcef4 Add an entry point for the solaris 2.6 fast trap vectors, used by the
high resolution timer calls.
1998-12-13 19:31:26 +00:00
christos 4959a9fca6 Add defines for the fast trap vectors. 1998-12-13 19:27:51 +00:00
kleink a2aacaedde Add -Werror and -Wmissing-prototypes, like most other ports do. 1998-12-13 19:19:38 +00:00
kleink adddbfb644 obio_find_mapping(): int -> vaddr_t where appropriate. 1998-12-13 19:08:43 +00:00
kleink 58f85c298a Printf format warning cleanup: the type of the result of a shift operation is
that of the promoted left operand.
1998-12-13 18:14:30 +00:00
christos 885e96c95e Correct problem with UESP, still does not work properly. 1998-12-13 18:07:27 +00:00
kleink 072888839b Printf format warning cleanup. 1998-12-13 18:00:10 +00:00
kleink 1bf1bbfc56 xdc_piodriver: sync function definition with declaration; also eliminates
the use of a char as an array subscript.
1998-12-13 17:57:19 +00:00
minoura 6aa085a693 Splitted out the interrupt handling code to a separate file.
Disallow getting down the interrupt level by splXX.
1998-12-13 15:04:01 +00:00
is 2b1c171400 appease egcs-1.1.1. 1998-12-12 20:05:07 +00:00
mycroft b28c62f40d Run async_update() even if something is select()ing. 1998-12-12 17:29:39 +00:00
mycroft b3c9835be1 r13-r15 -> sp, lr, pc 1998-12-12 17:28:05 +00:00
drochner be595f36c4 document support for Intel 82557/82558 1998-12-12 15:51:49 +00:00
drochner 6f71e420f3 add support for the Intel 82557/82558 fast ethernet chip 1998-12-12 15:47:05 +00:00
gwr 02b9dc7632 Switch to MACHINE_NEW_NONCONTIG (Yea! Finally!:) 1998-12-12 05:28:24 +00:00
gwr e7810fa812 Fix MACHINE_NEW_NONCONTIG support (UVM works now:)
thanks to Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Closes PR#6540
1998-12-12 05:25:01 +00:00
thorpej ebd6430388 Add some brackes to make EGCS happy. 1998-12-11 18:46:18 +00:00
mrg f3e2980d41 note thta installboot.8 is built in share/man. move installboot.8 back to the same place the sources are, just build it in an MI location. 1998-12-11 12:18:46 +00:00
mrg 30964865f6 change -d (debug) to -n (nowrite) as they have the same effective meaning, but -n is what sparc uses. use partition c as that will generally be what the user wants. 1998-12-11 12:15:44 +00:00
mrg a73ed687d6 add an installboot man page, based on the old sparc on but with large bits ripped out 1998-12-11 12:14:53 +00:00
mrg 29a68943af note installboot.8 is built in share. 1998-12-11 12:14:22 +00:00
mrg 7a39c6352a - exec the command
- exit 0 if we don't run it
- look for the disk in /dev/${disk} /dev/${disk}a as well as ${disk}
- look for the bootblock in /usr/mdec.
- exit if we can't find either the bootblock or disk.
1998-12-11 11:46:54 +00:00
tsubai c232b5d803 Add wdc. 1998-12-10 20:49:17 +00:00
tsubai b517a9d3d8 Add wd and atapi. 1998-12-10 20:21:28 +00:00
tsubai ef27ffc3de Add ata/atapi disk support. 1998-12-10 20:10:03 +00:00
augustss e481435c53 Add sv driver. 1998-12-10 19:01:41 +00:00
ragge 5fb70e2fcc Use vt100 console emulation instead of sun. :-) 1998-12-10 18:24:52 +00:00
leo bfd59f416b Another patch from 'maximum entropy':
* Add to copyright notice.
* Replace the bad probe that caused your problem in the first place
  with a better one.  This probably means we could do away with the
  type hints you added, but it won't hurt to leave them.
* Improve performance by not wasting a memory access in the buffer
  copy/zero routines.
1998-12-10 15:55:25 +00:00
augustss 3334421666 Comment out sv audio device, the driver is not in the tree yet. 1998-12-10 15:46:20 +00:00
ragge 3a8728fa4f Fix deadlock bug. Pointed out by maximum entropy. 1998-12-09 19:02:31 +00:00
leo a4fea93ff3 Make sure that my Riebl card (with empty battery) is not detected
as an BVME410...
1998-12-09 08:51:12 +00:00
leo 5335909035 BVME410 ethernet driver by 'maximum entropy'. 1998-12-09 07:33:59 +00:00
augustss 8398f3a4db Add ugen, a generic USB driver. 1998-12-08 15:52:31 +00:00
dbj 54a0e65b02 initialized unused dma registers to 0xdeadbeef instead of 0 to aid debugging. 1998-12-08 09:35:07 +00:00
tsubai ea6bba6b90 Fix a typo. 1998-12-07 17:17:14 +00:00
nisimura 14b18ffcb5 - Remove improper casts mistakenly creeped in the last commit. 1998-12-07 04:21:57 +00:00
tsubai fbeabd992c Implement sparse bus space support. 1998-12-06 15:39:12 +00:00
ragge 5ff97947fe Search for NCR controllers, but not on VS4000/60. 1998-12-06 14:33:54 +00:00
ragge fec054bd9a Simple hack to get at least PIO functionality out of the VS2000/3100 ncr5380.
Fixed by Jens Arvid Nilsson.
1998-12-06 13:55:09 +00:00
mjacob c2e84d0cde What was missing here is the mapping between our booting SCSI bus number
and the parent (hba) path from which we booted from. As a temp fix,
we'll only go with the first match to set altbootdev- not additional matches.
The problem was further exacerbated by the fact that cnpoll doesn't seem
to work on serial consoles.
1998-12-05 21:05:44 +00:00
mjacob 74bc9f26d5 Update HBAs to incorporate the new max_lun property. 1998-12-05 19:43:33 +00:00
jonathan 340efce0ea Track PV_REFERENCED bit as for PV_MODIFIED, to make mdsetimage work correctly.
Compatiblity with Mach VM: clear pmap-private bits in pmap_remove() if !UVM.
1998-12-05 09:13:09 +00:00
jonathan aecf708ee3 Clean up kernel PTE allocation. Allocate space for maxproc kernel stacks.
Bump UVM swap-map to avoid panics on large swap machines.
1998-12-05 07:50:12 +00:00
jonathan ea1aa3511c #ifdef _KERNEL around cpu_exec_ecoff_setregs() prototype. 1998-12-05 07:26:11 +00:00
thorpej 7fa243e59e Pass the symbol table size, like a.out. 1998-12-04 20:22:36 +00:00
thorpej 2d7f8f3343 Support both a.out and Elf32 symbols in DDB. 1998-12-04 20:19:22 +00:00
nisimura 75ff38a27d - Fix an error in primary cache line size detection logic; when IC and/or DC
bit is 1, then line size is 32.  Otherwise, 16.
1998-12-04 10:32:08 +00:00
nisimura 9f33638436 - Fix and improve confusing indentations inside trap().
- Don't make a reference of curproc when it has NULL value.  It causes
double fault upon a fatal panic ocation.
- Macro FETCH_INSTRUCTION() took a value of address 0.
-
1998-12-04 04:35:44 +00:00
sakamoto 0bba7a7eca Not used. 1998-12-04 00:17:49 +00:00
pk 5d9f86821c Add a device_register() function to determine the boot device.
Use it in addition to the old method for a while, so we can take note
of any glitches easilier.
1998-12-03 23:49:58 +00:00
bouyer 47ab212504 Rename pio_mode, etc ... to PIO_cap, etc ... for consistency with the
ata_drive_datas struct. Suggested by Soren S. Jorvan.
1998-12-03 18:24:30 +00:00
tsubai 619952b3ee Not used. 1998-12-03 11:05:18 +00:00
nisimura 3c6a704193 - Use explicite structure member reference with 'struct frame' to alter
register values of exception frame pointed with p->p_md.md_regs.
- Local auto variable 'cpustate' in cpu_coredump() was never used correctly.
1998-12-03 06:28:45 +00:00
sakamoto 64ba00be2c Change r_type bit field size 5 to 6 and reduce unused bit(2 to 1).
Suggested by Mirian Crzig Lennox.
1998-12-03 05:15:06 +00:00
ross 33038ca087 Tweak this so it will build and run on ILP32 hosts, anyway, 0x...LL constants
are blessed by the C9X draft.
1998-12-03 04:16:18 +00:00
thorpej da572a137f Argh, fix the ANSI CPP version of the a.out WARN_REFERENCES(). 1998-12-02 21:16:46 +00:00
tsubai 4cb00b9fe2 Adapt to gcc change (calling sequence). 1998-12-02 14:23:03 +00:00
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