Commit Graph

7542 Commits

Author SHA1 Message Date
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
gwr af7660dedf Recover from the crusade. (sigh) 1995-04-13 22:01:25 +00:00
gwr 06e64bc965 arpwhohas -> arp_ifinit etc. 1995-04-13 21:54:55 +00:00
gwr 6ab590ff6b fix typo 1995-04-13 21:51:34 +00:00
gwr c1ff5b5570 Add cache.c 1995-04-13 21:49:02 +00:00
gwr 70f93af8f0 First cut at code to support the VAC on 3/260 machines.
Not yet working, but the brave might play with it...
1995-04-13 21:46:15 +00:00
mycroft 72adfee7f7 EMUL_IBCS2_ELF -> EMUL_SVR4; EMUL_IBCS2_{COFF,XOUT} -> EMUL_IBCS2 1995-04-13 20:48:14 +00:00
pk 785f352260 Do a probe in fdmatch() to guard against dumb PROMs. 1995-04-13 20:24:36 +00:00
cgd 1e2fe7fa41 oops; missed the chance to fix a cast, that then becamse a compiler warning. 1995-04-13 20:09:23 +00:00
mycroft 451b445e1e Fix compiler warnings. 1995-04-13 19:36:00 +00:00
pk 0e186f0490 Leave `swapdev' alone; it's not really on par with `rootdev' & `dumpdev'. 1995-04-13 16:46:55 +00:00
pk e1873796ae Make size of `struct pmap' independent of `MMU3_L', so libkvm is
usable on all machines.
1995-04-13 16:24:40 +00:00
pk 8fb8266195 Remap regions to KERNBASE on 3-level MMU machines. 1995-04-13 14:52:24 +00:00
pk 2629e0a3f4 Use `register_t'. 1995-04-13 14:50:26 +00:00
pk 71319ed7a3 3-level MMU support: interface to cache_flush_segment() changed. 1995-04-13 14:48:51 +00:00
pk 0cb981d007 crash dumps need revision 1995-04-13 14:45:43 +00:00
pk d018c82634 3-level MMU changes:
- maintain software MMU state in 3-tuples <region,segment,pagemap>
	  for all types of MMU.
	- maintain hardware region maps (in `region' alternate address space)
	  for machines that have them (identified by variable `mmu_3l').
Use <sys/queue.h> for most lists.
1995-04-13 14:38:11 +00:00
pk 49f6b3a9e0 3-level MMU changes. 1995-04-13 14:32:44 +00:00
pk ed2b31feb0 declare externals 1995-04-13 14:31:39 +00:00
pk a83a62afb3 3-level MMU changes: variable `mmu_3l' is set for SUN4_400 models. 1995-04-13 13:51:34 +00:00
pk ba43a19831 3-level MMU changes: software MMU data structures now display a VM model
consisting of `regions', `segments' and `page maps'.
1995-04-13 13:48:46 +00:00
pk c6bf93b06b Add `region' ASI. 1995-04-13 13:41:02 +00:00
chopps 1ee73a604e couple small changes from Michael. 1995-04-13 11:59:21 +00:00
chopps 2136533c3a make things work with newest conf.c changes 1995-04-13 11:52:43 +00:00
cgd 80929f8527 be a bit more careful and explicit with types. (basically a large no-op.) 1995-04-13 06:35:38 +00:00
cgd b5b72d26ea be a bit more careful and explicit with types. (basically a large no-op.) 1995-04-13 06:25:36 +00:00
cgd d8b4389dc3 cast pointer to long when converting to integer type 1995-04-13 04:16:16 +00:00
briggs f93fa3c440 Update interrupts to use (void *client_data) instead of (int unit) as
parameter to interrupt function.
1995-04-13 04:04:58 +00:00
briggs c9e2e6e2a8 Update to use dev/ic/dp8390.h. Mostly from mycroft.
Still get extra data on either transmit or recieve, but want to
checkpoint this work.
1995-04-13 03:58:18 +00:00
mycroft ed647f250b This hasn't been used for a long time. 1995-04-12 22:14:06 +00:00
mycroft fc46bf42f7 Make use of the `fs_clean' field. If it was set when the file system was
mounted or upgraded to r-w, then clear it and set it again later when the
file system is unmounted or downgraded.
1995-04-12 21:21:00 +00:00
mellon db8fd32d53 Add cpu_exec.c, rcons.c 1995-04-12 20:08:40 +00:00
mycroft d57b9b75ba Take endianness into account in ed_ring. 1995-04-12 16:12:42 +00:00
mycroft 7e37bbe000 UPAGES --> USPACE 1995-04-12 15:38:09 +00:00
ragge bf15373974 Fixes to conf.c
Cleaning of code.
1995-04-12 15:34:44 +00:00
mycroft 81f3a84289 Add USPACE. 1995-04-12 15:27:48 +00:00
ragge 4807c769ca Added regs for trace. 1995-04-12 15:26:49 +00:00
briggs 2bc91b9c2c Almost working synch with if_ed.c. Much by mycroft. Fixups by me.
Inserts garbage characters--this driver isn't ready for use quite yet.
1995-04-12 15:01:14 +00:00
briggs 9554285cb6 Fixup from last changes.
Remove clock device.
1995-04-12 14:59:19 +00:00
briggs 13dc6a7a07 Make nubus indirect. Duh. 1995-04-12 14:57:40 +00:00
briggs 09ba51f21e Fix typo from last changes. 1995-04-12 14:55:45 +00:00
pk a98a7ab7f8 Use arp_ifinit(). 1995-04-12 08:47:21 +00:00
mycroft 6ad0e4cf93 More UPAGES --> USPACE. 1995-04-12 08:30:40 +00:00
mycroft 0e218b6169 Change some usages of UPAGES to USPACE. 1995-04-12 08:18:56 +00:00
mellon 606ccf2469 Add cdev_fb_init for frame buffers 1995-04-12 06:01:03 +00:00
mellon a3c29d62df Use _KERNEL, not KERNEL 1995-04-12 01:55:35 +00:00
mellon 30bad269b8 Fix bogus declaration for mm and chrtoblktbl 1995-04-12 00:01:01 +00:00
pk 333a55a4ce Remove duplicate definition of `constty'. 1995-04-11 22:08:06 +00:00
mycroft 4439f3b5f6 Remove deprecated prober/probew/kernacc/useracc. 1995-04-11 20:01:43 +00:00
chopps a04aa1397a fix up some changes 1995-04-11 18:51:55 +00:00
jtc 32a6db8a76 Mips specific portions of ieeefp.h (fp_rnd, fp_except, constants, etc.). 1995-04-11 18:20:46 +00:00
jtc 600a989fb6 Changed FLT_ROUNDS from constant to a call to __flt_rounds(), so that the
current rounding mode is accurately reported.
1995-04-11 18:18:35 +00:00
mellon 7baeefcfb5 Make TOCCATA support the new console regime 1995-04-11 10:52:33 +00:00
mellon ef6295229a Raster Console pseudo-device driver 1995-04-11 10:23:32 +00:00
mellon 4b8e4e1a20 Smart Framebuffer driver 1995-04-11 10:21:51 +00:00
mellon 10ed38a4df Add rcons pseudo-device 1995-04-11 10:14:52 +00:00
mellon 94f146ad0f Console initialization code 1995-04-11 10:08:42 +00:00
mellon 57289e2cf2 Split cninit from cons so ports that can't use it don't have to include it. 1995-04-11 10:06:38 +00:00
mellon df78dbb096 Reference cninit.c as well as cons.c 1995-04-11 09:52:11 +00:00
pk ee451261d8 iestart() returns nothing. 1995-04-11 09:18:09 +00:00
mellon 4b65c60240 Use endian.h to determine endianness instead of assuming big-endian 1995-04-11 07:06:33 +00:00
mycroft 6cfb93ffdd GC old comment about trailers. 1995-04-11 06:19:09 +00:00
mycroft 5f5d8e19d0 Sync with the rest of the world. Say goodbye to Mr. Trailer. 1995-04-11 06:16:33 +00:00
mycroft 369e66a776 Sync with the rest of the world. 1995-04-11 06:03:36 +00:00
mycroft 2b13a30bb8 Sync with the rest of the world. Define BSR_BANK[0-3] constants and use them.
Various other cleanup.
1995-04-11 05:58:58 +00:00
mycroft 893d53414a Sync with the rest of the world. Various additional cleanup. 1995-04-11 05:46:53 +00:00
cgd f807d6ea6d fix function name in comment. 1995-04-11 05:30:22 +00:00
mycroft c7a7d5c262 Sync with the rest of the world. 1995-04-11 05:10:20 +00:00
mycroft 8d8af964a7 Move NIC register definitions to a global location. 1995-04-11 04:45:26 +00:00
mycroft 6e9015b37a This is deprecated. 1995-04-11 04:44:44 +00:00
mycroft b703c76655 Update for if.h. Define helper macros for accessing NIC registers. Optimize
edrint() a little more.
1995-04-11 04:38:42 +00:00
mycroft 8b77f9cd5f Remove some explicit references to loif. 1995-04-11 04:30:47 +00:00
mycroft e47a488874 nsipstart() should return void. 1995-04-11 04:25:21 +00:00
mycroft d4b1924adb LANCE register definitions, plus some utility macros for the machine-
independent driver.
1995-04-11 04:17:50 +00:00
mycroft c9a66fce20 Use global 8530 defs. Needs more work. 1995-04-11 03:41:04 +00:00
mycroft 7114c30418 Use global 8530 defs. 1995-04-11 03:00:38 +00:00
mycroft e41d4f5e96 Undo accidental change. 1995-04-11 02:42:23 +00:00
mycroft 3b6535707e Use global 8530 defs. 1995-04-11 02:41:42 +00:00
mycroft 0c3bca646e Move CHAN_[AB] into here, and prefix with ZS_. 1995-04-11 02:38:16 +00:00
mycroft 47f2d08bb3 Use global 8530 defs. 1995-04-11 02:37:11 +00:00
mycroft 24a8feea65 Adjust for endianness, and move CHAN_[AB] out of here. 1995-04-11 02:35:18 +00:00
mycroft 2753eeb55e zsreg.h --> z8530.h 1995-04-11 02:30:53 +00:00
mycroft 9b0d3f54e8 Move this into a generic location. 1995-04-11 02:29:25 +00:00
gwr 89c2b367b3 Oops, sparc -> sun3 1995-04-10 22:11:22 +00:00
jtc 8cfef1c855 Sparc specific portions of ieeefp.h (fp_rnd, fp_except, constants, etc.). 1995-04-10 21:14:36 +00:00
jtc 182ee20c36 Changed FLT_ROUNDS from constant to a call to __flt_rounds(), so that the
current rounding mode is accurately reported.
1995-04-10 21:11:42 +00:00
mycroft 6cabaea642 Define vfs_unmountall(), to unmount file systems at shutdown time. 1995-04-10 19:46:56 +00:00
pk 96dd4bc868 clear out two typos. 1995-04-10 19:37:49 +00:00
mycroft 3e37e7dece Remove `dma from mcd, and add scd (though its not ready yet. 1995-04-10 18:50:55 +00:00
mycroft c75f9f2e07 Change `fdclose' to `fdrelease', to avoid confusion with device interfaces. 1995-04-10 18:27:59 +00:00
mycroft 70839d3b04 Change start and watchdog return values to void. 1995-04-10 18:21:42 +00:00
mycroft 1ae952ad0f Remove bogus return values from void functions. 1995-04-10 18:08:45 +00:00
mycroft e935580d5a Fix declarations of zscnprobe_[ab]. 1995-04-10 17:20:21 +00:00
mycroft 68c8c80929 kernel_pmap --> pmap_kernel() 1995-04-10 16:48:27 +00:00
mycroft e25c1817cf kernel_pmap --> pmap_kernel() 1995-04-10 13:08:28 +00:00
briggs a15027bd11 Remove old comment. 1995-04-10 13:01:19 +00:00
briggs 769e59cd1f Remove bogus extra tape cdevsw entry.
Change adb dev init to a mouse dev init.
Remove non-existant clock device stuff.
1995-04-10 12:59:48 +00:00
mycroft fecbe784d6 Oops; finish that last change. 1995-04-10 12:45:53 +00:00
mycroft 22cefc03bc Bring back pmap_kernel(), for now always inlined as a pointer to
kernel_pmap_store.
1995-04-10 12:41:29 +00:00
mycroft c668fc0161 vmempage -> vmmap 1995-04-10 11:58:33 +00:00
mycroft e5ea545fb6 vmempage --> vmmap, and remove incorrect comment. 1995-04-10 11:57:17 +00:00
mycroft 127e0761c9 Add mmopen(), mmclose(), and mmmmap() where appropriate. Lock vmmap when
needed.  Make types consistent.
1995-04-10 11:54:47 +00:00
mycroft 66845e73cc cn_tty is unneeded. 1995-04-10 10:23:49 +00:00
mycroft d751b03236 Minor consistency nits. 1995-04-10 10:01:40 +00:00
mycroft 4d2499eb58 Update for conf.h. 1995-04-10 09:22:28 +00:00
mycroft bdd61fbe66 Fdclose --> fdclose 1995-04-10 09:14:00 +00:00
mycroft 1475e294a9 map --> mmap 1995-04-10 09:12:10 +00:00
mycroft ab5eac8e84 Add dummy itestop(), and rename a few functions. 1995-04-10 09:11:41 +00:00
mycroft f96eaaabc0 Nuke write routines. 1995-04-10 09:10:20 +00:00
mycroft 01e31cf3cd Fdclose --> fdclose 1995-04-10 08:56:18 +00:00
mycroft b0a77d1212 map --> mmap 1995-04-10 08:55:47 +00:00
mycroft 25e4eaf5ca Nuke kbdwrite(). 1995-04-10 08:54:41 +00:00
mycroft 42a32c0eca Minor tweak for ite. 1995-04-10 08:54:16 +00:00
mycroft 27d859e141 Add dummy itestop(), and rename a few functions. 1995-04-10 08:53:46 +00:00
mycroft e66c94e4b5 Update for conf.h. 1995-04-10 08:51:09 +00:00
mycroft 9170f98a19 Remove private read and write routines. 1995-04-10 08:13:54 +00:00
mycroft c0e128ac74 This is what physio() is for. 1995-04-10 08:09:59 +00:00
mycroft 0a6d915b83 Update for conf.h. 1995-04-10 08:06:06 +00:00
mycroft 8f8bccf41f Switch grfmap and grfmmap. 1995-04-10 07:56:46 +00:00
mycroft 942c5ec591 Map vnd device from chr to blk. 1995-04-10 07:54:45 +00:00
mycroft 7e450d5085 device.h is defunct. 1995-04-10 07:50:42 +00:00
mycroft 14241df959 Update for conf.h. 1995-04-10 07:43:49 +00:00
mycroft c126c9401f Add a dummy kdstop(). 1995-04-10 07:33:53 +00:00
mycroft 9da61beca9 map --> mmap 1995-04-10 07:31:22 +00:00
mycroft 7ccad2faec Update for conf.h. 1995-04-10 07:29:42 +00:00
mycroft 9e5184dfec Add dummy cnstop(), more return types. 1995-04-10 07:14:33 +00:00
mycroft 795010b56c map --> mmap 1995-04-10 07:04:18 +00:00
mycroft d64b72d064 Fdclose --> fdclose 1995-04-10 07:01:31 +00:00
mycroft a7b5f01159 Update for conf.h, and add a real chrtoblktbl[]. 1995-04-10 07:01:04 +00:00
mycroft a9fe4eea9f Fix typo. 1995-04-10 06:55:56 +00:00
mycroft 0ed094a91e Add a stop function to cdev_cn_init(). 1995-04-10 06:32:14 +00:00
mycroft 6e992fcd83 Add a dummy cnstop(). 1995-04-10 06:30:52 +00:00
mycroft 63dcb06933 Add promstop(), adjust return types, make sure ttselect() doesn't panic, and
obey standard style conventions.
1995-04-10 06:14:57 +00:00
briggs d5cfa2c98f Synchronize with latest changes to hp300 conf.c and give dummy mem
open/close/map routines (map is dummy for now, but should be implemented
when I'm more awake).
1995-04-10 05:57:40 +00:00
mycroft ca5caf005a map --> mmap 1995-04-10 05:45:26 +00:00
mycroft 11ea6e42ce conf_init() is no more. 1995-04-10 05:44:08 +00:00
mycroft 3ba14de085 Rewrite in new format. 1995-04-10 05:42:34 +00:00
mellon 404e6bc5c9 Put endif COMPAT_09 inside function definition 1995-04-10 04:47:47 +00:00
mycroft f8f99c94a1 Fdclose --> fdclose; no longer conflicts. 1995-04-10 04:18:14 +00:00
mycroft 1b3587f158 Minor changes to match hp300 version. 1995-04-10 04:17:12 +00:00
mycroft 0f894dcdc4 Update to match hp300 port. 1995-04-10 04:02:53 +00:00
mycroft 28978ed078 v_cmap --> vmmap 1995-04-10 03:54:27 +00:00
mycroft ea5470b091 Partially update to match conf.h. 1995-04-10 03:36:17 +00:00
mycroft 3f22df0746 Declare all return types. 1995-04-10 01:56:41 +00:00
mycroft 21993f8246 Add dummy mmopen() and mmclose(); change mmmap() to mmmmap(). 1995-04-10 01:55:57 +00:00
mycroft 3d4e73333d Update to match conf.h. 1995-04-10 01:54:00 +00:00
mycroft 0b734c8881 Minor stylistic changes. 1995-04-10 01:26:43 +00:00
mycroft a9e1bbb0c7 Add no-op open and close functions. 1995-04-10 01:23:19 +00:00
mycroft 9c41e0f2f2 Most of the console functions return void. 1995-04-10 01:07:16 +00:00
mycroft 95c5c4f79f Most of the console functions return void. Also change interrupt logic
slightly.
1995-04-10 01:05:55 +00:00
mycroft 374185caff Most of the console functions return void. 1995-04-10 01:01:40 +00:00
mycroft 0ed4893351 mmmap --> mmmmap 1995-04-10 00:59:33 +00:00
mycroft 5ca64d4b70 hilmap --> hilmmap 1995-04-10 00:58:36 +00:00
mycroft 0323181eb1 Switch grfmap and grfmmap. 1995-04-10 00:58:10 +00:00
mycroft 1b8aff7880 map --> mmap 1995-04-10 00:55:57 +00:00
mycroft 84de5b1135 Update to make con[fs].h. 1995-04-10 00:50:50 +00:00
mycroft affcd0e2c8 Properly prototype the switch table functions. Add conf.h-like macros for
defining the switch tables.
1995-04-10 00:50:27 +00:00
mycroft 99005388fd Return EOF for old vnodes of tty devices, rather than EIO. 1995-04-10 00:48:46 +00:00
mycroft 7f3a305b34 Use the new d_type field. Set VISTTY for vnodes of tty devices. 1995-04-10 00:48:10 +00:00
mycroft 04a0a9a518 Use the new d_type field. 1995-04-10 00:46:51 +00:00
mycroft f4d66d9b37 Add a device type to the switch tables. Move the [bc]dev_{decl,*_init}()
macros into here, so they only need to be defined in one place.
1995-04-10 00:46:11 +00:00
mycroft 2f30839b62 Remove now unneeded #ifdef. Prototype new function. 1995-04-10 00:06:54 +00:00
mycroft 4b5c13c2c7 Shift the bit positions. 1995-04-09 23:29:22 +00:00
mycroft e957423a98 Move fp_except and fp_rnd definitions to machine/include. 1995-04-09 21:31:58 +00:00
pk 2e1b0cc690 Adapt to if.h changes. 1995-04-09 12:36:22 +00:00
pk 6e4b0ecfc6 Unblank frame buffer when entering the debugger. 1995-04-09 11:51:10 +00:00
gwr f0dfc32ae9 Sync with net/if.h changes 1995-04-09 05:08:33 +00:00
leo 8b093b18a2 Added '\r' chars in printf, so output under TOS becomes readable. Also
added some extra options for debugging.
1995-04-08 21:01:39 +00:00
briggs c17558aa9b Fixup types of a few functions to match if.h structure. 1995-04-08 20:55:26 +00:00
briggs 426b77c9eb Put in a dummy PostEvent trap and enable ADB interrupts for IIci. From
Paul Goyette (paul@pgoyette.bdt.com).
I went ahead and removed the conditional around setting the ADB interrupt
enable.  I don't expect Apple will have changed this on any other models
as it's the same on all documented models.
1995-04-08 20:46:23 +00:00
briggs 7e4d7125a3 Back to previous version of the serial driver until we can figure out
why the new one gets a lot of overflows and doesn't work on the IIsi
or IIvx at all.
1995-04-08 13:20:52 +00:00
briggs 870235352d Print a diagnostic if we do hit the watchdog and recover w/o resetting. 1995-04-08 13:17:55 +00:00
briggs 8ca9890ea2 Actually set the vectors for RBV as well as VIA2.
Don't go to spl4 when we have an ADB interrupt.
Turn off video interrupts on the SE/30.
1995-04-08 13:16:33 +00:00
chopps 967e7d4f1d fix typo 1995-04-08 05:30:58 +00:00
gwr bcd63a2a47 minor cleanup 1995-04-08 04:46:59 +00:00
gwr f41996e453 Do the I-cache flush in the process switch asm code like other ports. 1995-04-08 04:45:43 +00:00
gwr cf2da3de32 Add some comments. 1995-04-08 04:43:44 +00:00
gwr cd79987a43 Fix CGTWO entry 1995-04-08 04:42:01 +00:00
gwr a1cc6d49c4 It works now. 1995-04-08 04:40:27 +00:00
fvdl 71f3e4d1f2 Add ep_sigcode and ep_esigcode fields to exec package structure. 1995-04-07 22:34:11 +00:00
fvdl 366ba9b889 Use sigcode fields in package structure. This seems to be the cleanest
way to deal with seperate trampoline code for emulation of other OSs,
it avoids having to clutter up kern_exec.c any further.
1995-04-07 22:33:23 +00:00
fvdl fb00b736fd Arch dependant defs for Linux. Just signal stackframe definition for now. 1995-04-07 22:31:19 +00:00
fvdl 46de9a804f Changes because of proper Linux signal stackframe building, and
seperate signal trampoline code. Ugly hack in trap.c no longer
needed.
1995-04-07 22:29:34 +00:00
mycroft 87d43afd46 Clean up to match common code, and fix a typo. 1995-04-07 22:27:42 +00:00
mycroft 99cd177c88 Add a common function to initialize ARP-related variables. `Insired'
by Garrett Wollman.
1995-04-07 22:26:04 +00:00
fvdl a3ff5bc0aa Add arch/i386/i386/linux_machdep.c 1995-04-07 22:25:41 +00:00
fvdl c37a9a26c6 syscalls.master was changed, so update these 1995-04-07 22:24:11 +00:00
fvdl 623f1e3986 Handle Linux signal tramp code differently. Some changes because of the
now seperate Linux signal trampoline code. Add linux_sigreturn to
syscalls.master.
1995-04-07 22:23:22 +00:00
mycroft 1b863c2eca if_start and if_watchdog should return void. 1995-04-07 22:20:24 +00:00
mycroft da0921a4a2 Set if_output in ether_ifattach(). 1995-04-07 22:19:29 +00:00
pk 8161907540 Add evcnt_attach(). 1995-04-07 19:46:13 +00:00
mycroft 641dc38337 Require the denode to be locked before calling msdosfs_hashins(), rather than
inlining the rest of the code in reinsert().  (No functional changes.)  Also,
make sure that we don't print the (bogus) lock values when !DIAGNOSTIC.
Partly based on a patch from Mike Pritchard.
1995-04-07 17:37:08 +00:00
jtc ec2bda0f0b Changed FLT_ROUNDS from constant to a call to __flt_rounds(), so that the
current rounding mode is accurately reported.
1995-04-07 15:00:54 +00:00
gwr d0d1dc8a4e Fix that probe sequence right this time. 1995-04-07 05:19:24 +00:00
gwr 8f584db874 Flush the cache when switching contexts (thanks to David Jones). 1995-04-07 04:46:41 +00:00
gwr e7f174fdcd Make sure curproc->p_addr is set before any faults occur.
Put msgbuf in page zero (so its location is predictable).
1995-04-07 04:44:55 +00:00
gwr 9a714f87a8 Use vmempage for /dev/mem like other ports. 1995-04-07 04:44:26 +00:00
gwr e1b1e78d15 Allocate vmempage here (for use by /dev/mem). 1995-04-07 04:44:05 +00:00
gwr d047cd4b9c Announce unexpected interrupts once for each level. 1995-04-07 04:43:25 +00:00
gwr 88f350e128 Make sure we do not enable clock interrupts too early. 1995-04-07 04:30:13 +00:00
gwr 4a3ad0819d Look out for null curproc->p_addr which caused a "Watchdog Reset!"
when the recursive faults overflowed the stack.  (from David Jones)
1995-04-07 03:12:51 +00:00
gwr e5a537ade9 Fix to make "root on sd2a" work (from David Jones) 1995-04-07 03:02:36 +00:00
gwr 65725c0bce Add cgtwo 1995-04-07 02:58:49 +00:00
gwr 522e7f03d7 First cut at cgtwo driver. Not quite right yet. 1995-04-07 02:54:43 +00:00
gwr 0af73b6fc3 Changed fb_attach() interface 1995-04-07 02:51:21 +00:00
gwr 19c01b5c67 Corrected fbtype->fb_size (which x11r6 is picky about...) 1995-04-07 02:47:40 +00:00
gwr 637b45dbf2 Changed fb_attach() interface, hack probe to avoid impossible matches.
Corrected fbtype->fb_size (which x11r6 is picky about...)
1995-04-07 02:43:25 +00:00
gwr d49502cfa2 Changed fb_attach() interface 1995-04-07 02:37:18 +00:00
gwr 1feb639a38 First cut at cgtwo driver. Not quite right yet. 1995-04-07 02:31:45 +00:00
gwr 63052ecc6e Add cgtwo 1995-04-07 02:23:03 +00:00
gwr 3de4f27e67 Yet more SYMTAB_SPACE 1995-04-07 02:18:39 +00:00
jtc 7a5da7fda2 Changed FLT_ROUNDS from constant to a call to __flt_rounds(), so that the
current rounding mode is accurately reported.
1995-04-07 00:44:37 +00:00
leo 8dc1468412 NetBSD/Atari, port by Leo Weppelman. 1995-04-06 21:04:54 +00:00
chopps e688ef2f10 say something more for unconfigured devices 1995-04-06 19:45:00 +00:00
chopps dac345e605 add new option to enable faster (and on some boards non-working) scroll
code for retina grahpics cards.
1995-04-06 19:24:47 +00:00
chopps 79bf8f86dd made current retina vertical scroll code conditional on the new
option RETINA_SPEED_HACK.  Old commented code has been resurected.
This reportedly fixes the smear problems some retinas have.
John Vrolijk <dsnjvro@etmsun.etm.ericsson.se> noticed this.
1995-04-06 19:19:45 +00:00
mycroft 6f131301b0 Make OSI and X.25 work on little-endian machines. 1995-04-05 21:38:50 +00:00
mycroft bb85930bbe Add missing argument to closef(). 1995-04-05 21:26:40 +00:00
leo e5d720f534 Fixed up chr to blk translations. 1995-04-05 06:31:33 +00:00
mycroft 3836533fc6 Add another broken CD-ROM drive to The List. 1995-04-04 05:44:32 +00:00
mycroft cd50457f15 Fix conversion of `type' and `whence' values in struct flock. 1995-04-04 04:21:30 +00:00
mycroft 0e67f2a78e Rename a few constants to match the chip documentation. 1995-04-04 01:59:28 +00:00
mycroft 13ac06ec6a More debugging printf()s, from Rafal Boni. 1995-04-04 01:44:23 +00:00
gwr aa197980e8 Use new core file format in cpu_coredump() 1995-04-03 22:06:11 +00:00
gwr 69aa4da3cf Add FDESC FIFO NULLFS UNION file systems. 1995-04-03 22:03:38 +00:00
mycroft c04ae31e95 Prototype iexmit(). 1995-04-03 21:22:37 +00:00
mycroft 9085715229 Some pseudo-random cleanup, and try to start transmitting packets quicker. 1995-04-03 21:17:13 +00:00
mellon 23023327a2 Move cpu-specific exec support to cpu_exec.c; Support 4.4BSD a.out 1995-04-03 04:38:04 +00:00
chopps 85bd6c5e30 cleanup SG4_, fix magnum interrupts, gvp hack for ziii, new gvp configs, 4066
4066 interrupt fix, add baudrate gen and don't clear other port lines for mfc
from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
1995-04-02 20:38:09 +00:00
mycroft 47ba263ebe Emulate SCO behaviour when both FREAD and FWRITE are set, but only for SCO
executables.
1995-04-02 19:27:48 +00:00
pk 1dd6d8a8dd Fix TCGETA compat, from Matthew Green.
SunOS `setaudioinfo' does implicit `getaudioinfo'.
Recognise streams flush/setsig ioctls.
1995-04-02 10:43:29 +00:00
mycroft 7e2dabf972 Add a missing unlock. 1995-04-01 10:29:41 +00:00
mycroft 508897dfcc Insert a missing unlock. 1995-04-01 10:27:56 +00:00
mycroft 03e3548ec7 Change the locking protocol to match other drivers. 1995-04-01 08:45:33 +00:00
mycroft 5ef3b8b957 Always load the TOC. Turn off the TOC bit in the mode register so the busy
light goes off.
1995-04-01 08:40:11 +00:00
mycroft 0a2cdb6d61 Fix bogus buffer indexing when a value is split across a mbuf boundary,
as suggested by Greg Ansley.  Also, redefine MINDEX() slightly to avoid
duplicating code.
1995-04-01 03:04:49 +00:00
mycroft 25b58554cb Update. 1995-03-31 18:27:30 +00:00
christos 5ee5b100d3 Added TIOCGSID for COMPAT_SVR4 [get session id] 1995-03-31 03:10:15 +00:00
christos c8afb5deaf Syscalls.master was changed 1995-03-31 03:08:25 +00:00
christos 9255f898e8 Added TIOCGSID for COMPAT_SVR4 [get session id] 1995-03-31 03:07:41 +00:00
christos ee05f066e8 1. siginfo stuff torn out from wait.h to be used by the MI portion of the code.
2. many termio, ioctl, sigaction fixes
3. better socket type emulation; still ticotsord [the loopback interface I
   guess] does not work properly on svr4 4.1.
4. new gettimeofday, fixed utssys..
5. rmdir and mkdir were swapped in syscalls.master
1995-03-31 03:06:17 +00:00
christos f376448086 Added the svr4 files 1995-03-31 02:57:02 +00:00
christos 687b36dccc First pass at the ucontext stuff. 1995-03-31 02:55:59 +00:00
christos d281894ab6 Moved KGDB trap 0x88 to 0x8a, and made 0x88 to be svr4 syscall [this is what
solaris uses]. Stubs for the missing and currently unused signal functions
stolen from the i386 code.
1995-03-31 02:54:10 +00:00
christos 0fd8f81d69 Reorganization of the signal frame and ucontext to make it shareable with
the sparc code. Added trap defines.
1995-03-31 02:51:37 +00:00
christos d736bba447 Changes to make svr4 emulation signal() to work, and minor cleanup in trap.c 1995-03-31 02:49:25 +00:00
ragge e1bbd102d9 Bug log... 1995-03-30 21:36:44 +00:00
ragge 80b5aa7c05 Speed-up of pmap and trap.
Fixes due to uVAX support.
1995-03-30 21:25:14 +00:00
ragge a95842832d Bug fixes of interrupt handlers. 1995-03-30 20:55:23 +00:00
ragge c362495157 Some bug fixes & update of pcb. 1995-03-30 20:42:55 +00:00
ragge 543b832ee3 Support for DEQNA/DELQA added. 1995-03-30 20:26:32 +00:00
leo f95dd52b68 KERNEL -> _KERNEL 1995-03-30 06:01:13 +00:00
mycroft e17c63cee6 Revamp the locking mechanism slightly. Update some outdated comments, and add
a few new ones.
1995-03-29 23:36:27 +00:00
mycroft 1d568eab9a Revamp the locking mechanism slightly. 1995-03-29 23:04:39 +00:00
ragge b94cd499ab All supported devices. 1995-03-29 22:54:02 +00:00
ragge db6fbd3bf2 Support for tmscp tapes. 1995-03-29 22:50:47 +00:00
briggs 6efcd1b6d4 KERNEL -> _KERNEL 1995-03-29 21:57:43 +00:00
briggs 0884490297 KERNEL -> _KERNEL. 1995-03-29 21:56:46 +00:00
ragge 887089b1c2 uVAX II support. 1995-03-29 21:35:16 +00:00
ragge 9dbb11b582 Added support for uVAX boot. 1995-03-29 21:23:59 +00:00
mycroft 46b2bb599f Make definition of b_cylinder global. 1995-03-29 20:57:35 +00:00
briggs 10fc499f8c Nuke FPCOPROC and add fpu device driver and FPU_EMULATE from sun3.
Still need to figure out how to handle this w/ FPSP on 68040's but
since we're not really using the 68040 yet...
1995-03-29 07:38:34 +00:00
briggs 7a557178ba Get rid of some BARFs and assign some semi-reasonable spl()s... 1995-03-29 07:35:35 +00:00
briggs 9fca93fa60 Nuke FPCOPROC and add FPU_EMULATE to GENERIC.
Support the above with gwr's sun3 stuff.
1995-03-29 07:28:48 +00:00
hpeyerl 217531ad26 Update to reflect reality. 1995-03-28 23:57:20 +00:00
gwr 1012443810 Cosmetic changes suggested by Adam. 1995-03-28 21:29:32 +00:00
jtc db0046c14d KERNEL -> _KERNEL 1995-03-28 19:59:56 +00:00
jtc 8ba211cde0 Added #define _KERNEL 1995-03-28 18:37:27 +00:00
jtc 71ab4ed9dc KERNEL -> _KERNEL 1995-03-28 18:13:48 +00:00
gwr cd70d15138 Avoid passing non-ASCII chars to the PROM.
Call PROM at splsoftclock to avoid missing interrupts.
1995-03-28 16:09:41 +00:00
leo 36592a50b1 Make ite ioctl work and fixup the colormap stuff. 1995-03-28 06:35:40 +00:00
leo 95b76828da Add -D_KERNEL to preprocessor flags 1995-03-28 06:29:39 +00:00
leo 4458e46001 Capitalisation of NetBSD fixed. 1995-03-28 06:26:50 +00:00
gwr 0f9e8841da Add _KERNEL 1995-03-28 04:30:45 +00:00
mycroft aff93b44b4 Remove unused variable. 1995-03-27 21:44:11 +00:00
mycroft 657ddd6fde Remove a tiny bit of redundant code. 1995-03-27 18:08:34 +00:00
mycroft 0a3d4f358a It's not necessary to do a GETSTAT before each read. 1995-03-27 16:48:45 +00:00
mycroft c61cb27f9c Small garbage collection, and turn off debugging info by default. 1995-03-27 16:04:07 +00:00
mycroft 306af9bd89 Largely rewritten by me, with some input from Dave Burgess. Implement most of
the CDIOC* calls correctly, improve performance by 10x when interrupts work,
and implement the same generic disk framework as other drivers.
Needs some more work.
1995-03-27 15:45:20 +00:00
mycroft ad8b7c8c7d Remove some sanity checks that are too restrictive, as suggested by Leo. 1995-03-27 12:59:56 +00:00
cgd 9141ec70a1 change needed for atari; recycle some code for the i386 that was in Lite
that we don't use, but is used by the atari now.  (it should change
to MACHINE_NONCONTIG, too...)
1995-03-27 09:09:05 +00:00
gwr 507979e02b Increase ZSSOFT_PRI from 2 -> 3 now that tty ipl is 4. 1995-03-27 01:25:20 +00:00
gwr b7982644e1 Put spltty at level 4 and adjust others appropriately.
Also, improve the inline _spl() and move it to psl.h
1995-03-27 01:22:50 +00:00
jtc f76f1f89ad KERNEL -> _KERNEL 1995-03-26 20:35:13 +00:00
jtc 7c04233887 KERNEL -> _KERNEL 1995-03-26 20:23:52 +00:00
gwr 4916e6ce63 Nuke FPCOPROC 1995-03-26 19:38:23 +00:00
gwr 56bbea071a Add/fix some comments. 1995-03-26 19:37:41 +00:00
gwr 1a22be7490 Enable interrupts before autoconfig.
The reasons to do it later no longer exist.
1995-03-26 19:32:31 +00:00
gwr 58662ede8c Enable interrupts before autoconfig (like hp300).
The reasons to do it later no longer exist.
1995-03-26 19:28:29 +00:00
gwr 42d319670c Add "tun" device. 1995-03-26 19:24:16 +00:00
gwr e2d6f35c09 The splbio()/splx(s) is now appropriate even if SCSI_POLL is set. 1995-03-26 19:23:12 +00:00
gwr 0784cab36b Sync with GENERIC 1995-03-26 19:17:48 +00:00
gwr 3316bb27fd Nuke FPCOPROC 1995-03-26 19:17:23 +00:00
briggs 4c88a6a961 Don't MRG_TEST the tracing if MRG_TRACE isn't defined. From
Paul Goyette (paul@pgoyette.bdt.com).
1995-03-26 18:10:23 +00:00
briggs 71a63538b8 KERNEL -> _KERNEL 1995-03-26 17:08:36 +00:00
mycroft 445c619523 Make this lighter. 1995-03-26 16:36:12 +00:00
briggs 625d11a739 sun3 fixes for COMPAT_SUNOS. 1995-03-26 15:53:36 +00:00
briggs 9d7efb1fb0 Do iteon() and iteoff(). Right now, they just clear/draw the cursor and
clear the screen.  "We" should look at updating these further.
1995-03-26 15:52:21 +00:00
cgd fa2133533d invoke ktrsyscall with (vp, code, argsize, args) as args. 1995-03-26 08:03:29 +00:00
cgd a046d2374e don't default return types to ints; specify them.
ktrsyscall takes (vp, code, argsize, args), and stores argsize rather
than nargs.
1995-03-26 07:48:47 +00:00
cgd 3a977bd3df syscall tracing: store code and argsize, as ints; update comments. 1995-03-26 07:47:39 +00:00