Commit Graph

7542 Commits

Author SHA1 Message Date
pk 4c8828e743 init `mode' field in sunaudiogetinfo(). 1995-05-04 19:46:31 +00:00
pk 7d244351cf Add `evcnt' field. 1995-05-04 19:43:27 +00:00
pk 089ab8e266 define audio `evcnt' field. 1995-05-04 19:42:36 +00:00
pk 9e61204b61 Tally interrupts. 1995-05-04 19:41:35 +00:00
cgd 2e0e8fc49d use the machine-independent definitions for the mc146818.
wrap the various uses of the chip (including the uses of the NVRAM on it)
around the new defintions, structures, and functions specified in the header.
1995-05-04 19:39:08 +00:00
cgd 7153343684 two cases to quiet the compiler. perhaps should be fixed differently. 1995-05-04 19:35:20 +00:00
cgd 5d25b2c50e machine-independent definitions for the Motorola MC146818A Real Time Clock
and compatible chips, including the  Dallas Semicontuctor DS1287A.
This chip is used in PC's, DECstations, and Alphas, at least...
1995-05-04 19:31:18 +00:00
mycroft 40b72cc7a2 Wrap NGDT and NLDT in parens. 1995-05-04 05:37:39 +00:00
mycroft 78356f06b3 Add two vprint()s, to give more informative panic messages. 1995-05-04 03:11:06 +00:00
mycroft 0175317fc3 If we decide to use IRQ 13, explicitly turn off CR0_NE to be sure. 1995-05-04 00:30:56 +00:00
mycroft 94f4346537 Update a comment to match that last change. 1995-05-04 00:20:40 +00:00
mycroft f0a42753e4 npxinit() should not be called during autoconfig now. Watch for this
condition.
1995-05-04 00:16:40 +00:00
mycroft e03a827a0a Move some comments from before npxsave1() to before npxsave(). 1995-05-04 00:00:25 +00:00
mycroft bfef4c14c5 Slight rearrangement, to make the TS handling easier to follow. 1995-05-03 23:09:37 +00:00
mycroft 99224602b4 Only dump the FPU state if the process actually used the FPU. 1995-05-03 23:05:46 +00:00
cgd 011aa68805 looks like some extra ')'s were left in here. 1995-05-03 21:38:57 +00:00
mycroft d23aebf3bb Fix pccnpollc(). 1995-05-03 20:46:32 +00:00
ragge a412d4803c mtpr support for 11/780 added. DELAY added. mcount() corrected.
trapframe fixed to support all registers.
1995-05-03 19:53:40 +00:00
mycroft 1d2f0bce2a Make the byte-shifting code consistent. 1995-05-03 19:38:45 +00:00
ragge 35d394d7e4 Changed conf.c to new style. Took away double saving of regs in traps.
Changed boot() to use vfs_shutdown(). Updated setregs.
1995-05-03 19:20:09 +00:00
cgd 1e0c08b206 uncomment cy driver spec; i386 conf.c needs the header file. 1995-05-03 17:09:28 +00:00
mycroft 6db4e1b58a By default, don't frob the ICU masks here. The software masking should
be sufficient.
1995-05-03 14:31:35 +00:00
mellon c6a24163a3 Use Alpha cdefs.h 1995-05-03 06:04:54 +00:00
mycroft f57d609a52 Use PCB_USEDFPU, and a small performance tweak. 1995-05-03 00:17:16 +00:00
cgd 66927585fc make an __indr_references macro, that expands to nothing... 1995-05-03 00:13:55 +00:00
mycroft e772f7c5ef Set PCB_USEDFPU. 1995-05-03 00:09:13 +00:00
mycroft 029176e96b Add PCB_USEDFPU. 1995-05-03 00:08:19 +00:00
jonathan 64b99b333d The pmax 3100 interrupt-init code is broken: cpu_startup() enables
interrupts before it calls configure().  On 3100s, this can result in
the ethernet interface interrupting before leprobe() is ever called.
Be a bit more defensive in leintr(), where it was dereferencing a null
pointer.  This reputedly fixes the oft-reported problems of 3100s not
ooting unless they're on an idle net or had a hard reset done before boot.
(Reworking the config code completely would be nice too.)
1995-05-02 20:00:09 +00:00
jonathan be2c7f3d13 If we panic inside trap(), Do a stack traceback before printing the trap log.
Also change the stack-traceback code to avoid having multiple returns
(and thus multiple stack pops) because with gcc -O2 that breaks the
heuristic that a "jr ra" preceding the PC precedes code to push the
current stack frame.  Which breaks stacktrace() before it even
traces past itself :-(.  Use a goto instead.
1995-05-02 19:51:52 +00:00
pk 0c8be3a288 Make sure kbdopen() ships the keyboard reset cmd. 1995-05-02 07:56:42 +00:00
leo 176d4dd6e5 Added -T option. 1995-05-02 05:54:28 +00:00
cgd 3d9ffd41f3 make this work sanely on a 64-bit machine. Sacrifices a small bit of
error checking in the DIAGNOSTIC case.  These changes might be backed out,
if it's decided that MINBUCKET should be 5 (rather than 4) on the alpha.
However, doing that has its own set of nasty consequences.
1995-05-01 22:39:11 +00:00
cgd 2581c66077 remember first error code (if any) that's different than ENOEXEC.
Not perfect, but there's no perfect solution to the "multiple interesting
error codes" problem.
1995-05-01 22:36:45 +00:00
mycroft 73fead01fc Fix typos. 1995-05-01 19:45:42 +00:00
mycroft 1ff4bb49de Adjust for new defn of md_regs. 1995-05-01 19:33:17 +00:00
mycroft bc5a1863db Declare sigcode and esigcode. 1995-05-01 19:01:45 +00:00
mellon edab8dc1d9 Oops, took out a bit too much 1995-05-01 17:35:45 +00:00
mellon 7bada980a5 Oops. Undo some console code checkins that didn't belong. 1995-05-01 17:22:20 +00:00
mycroft 88f28c3996 Fix typo. 1995-05-01 14:19:14 +00:00
mycroft 8792c8e284 Save and restore %fs and %gs across signals. 1995-05-01 14:15:07 +00:00
mycroft 4eea138a48 Add sc_gs and sc_fs. Move sc_onstack and sc_mask to end. 1995-05-01 14:14:11 +00:00
pk c78dd5a369 New location & definitions for audio driver. 1995-05-01 14:13:45 +00:00
mycroft bbfcbb8483 Add VM86 segment registers to trapframe. 1995-05-01 14:13:26 +00:00
mycroft cef0c43dee Stylistic changes, and we don't need KERNEL any more. 1995-05-01 13:16:16 +00:00
mycroft c55ef2fd64 Always reload the LDT iff we reallocated its storage. 1995-05-01 13:13:20 +00:00
mycroft 953e339aa0 Stylistic changes tp cpu_exit(). 1995-05-01 13:09:43 +00:00
mycroft f745c10020 Eliminate _gsel_tss and _default_ldt. 1995-05-01 13:02:24 +00:00
mycroft e5d7ebde66 Update to match include files. 1995-05-01 11:07:40 +00:00
mycroft 0ea347bf51 Update for changes in segments.h. 1995-05-01 10:43:01 +00:00
mycroft bce8e94dd2 Correct comments in gdt_segs[] and ldt_segs[] initializers. 1995-05-01 09:08:27 +00:00
mycroft 5d17674312 Remove IdlePTD. 1995-05-01 08:53:13 +00:00
mycroft 87b25c7f5c Update to match include files. Eliminate _ucodesel, _udatasel, and IdlePTD. 1995-05-01 08:25:30 +00:00
mycroft ae11bd216c Remove historical garbage. 1995-05-01 08:14:25 +00:00
mycroft 17dd9534bf Update to match include files. Eliminate _ucodesel, _udatasel, and IdlePTD. 1995-05-01 08:06:22 +00:00
mycroft 5a7e987371 Make md_regs a pointer to a trapframe. 1995-05-01 07:56:20 +00:00
mycroft f32276958e Use segments.h, and some other cleanup. 1995-05-01 07:55:21 +00:00
mycroft 33e0286648 Remove PCB_SAVEFPU. 1995-05-01 07:55:04 +00:00
mycroft 8b51849f9d Make this includable from locore. Remove unused GDT and LDT slots. 1995-05-01 07:37:43 +00:00
mycroft c2e46efab2 Rename ibcs2_sigflags to __spare, but leave the space for now. 1995-05-01 04:53:24 +00:00
mycroft 7688f4456e Remove usages of ibcs_sigflags. 1995-05-01 04:50:28 +00:00
mycroft 92e9818c88 Expose idt[] here. 1995-05-01 04:49:51 +00:00
mycroft b8d3de2758 Add pcb_cr0. 1995-05-01 04:49:28 +00:00
mycroft 17a5f987ba Be more aggressive about lazy saving and initialization. 1995-05-01 04:47:43 +00:00
mycroft 825d2fee22 Add Masahiro SEKIGUCHI's MB8696[05] driver, ported, with some additional
changes by me:
* Make autoconfiguration work correctly for more models of AT1700.
* Make the debugging code more robust and complete.
* Tweak the output routine for better performance, and to eliminate an ugly
kluge.
Various other style cleanup.  Needs more work.
1995-05-01 02:47:07 +00:00
mycroft 03e77f5565 Tweak the output routine for slightly better performance. 1995-05-01 02:39:30 +00:00
mycroft f55c4a0a19 Another trivial optimization. 1995-05-01 01:24:04 +00:00
briggs 34e5f975f9 Don't set mrg vectors if we're using the serial console--this allows
machines w/ non-working desktop bus to actually get on with booting.
1995-04-30 17:01:06 +00:00
leo 58cd4c0a1d Get 68040 defines in line with other 68k ports so libkvm/kvm_m68k.c compiles
cleanly.
1995-04-30 14:02:12 +00:00
leo f677a89489 Small changes in dma locking code. 1995-04-30 12:06:01 +00:00
leo 12c60f7bc0 Complete rewrite, made necessary because Falcon SCSI needs to share
NCR5380 and DMA access with floppy.
1995-04-30 12:04:48 +00:00
leo e95337c226 Added lock status bits, update function prototypes. 1995-04-30 12:02:03 +00:00
leo fb4939eddf Moved softint definitions still in cpu.h into mtpr.h and did some minor
cleanups.
1995-04-30 12:00:31 +00:00
leo 8996e3866b - Move softint definitions to mtpr.h
- Add flags for TT/Falcon model for machineid, we definitely need them
1995-04-30 11:56:22 +00:00
cgd 4d059559f7 resurrect, and move files.pmax.newconf to new location. 1995-04-30 10:11:00 +00:00
cgd 14b1452a90 kill unnecessary blank line at end of file 1995-04-30 07:03:13 +00:00
cgd b835913465 first arg to open() is a 'const char *'. pointed out by David Brownlee
in pr 1004.
1995-04-30 03:57:54 +00:00
cgd 9b7c37148b new-config files list. missed this yesterday. 1995-04-30 02:44:44 +00:00
jonathan fb9f07db36 Update MIPS stack backtrace code to trace through locore functions,
traps, and interrupts  The earlier (4.4bsd) code didn't do the first two, and
got the last one wrong.  Also print some functions (e.g., trap handlers)
by name.  Add hook to use something other than printf() as the output
function, e.g,. for kernel debugging.
Tested with the `native' toolset, but not ELF format kernels.
(i.e., unwinding the $GP register is not tested.)

The stack backtrace code that interprets and unwinds stackframes is still
opaque and stylistically awkward.
1995-04-29 21:10:31 +00:00
briggs 59b4da2b39 Add new nubus handling that's much more robust.
Update via, if_ae, and grf accordingly.
Revamp grf.
1995-04-29 20:23:36 +00:00
cgd 7cc5a0ed42 make FLT_ROUNDS call __flt_rounds, so dynamic rounding mode is grabbed. 1995-04-29 05:45:44 +00:00
cgd c075955b09 kill historical cruft 1995-04-29 01:56:59 +00:00
cgd 18d9d7e5ef first cut of the alpha version. 1995-04-29 01:09:17 +00:00
jonathan f54398dae4 Add prototype (new-style) config for pmax. This doesn't yet work;
auto-configuration initialization code is missing. It uses "needs-count"
flags to come slightly close to what the old-style pmax source expects.
Perhaps autoconfig code can be lifted from the alpha port or volunteers
found to write some.
1995-04-28 23:34:39 +00:00
jonathan b2c7420e5a Fix performance bug in pmax MachFlushDCache(). Old code disabled icache
and wasn't unrolled. This code runs cached and unrolled, giving an order
of magnitude improvement in some cases (e.g., DMA-capable network devices).
In use at Stanford DSG since late January 1995.
1995-04-28 23:17:51 +00:00
christos 0cd2332f66 sigcode is svr4_sigcode 1995-04-28 23:11:37 +00:00
jonathan 026a077a5d Check in source code actually containing changes in previous log message--
fixes to turbochannel-based DECstation interrupt enabling.
(I hate network firewalls that break rsh and remote CVS.)
1995-04-28 22:50:29 +00:00
jtc ac3b1189c1 ns32k specific portions of ieeefp.h (fp_rnd, fp_except, constants, etc.). 1995-04-28 22:01:25 +00:00
jtc 7fea99983f Changed FLT_ROUNDS from constant to a call to __flt_rounds(), so that the
current rounding mode is accurately reported.
1995-04-28 21:58:57 +00:00
jonathan 523e8bccbc Fix hardware interrupt-mask setup in the 5k/240 (3max)+ interrupt handler.
(A similar fix needs to be applied to the 3min and xine handlers.
This fixes a long-standing problem when booting with a card that
wants to interrupt (e.g., a network interface) would have interrupts
enabled before a handler was set up.

Add interrupt-counting code to model-independent interrupt handler,
and 3max (5k/200) and 3max+ (5k/240) md handlers, for vmstat -i.
Similar changes for 3min and xine are obvious but not done.

Add  code for 5k/240 to read, and latch, the current value of the
IOASIC bus-cycle counter at each timer interrupt.  The latched
counter is needed to accurately interpolate the bus-cycle counter value
as a high-resolution clock.
1995-04-28 21:48:11 +00:00
leo 9dde470095 - Remove cpuspeed
- Remove dead code  (stmem_steal())
- Use round_page() on st_pool_size before using. This prevents crashes
  when it is 'binpatched' with a value that is not a multiple of the
  page size.
1995-04-28 11:41:53 +00:00
leo d3056f9136 CD-ROM drives added. 1995-04-28 11:36:33 +00:00
leo cd29a7f291 Better way to select a display mode? 1995-04-28 11:34:33 +00:00
leo d3bb44e8f2 Made no_ttram_dma patchable instead of a define. 1995-04-28 11:33:01 +00:00
cgd 0e59975fac rename files files for new config/config.old naming 1995-04-28 08:19:12 +00:00
jonathan 07992ead4b Add memory-mapped address of the IO ASIC TurboChannel bus-cycle counter,
as present on 5k/2xx and Alpha IOASICs. Older machines may or may not
have the hardware counter. To be used as a high-resolution DECstation clock.
1995-04-28 04:44:21 +00:00
jonathan ef8023a47b Check in changes suggested by Ralph Campbell: update variable names
to use turbochannel slot numbers, add a couple of extra slots, just
in case.
1995-04-28 03:10:41 +00:00
hpeyerl c9319ad5c4 <break> --> ddb if defined(comconsole).
(if you have a serial console and you hit break, you get ddb).
1995-04-28 00:34:08 +00:00
mellon 59f33bea48 Add sfb device driver 1995-04-27 20:52:39 +00:00
leo ecec677e0c Removed cpuspeed 1995-04-27 20:34:13 +00:00
mycroft a9313f09e4 Speed up handling of short and/or misaligned mbufs significantly. No change
in the `normal' cases.
1995-04-27 17:18:22 +00:00
hpeyerl 686da9ddb7 copyright foo. 1995-04-27 14:50:58 +00:00
pk 1138c9d047 Handle KIOC[GS]LED ioctls; from Lon Willett. 1995-04-27 14:27:11 +00:00
christos 9cc011e7a1 Use new files.sunos and old files.svr4 :-) 1995-04-27 12:16:31 +00:00
christos 843a2a3539 Use new files.sunos 1995-04-27 12:08:54 +00:00
christos b9771ef7b1 Try to make the reboot system call compile under sun3 with RB_STRING
support [not tested]
Add files.sunos
Rename system call switch table file from sunos_init_sysent.c to sunos_sysent.c
like other emulations.
1995-04-27 12:05:37 +00:00
phil b9c4f23337 needs-count => needs-flag 1995-04-27 07:26:08 +00:00
phil 042a0e2c63 remove warnings in pmap.c 1995-04-27 07:19:09 +00:00
phil 83e651c4c4 scntty & reorg using softc stuff. 1995-04-27 07:18:02 +00:00
phil a186461a00 conf.c: ptstty ...
machdep.c: setregs parameter type change, remove warnings
process_machdep.c, pmap.c : remove warnings
1995-04-27 07:16:31 +00:00
mycroft 6bb0f284d0 Turn off some debugging code by default. 1995-04-27 01:46:47 +00:00
gwr 63fcfd3c89 Disable the cache stuff for now. Add more comments. 1995-04-26 23:42:35 +00:00
gwr a72c4b5e5d SUNOS_SYS_sigreturn -> SUNOS_SYS_sunos_sigreturn
Also, add check for trap during panic.
1995-04-26 23:39:04 +00:00
gwr c75b9fd69a Avoid null reference with unsupported configurations. 1995-04-26 23:30:08 +00:00
gwr 8ba352c1a9 Use vfs_shutdown() 1995-04-26 23:25:26 +00:00
gwr cc9cf5119d pt_tty -> ptytty 1995-04-26 23:24:13 +00:00
gwr db42cb9416 Some corrections for cache control. Still needs work... 1995-04-26 23:23:20 +00:00
gwr ac1a62db29 Add xxtty() 1995-04-26 23:20:15 +00:00
gwr 6d7bcdbd2a Add work-around for LANCE Rev. C bug.
Needs to be fixed for multicasts...
1995-04-26 23:19:16 +00:00
gwr f4d7b9097d Make sunos_reboot(RB_STRING,"...") work for sun3.
Could be made to work for sparc too.
1995-04-26 23:12:02 +00:00
brezak 1f4378da60 Fix nits from Mike Long <mike.long@analog.com> PR#996 1995-04-26 21:45:57 +00:00
pk d4f78febcf define LED controls 1995-04-26 14:24:54 +00:00
pk a1175c74a0 Fast checksummer from Matthew Green. 1995-04-26 13:30:03 +00:00
mycroft 7dbfb9ead9 Macroize a few more things; suggested by Matt Green. Cast pointers to long,
not int.  No functional differences.
1995-04-26 09:40:36 +00:00
mycroft 4c3aafc732 Fix typo in previous changes. 1995-04-26 00:00:23 +00:00
christos 7a2ec6be4b Make this compile again... 1995-04-25 21:57:10 +00:00
mellon 43da4827ae sigcode and esigcode aren't defined for ultrix emulation 1995-04-25 21:51:15 +00:00
christos 2ca157b084 Make this compile again; from Ted Lemon 1995-04-25 21:10:01 +00:00
pk eb8a2e27a0 New audio driver. 1995-04-25 20:08:13 +00:00
pk 794f74a0cf Audio driver name change. 1995-04-25 20:07:10 +00:00
pk 8d90aefeb0 New audio driver from Rolf Grossmann. 1995-04-25 20:05:32 +00:00
pk e9177420ca NetBSD RCSid 1995-04-25 20:01:23 +00:00
pk 6d68e2f26f Remove duplication of code from subr_autoconf.c 1995-04-25 19:59:49 +00:00
mellon 1992309f8b Fix a few compat code casualties 1995-04-25 19:16:43 +00:00
cgd 7c7142b1cf status report 1995-04-25 18:59:14 +00:00
cgd 4061570286 Add 'users to-do list' 1995-04-25 18:16:15 +00:00
pk 700118da76 Stop-gap measure to prevent panic when select()ing on /dev/console. 1995-04-25 17:52:43 +00:00
pk 64f2d35a0f Do not report each pseudo-DMA overrun as a (soft) error.
Add a small heuristic to converge on an acceptable threshold value.
1995-04-25 14:44:44 +00:00
ragge 589f248bad Cleanup and fixes for uVAX boot. 1995-04-25 14:14:19 +00:00
mellon 3eca8117f7 Fix up args to scdebug_{call,ret} 1995-04-25 05:30:14 +00:00
gwr d73db495da Fixed RPC code to deal with RPC messages larger than one mbuf. 1995-04-24 21:54:56 +00:00
gwr e49b0de53f short -> int (alignment) 1995-04-24 21:34:04 +00:00
pk 6404739df8 AMD9730 telephony chip (used to be sparc/dev/bsd_audioreg.h). 1995-04-24 19:17:17 +00:00
pk 30f71c550f A couple of fixes frm Rolf Grossmann. 1995-04-24 19:13:52 +00:00
cgd fab3d7b117 kill a bogus NOTREACHED, fix spacing 1995-04-24 06:24:19 +00:00
chopps df9af2897a bring up-to-date with recent conf.c and sunos changes. 1995-04-23 18:24:21 +00:00
chopps 10eb24c459 add needed signal debug stuff so it will compile with DEBUG 1995-04-23 18:22:14 +00:00
chopps 35bb9b1ffd new grfcl driver submitted by Ezra Story <ezy@panix.com> 1995-04-23 16:20:43 +00:00
briggs c937b8a519 Fix compiler error in sunos_reboot(). 1995-04-23 01:00:46 +00:00
briggs a2bc99d6f1 Make these compile again. 1995-04-23 00:37:23 +00:00
briggs 11632db942 Make this actually compile... 1995-04-23 00:27:48 +00:00
christos 79e736e176 syscalls.master was changed 1995-04-22 23:48:37 +00:00
christos ebdad87ea2 Added sunos_reboot(). 1995-04-22 23:45:29 +00:00
christos 00e1cff41a Shared sunos_machdep.c 1995-04-22 23:43:07 +00:00
christos 5f162d51b1 Moved sunos_machdep.c to m68k 1995-04-22 23:41:32 +00:00
christos 545f388282 Removed sunos_machdep.c 1995-04-22 23:40:24 +00:00
christos 94289bf2b0 Move sunos_machdep.c to m68k 1995-04-22 23:39:02 +00:00
christos 4bca9bf670 Remove sunos_machdep.c 1995-04-22 23:38:27 +00:00
christos 1d807c1a1d move sunos_compat.c to m68k 1995-04-22 23:36:56 +00:00
christos ac9454c2e1 remove sunos_machdep.c 1995-04-22 23:36:10 +00:00
christos 6cdccaf3ed Remove sunos_machdep.c and fix sunos_reboot. 1995-04-22 23:23:58 +00:00
leo 03df025c9d Change allocation algorithm to best-fit, fix bug in free_stmem. 1995-04-22 22:23:38 +00:00
leo 8e56abf0fa Define DELAY to call delay() 1995-04-22 22:20:36 +00:00
leo 3517d2e5ac - Prefix 'dma-defines' with DMA_
- Add function prototypes
1995-04-22 22:18:57 +00:00
leo dcdee517ef - Remove register access functions from dma.c -> fd.c and inline them
- Add write protect checking (mistereously disapeared during port)
- Make fdclose() return a sensible value
- Prefix 'dma-defines' with DMA_
1995-04-22 22:18:17 +00:00
leo e8312d3ac3 Adapt for new conf.h:
- Add xxxtty() functions
	- Remove xxx_tty array
1995-04-22 22:06:43 +00:00
leo c9a522cd2b Adapt for new conf.h. 1995-04-22 22:05:17 +00:00
christos 4bf1b61d8f Convert sun_ to sunos_ and fix sunos_sigreturn() bugs. 1995-04-22 21:23:18 +00:00
christos c5f01c2a4c Fixed comparison in SYS__syscall to be against sysent instead of
p->p_emul->e_sysent [Thanks Charles for pointing this out].
I think that this code needs to be fixed anyway for emulations where
SYS_syscall is not the same number as the NetBSD one (0)... (Only the
alpha port so far?)
1995-04-22 20:49:06 +00:00
christos de42a28a1b - added sunos_machdep.c for sun3, atari, amiga and mac68k.
- changed machdep.c and trap.c to use struct emul.
- remove ep_setup references.
- added struct emul to all emulations.
1995-04-22 20:24:40 +00:00
christos 44eef7c28b - added struct emul to all emulations.
- removed all setup functions.
- added copyargs() functions where needed.
1995-04-22 19:48:19 +00:00
christos 2a83f6028f makesyscalls.sh was changed. 1995-04-22 19:44:38 +00:00
christos 1c1cf96baf makesyscalls.sh was changed 1995-04-22 19:43:50 +00:00
christos 3d1b06ab09 - new copyargs routine.
- use emul_xxx
- deprecate nsysent; use constant SYS_MAXSYSCALL instead.
- deprecate ep_setup
- call sendsig and setregs indirectly.
1995-04-22 19:42:47 +00:00
christos 9575475067 - new struct emul for OS emulations.
- deprecated exec_setup_fcn
- deprecated EMUL_???
- added sunos_machdep.c for the m68k ports.
1995-04-22 19:40:29 +00:00
cgd b439a787bc kill a host of null dereference bugs... tracking down a _different_ bug,
i was getting "KSP INVALID" death.  It was being cause by never-ending
MM faults, caused by null derefs (of curproc) in the MM fault trap
handler.  the original MM fault was caused by a null deref (of
curproc, again) in the unaligned access handler!
1995-04-22 16:59:47 +00:00
cgd 5fe7be7a26 be a little smarter when printing syscall names & args 1995-04-22 14:17:18 +00:00
cgd a24d2f6e17 cast pointers to longs, print appropriately 1995-04-22 14:10:10 +00:00
cgd b94f71c618 prototype strlen; shouldn't be here. 1995-04-22 14:09:29 +00:00
cgd 29038d1929 cast pointers to longs 1995-04-22 14:09:00 +00:00
cgd f8e4de6a7a ints and pointers of various types are _NOT_ interchangable in protos 1995-04-22 14:07:54 +00:00
cgd 01208c85a3 cast pointers to longs, kill stupid local var return error, types. 1995-04-22 14:01:40 +00:00
cgd 586427643d various attribute poisoning, don't be as quick to specify size of files[] 1995-04-22 13:57:03 +00:00
cgd 4316c36ca7 cast pointers to longs 1995-04-22 13:53:48 +00:00
cgd 07231e5b52 note properly whether or not functions return, etc. 1995-04-22 13:51:19 +00:00
cgd 60b1ffa877 cast ptrs to longs, etc. 1995-04-22 13:50:27 +00:00
cgd 06b2dbd4dd cast ptrs to longs. 1995-04-22 13:47:52 +00:00
cgd 84d0d2f495 various type fixups 1995-04-22 13:46:50 +00:00
cgd 239425ba96 cast pointers to longs, not ints 1995-04-22 13:29:33 +00:00
cgd c7d6aa46d5 copy routines should take size_t lengths for prototype consistency.
don't assume that tick is >= 1000; loses badly on alpha (div. by zero)
only try unaligned copies if NetBSD's UNALIGNED_ACCESS symbol is defined.
various misc type size cleanups, mostly short -> int16_t.
1995-04-22 13:26:20 +00:00
briggs 74b3f483db Define DELAY. 1995-04-22 13:17:51 +00:00
cgd b5fb8715b0 quiet compiler warning via (ugly) cast 1995-04-22 13:08:30 +00:00
cgd 92fad4a481 be more careful when rounding sockaddr_dl sizes. also, one u_short * ->
u_int16_t * conversion.
1995-04-22 13:07:12 +00:00
cgd 725dc02e10 make tcflag_t an unsigned int (rather than unsigned long; alpha)
make tcflag_t an unsigned int (rather than long; alpha, POSIX)
make c_?speed members of struct termios be ints (rather than longs; alpha)
1995-04-22 13:03:10 +00:00
cgd 87725ecb8b use explicit type sizes for most data 1995-04-22 12:55:10 +00:00
cgd a67f72b7d6 kernel config files for jura.pdl.cs.cmu.edu and scapa.pdl.cs.cmu.edu,
the DECpc AXP 150 and the AlphaStation 400 4/233 in my office.
NEITHER TYPE OF MACHINE WORKS YET, and i'm not even going to be
working on the DECpc AXP 150 support any more.
1995-04-22 12:47:54 +00:00
cgd de324e173a clean up, change drive -> lun for mi scsi files description. 1995-04-22 12:46:06 +00:00
cgd 7a43f1fdc7 clean up a bit, use MI files lists. add a bunch of comments.
Also, include the EISA, ISA, and PCI files lists.
1995-04-22 12:45:08 +00:00
cgd 387a2d7ee1 kill some non-gnu-tools cruft, allow rest of programs to be parameterized 1995-04-22 12:44:08 +00:00
cgd 82315c022a get rid of bogus header inclusions 1995-04-22 12:43:22 +00:00
cgd 993d5501b3 promcnputc now returns void 1995-04-22 12:42:51 +00:00
cgd 12dae0a656 add option HALTLOOP to loop in boot() instead of halting/rebooting 1995-04-22 12:42:01 +00:00
cgd 71fa065268 deal with renamed header file. 1995-04-22 12:41:05 +00:00
cgd 97cd254342 console putc returns void 1995-04-22 12:35:17 +00:00
cgd 610d597217 adjust for networking code changes 1995-04-22 12:34:15 +00:00
briggs a992a8136c Add some multicast byteorder-related changes from djh@mulga.cs.mu.OZ.AU. 1995-04-22 12:08:12 +00:00
briggs dda57ad059 Use vfs_shutdown(). 1995-04-22 11:53:40 +00:00
pk d923e0ed9b Use vfs_shutdown(). 1995-04-22 10:00:50 +00:00
pk 1778fc8e4a eserve the equality "x == y*(x/y)+(x%y)" for negative y; from Lon Willett. 1995-04-22 09:37:39 +00:00
mycroft 20cf41aa94 Clean this up a bit:
* Abstract the conditional for immediate port numbers, and make it always
false if not optimizing.
* Add some whitespace to the string functions to make them more readable.
1995-04-22 03:59:59 +00:00
mycroft ca88acc618 Fix an oversight. 1995-04-22 01:25:41 +00:00
mycroft fb82503a03 Fix some outdated comments. 1995-04-22 00:58:19 +00:00
mycroft c78d8f5e0b Replace btl with testl. 1995-04-22 00:54:21 +00:00
mycroft 4cd20dfe0a Move some comments to more appropriate places. 1995-04-22 00:30:47 +00:00
mellon 71d223dc04 Add dummy fb device driver reference for compatibility with conf.c changes 1995-04-21 23:58:36 +00:00
mellon acc8d94430 Oops, still need to set waittime... 1995-04-21 23:04:32 +00:00
gwr 9e9c03fe49 Add this so "make cleandir" will work.
(Thanks to Kenneth Stailey)
1995-04-21 22:55:01 +00:00
mellon 88603eca8f Use vfs_shutdown to sync disks... 1995-04-21 22:16:01 +00:00
mycroft 954487037b Rearrange vfs_shutdown() slightly. 1995-04-21 22:09:53 +00:00
mycroft 84f803aef6 Add a return type for vaccess(). 1995-04-21 22:03:24 +00:00
mycroft 277d7e6f32 Add prototype for vfs_shutdown(). 1995-04-21 21:59:41 +00:00
mycroft 9dbd0e8627 Use vfs_shutdown(). 1995-04-21 21:56:59 +00:00
mycroft b4813fa24a Alias delay() to DELAY() for mi code. 1995-04-21 21:56:01 +00:00
mycroft f51cb8c974 Print a message for each file system that does not unmount cleanly. Add a
vfs_shutdown() routine that does the unmount and sync.
1995-04-21 21:55:11 +00:00
mellon 92509d125f Add support for clean flag 1995-04-21 20:54:04 +00:00
phil 83d1965cc0 Remove the "#if 0" around vfs_unmountall(). 1995-04-21 20:20:15 +00:00
mycroft b5eab728c1 Make this compile again. 1995-04-21 19:44:52 +00:00
phil c42a783b23 Add scncnpollc. 1995-04-21 18:36:32 +00:00
pk 87beda7b2a Implement zstty(). 1995-04-21 15:51:26 +00:00
pk 532a15a74e sync with sys/conf.h 1995-04-21 15:50:06 +00:00
briggs 9e1f939930 Get rid of old file from hp300 origins!? 1995-04-21 11:35:15 +00:00
mycroft 305ed29ba1 Remove profiling constants that are no longer needed. 1995-04-21 09:17:23 +00:00
mycroft bfab570cda Add constants for some keyboard controller commands. 1995-04-21 09:16:16 +00:00
mycroft 99a3edf2ea Move cpu_reset() from vm_machdep.c to machdep.c, and make it more robust. 1995-04-21 09:15:23 +00:00
mycroft 30e61f6c45 Make RB_KBD work again. 1995-04-21 07:56:40 +00:00
mycroft 7d349f24fb Clean up init386() a bit. 1995-04-21 07:53:52 +00:00
mycroft e530f4d515 Remove 486-specific CR0 changes into identifycpu(). 1995-04-21 06:43:18 +00:00
mycroft e4ab9f94f9 Remove the (unused) extra mapping of the first 1MB. Undo the double-mapping
of the first 4MB earlier.
1995-04-21 06:23:51 +00:00
mycroft 8190c2e3e7 Clean up hole conversion functions a little. 1995-04-21 05:21:37 +00:00
mycroft d3672cc33f We need isa_machdep.h for now. 1995-04-21 05:10:02 +00:00
mycroft d3971b501d Remove relocation of Crtat from locore. 1995-04-21 04:51:30 +00:00
briggs 5982b968a9 Enable nubus interrupts after registering. 1995-04-21 04:01:27 +00:00
briggs 7063b53b26 Separate nubus interrupt registry and enablement. 1995-04-21 04:00:55 +00:00
briggs 6bc53a2398 Handle grf_softc in the config.new manner.
Should have been done long ago.
1995-04-21 03:44:13 +00:00
briggs 13efb6c197 First pass of KNFication. Needs more. 1995-04-21 02:47:35 +00:00
mellon 6a233c363c Fix up tty struct change from conf.h 1995-04-21 01:24:26 +00:00
mellon 07a0117e2a Fix up tty struct changes 1995-04-21 01:21:06 +00:00
briggs 85025d789c Prototype iteopen correctly (oversight from a while back...). 1995-04-20 15:46:56 +00:00
briggs a6ba5f8f7e Update to use softc better and handle mainbus being indirect. 1995-04-20 15:32:01 +00:00
briggs 8288b9238d Make mainbus an indirect device--needs more work, but it does function. 1995-04-20 15:31:23 +00:00
briggs 64bd3f0995 Move to ptytty
Nuke the grf's reset space holder.
1995-04-20 15:30:22 +00:00
briggs df693904cd include mi scsi files file.
Change several devices from needs-count to needs-flag.
1995-04-20 15:28:54 +00:00
briggs 4137a8ff57 Add itetty(). 1995-04-20 15:27:43 +00:00
briggs a7f44caf1b Add a sertty() and update to use ser_softc instead of a bunch of arrays
everywhere.
1995-04-20 15:27:12 +00:00
briggs 1286501d43 Grab the sun3 cpu_coredump(). 1995-04-20 15:25:41 +00:00
phil 6fbf1113f7 Fix a mycroft typo. 1995-04-20 07:16:30 +00:00
mycroft cb856a9a4d Watchdog now takes an int, not a short. 1995-04-19 22:42:51 +00:00
mycroft 055a6395e0 Update to match conf.h 1995-04-19 22:37:27 +00:00
mycroft 0ded4e4007 pttty -> ptytty 1995-04-19 22:35:40 +00:00
mycroft b92e5976ff Rename pttty() to ptytty() to mimic ptyioctl(). 1995-04-19 22:33:56 +00:00
mycroft 44e9c73f2c Update for global changes. 1995-04-19 22:16:30 +00:00
mycroft 943618dbe5 Fix thinko in previous commit. 1995-04-19 22:08:08 +00:00
mycroft 9e28a35469 Fix thinko in previous change. 1995-04-19 22:04:33 +00:00
mycroft ac0d34236e Fix typo. 1995-04-19 21:32:32 +00:00
pk 6367e0730f Use db_printsym() for calls and branches. 1995-04-19 21:24:29 +00:00
pk af16724ee9 Avoid dereffing a fuzzy NULL-pointer. 1995-04-19 20:59:29 +00:00
mycroft 8854e7193d Remove d_reset, and change the uses of d_ttys as appropriate. 1995-04-19 19:22:15 +00:00
mycroft f1e8ea1dcc Kluge the *tty() routines until this port is converted to config.new. 1995-04-19 19:15:47 +00:00
mycroft 53d73c77a5 Garbage collect #includes. 1995-04-19 19:10:35 +00:00
mycroft 5e398279f4 Using cloning specs for rtfps subdevices. 1995-04-19 19:08:52 +00:00
mycroft 1f599fe30b Using cloning specs for ast subdevices. 1995-04-19 19:07:33 +00:00
mycroft 4c28b7cb87 Change `needs-count' to `needs-flag'. 1995-04-19 19:02:54 +00:00
mycroft e1315808a7 Implement comtty(). 1995-04-19 18:59:27 +00:00
mycroft cdd1a8eb54 Fix typo. 1995-04-19 18:58:14 +00:00
mycroft 7aaa443e99 Implement pttty(), and rename pt_ioctl to pt_softc. 1995-04-19 18:50:21 +00:00
mycroft 20b6b4f24d Change ttselect() to use a callback to get the tty structure. 1995-04-19 18:46:10 +00:00
mycroft aed68a1067 Implement pctty(). 1995-04-19 18:33:27 +00:00
mycroft b665ddf808 Implement pctty(). 1995-04-19 18:10:47 +00:00
mellon 8da89a0fc3 Fix leioctl declaration mismatch 1995-04-19 18:06:03 +00:00
mycroft cd09cbdae5 Remove d_reset. Replace d_ttys with a callback to the driver. Don't allow
select() on a framebuffer.
1995-04-19 18:04:57 +00:00
mycroft 7945dde65c leinit() returns void. Prototype more functions. Garbage collect some things
in leattach().
1995-04-19 16:23:11 +00:00
briggs 7345c91d2e 'twould help to unmount the filesystems, wouldn't it? 1995-04-19 14:01:58 +00:00
chopps 77c35a2e3b allow boot from cdrom. from osymh@gemini.oscs.montana.edu (Michael L. Hitch) 1995-04-19 13:02:57 +00:00
chopps 3e80dca508 unomunt file systems when rebooting from osymh@gemini.oscs.montana.edu (Michael L. Hitch) 1995-04-19 12:54:32 +00:00
pk bd52caa035 probeset() was trashing its arguments; fix from Chuck Cranor. 1995-04-19 12:49:27 +00:00
cgd 72632df1e2 they've moved. 1995-04-19 09:00:29 +00:00
cgd 3ff27e09e2 fixes (mostly) from Jonathan Stone, to make this driver match the
state of the world as expected by the networking headers/mi code.
i changed one or two things in his patch slightly (do the lestart()
proto the right way, actually delete the if_output assignment line).
1995-04-19 06:56:21 +00:00
cgd eb1375b9c2 fix my IPL level off-by-one. also, rename intr_disestablish to
isa_intr_disestablish like i meant to before.
1995-04-19 06:14:13 +00:00
briggs bf68945da5 Define struct ae_ring which is necessary because BYTE_ORDER == BIG_ENDIAN,
but the card is in x86 byte order mode because NuBUS does the swap "for us"
on 16- and 32-bit transfers.  We should probably figure some way to use
the std struct ed_ring if/when all the 8390 drivers are all fully merged.
1995-04-19 04:46:06 +00:00
briggs 2b1a13ab2f Initialize totlen in ae_put. Thanks to chopps for pointing it out!
Also, switch back from using struct ed_ring to using struct ae_ring
because BYTE_ORDER == BIG_ENDIAN, but the card is in x86 byte order
mode because NuBUS does the swap "for us" on 16- and 32-bit transfers.
We should probably figure some way to use the std ed_ring if/when
all the 8390 drivers are all fully merged.
1995-04-19 04:43:36 +00:00
cgd 19c27da954 comment out the scd major declaration 1995-04-19 02:54:12 +00:00
mycroft 496acd4619 Correct a couple of things, and add a `fe' device. 1995-04-19 02:11:10 +00:00
mycroft 6bb01cf7de Remove deprecated md prober/probew/kernacc/useracc. 1995-04-19 01:17:11 +00:00
ragge b7b88b1ba8 Typo. 1995-04-18 22:08:25 +00:00
ragge 52ecef9b87 Added missing #ifdef VAX750 1995-04-18 22:02:35 +00:00
ragge dfcfbc4f03 Added VAX specific makefile. (In libkern/arch/vax) 1995-04-18 21:59:46 +00:00
jtc 1fe49b966e Added prototypes for truncate() and ftruncate() along side the
prototype for lseek().

This *hack* should allow programs that use long instead of off_t for
file offsets and don't include <unistd.h> to work.
1995-04-18 18:02:44 +00:00
mycroft 82120d943b Finish updating for new interrupt registration mechanism. 1995-04-18 02:25:18 +00:00
mycroft 8c65e4734d Update setup functions for changes in exec.h. 1995-04-18 02:18:08 +00:00
mycroft 8874fd61ca Update to match generic ISA changes. 1995-04-18 00:59:53 +00:00
mycroft 800b1f371a Fix obvious bug in reading from SB_MIC_PORT. 1995-04-17 23:48:06 +00:00
mycroft fa37f29dc8 Make some functions non-static. 1995-04-17 23:04:31 +00:00
brezak 1b8667f0aa Add config for PSS 1995-04-17 22:44:38 +00:00
cgd 15552a0e17 if_le conflicts with the Alpha; move description back to i386 1995-04-17 20:23:32 +00:00
cgd af67271a66 try to actually (gasp!) describe the drivers. 1995-04-17 17:54:15 +00:00
cgd d61eaf6f6d ISA config.new files description. 1995-04-17 16:58:30 +00:00
cgd 6495969b94 use included files wherever possible. 1995-04-17 16:58:14 +00:00
cgd fac8a6879e MI EISA config.new file lists 1995-04-17 16:15:48 +00:00
cgd 27228062f9 config.new file lists 1995-04-17 16:12:14 +00:00
cgd 982230db44 update for new locations 1995-04-17 15:48:20 +00:00
cgd 8fe775c0de useless, as of the new sound drivers. 1995-04-17 15:29:06 +00:00
cgd dfeb819b45 move sound drivers to their proper homes. 1995-04-17 15:28:30 +00:00
cgd cf1c3ea213 these belong in dev/isa; they're being moved there now. 1995-04-17 15:22:27 +00:00
cgd c0caf19aac oops; forgot to delete this with my ISA autoconfig changes earlier 1995-04-17 15:17:24 +00:00
chopps dbd3d08cf0 set blocksize in adosfs_getattr(). fixes pr#968 1995-04-17 12:22:08 +00:00
cgd 8a640328ed clean up several ISA device interfaces: autoconfiguration, header
inclusion, and interrupt configuration.  more work still needs to be done,
but it's getting better...
1995-04-17 12:06:30 +00:00
chopps 78ec8e7701 terminate comment fixes pr#969 1995-04-17 11:50:36 +00:00
cgd 5f252bb8ea config.new files description for PCI mi files. 1995-04-17 07:46:10 +00:00
cgd 236ef3f326 include PCI machine-independent files list 1995-04-17 07:45:29 +00:00
cgd 14d777dff7 allow most program names to be overridden. kill a bogus } in a comment, and
an unnecessary blank line.
1995-04-17 07:30:54 +00:00
cgd 5f2be04d8e use CC="cc -Werror" for cc; kill bogus COMUNIT option 1995-04-17 07:23:50 +00:00
cgd 1b917f3802 use CC="cc -Werror" for cc 1995-04-17 07:23:34 +00:00
cgd 224a7f4533 config.new description of SCSI mi files. 1995-04-17 07:15:40 +00:00
cgd c03b53c2e8 spacing cleaup. also, minor type mixup fixups. 1995-04-17 05:32:52 +00:00
ragge 172d108798 Added SSIZE_MAX, SIZE_T_MAX, UQUAD_MAX, QUAD_MAX and QUAD_MIN. 1995-04-16 20:10:33 +00:00
jtc 4d37095e31 Fix typo: ieefp.h -> ieeefp.h. 1995-04-16 16:47:03 +00:00
chopps c9431dc99d new driver from charles. 1995-04-16 15:16:07 +00:00
leo 049520050c Get RAMD_NDEV in sync with definitions in rd_info. 1995-04-16 14:59:03 +00:00
leo c0f4a40a61 Make it consistent with conf.c . 1995-04-16 14:56:25 +00:00
leo 82aac3e84b Changed '#endif KERNEL' -> '#endif /* _KERNEL */'. 1995-04-16 14:55:09 +00:00
leo c2e83d3290 Make it work after last week's changes. 1995-04-16 14:53:14 +00:00
leo 7845638d97 Added maxpartitions. 1995-04-16 14:50:40 +00:00
leo 99344526c3 Get TT-RAM sizes right, some more debug output added with -D option. 1995-04-16 14:47:58 +00:00
gwr ef7ca50d54 Make less noise about CRC/Framing errors (Sun3/50 gets lots of them). 1995-04-16 01:52:07 +00:00
gwr a914f4e306 typo 1995-04-16 01:50:45 +00:00
briggs 38cb076019 Get this working. Mainly, don't always round to word transfers on
receive.
1995-04-16 00:14:54 +00:00
cgd edc749be89 cleanup; mostly KNF. 1995-04-15 10:35:24 +00:00
cgd e342075694 ni_pathlen should be a size_t 1995-04-15 08:12:35 +00:00
mycroft 5f41ce9281 Correct checks for NULLs in pagertab. 1995-04-15 05:11:35 +00:00
mycroft 04e937dcbd Don't boundary check I/O to the `raw' partition. 1995-04-15 05:01:26 +00:00
cgd df052e72a6 clean up some return-type warnings 1995-04-15 01:57:35 +00:00
cgd 13f5026553 fix timeval vs. timespec warnings 1995-04-15 01:56:43 +00:00
cgd eddc28046e type changes; fix compiler warning caused by new netinet code 1995-04-15 01:55:45 +00:00
mycroft 865e910590 Remove extra EMUL_IBCS2 case. 1995-04-14 23:30:54 +00:00
mycroft b88eec60bb Allow opening a FIFO with O_RDWR. 1995-04-14 23:30:14 +00:00
chopps 51a977efdc update doomed driver (i.e. its going to be replace soon) 1995-04-14 17:34:08 +00:00
chopps 4aa99e7423 bring up-to-date with recent chages (arpwhohas->arp_ifinit
and int xx_start->void xx_start)
1995-04-14 17:29:50 +00:00
chopps 999aa2cc32 update arc_input() proto to match reality. 1995-04-14 17:09:39 +00:00
chopps 5f90c17217 change args to arc_input also add check on link address which fixes pr#922. from Ignatios Souvatzis <is@beverly.rhein.de> 1995-04-14 17:06:39 +00:00
chopps ed0da4a701 couple small changes plus a new watchdog timer from Ignatios Souvatzis <is@beverly.rhein.de> 1995-04-14 16:57:19 +00:00
gwr 7bf92538bb prepare to enable the cache 1995-04-13 22:05:41 +00:00