Commit Graph

623 Commits

Author SHA1 Message Date
thorpej ad05d707bf Compile the kernel with -fno-builtin. 1995-09-19 23:34:06 +00:00
thorpej 7d7396c414 Make system calls conform to a standard prototype and bring those
prototypes into scope.
1995-09-19 22:53:47 +00:00
thorpej f47d026fb3 Fix cosmetic typo in kernel name prompt. 1995-09-13 18:52:39 +00:00
thorpej ef09db9674 Add a memcpy() entry as suggested by Gordon Ross. Use <machine/asm.h>
where appropriate.
1995-09-10 19:42:17 +00:00
thorpej fcdfdcb926 Fix missing clock-ticks in child after fork as suggested by cgd & Allan Briggs. 1995-09-03 00:44:43 +00:00
thorpej 7c55f97d9b Really batting 1.000 today... 1995-09-03 00:07:21 +00:00
thorpej 231db77094 Fix thinko in netboot-related changes. 1995-09-02 23:36:09 +00:00
thorpej acdc651ece Add support for network booting; uses the following procedure:
rbootd->rarp->bootparam->nfs
Add "reset" option to disk and network boot prompts to reload boot code.
1995-09-02 05:04:14 +00:00
thorpej a23346b0d5 Grok booting from the network. 1995-09-02 04:54:06 +00:00
thorpej aa213636df Example configuration for a diskless hp300. 1995-09-02 04:39:51 +00:00
mycroft 29053c58b2 SA_ONSTACK --> SS_ONSTACK 1995-09-01 20:05:59 +00:00
thorpej ba2d89fa98 Bring this up to speed. 1995-08-18 20:24:02 +00:00
thorpej 351c20ab5e Haven't had hpfplib for a long time. 1995-08-18 16:07:40 +00:00
mycroft 54c9a1df90 Replace splnet() with splsoftnet(). Add splnet(). 1995-08-13 00:22:40 +00:00
mycroft c5ec5c3003 Add splsoftnet(). 1995-08-13 00:03:11 +00:00
thorpej 0b486f9aa0 Add bounds_check_with_label(). 1995-08-08 06:23:08 +00:00
mycroft 8e77047f2c Make new-style core dumps. 1995-08-07 06:13:57 +00:00
mycroft 61d9ac2bb7 Remove vnode_if.[ch] when cleaning. 1995-08-05 23:39:41 +00:00
thorpej b56fc99724 Catch up with an include file change I missed before. 1995-08-05 16:47:34 +00:00
thorpej 1773fd4286 Kernel configuration file for my hp380. 1995-08-04 08:26:52 +00:00
thorpej 6143739a03 Acknowledge the Archive Viper 60 tape. Fixes pr-863. 1995-08-04 08:17:43 +00:00
thorpej fc1f217977 Update for conf.h changes. 1995-08-04 08:12:57 +00:00
thorpej 62572d6658 Kill bogus if_addrlist check. 1995-08-04 08:08:41 +00:00
thorpej 89e7efa8d1 Zap compiler warnings in the check for a trace trap. 1995-08-04 08:06:27 +00:00
thorpej 4313e3aa62 Make the boot blocks compile (and work!) again. 1995-08-04 07:55:34 +00:00
thorpej be13d8f6bf Spring cleaning. 1995-08-04 07:40:31 +00:00
mycroft 6dfa7461a5 Add -Werror. 1995-07-24 03:30:07 +00:00
mycroft 7263209ce6 Make each disk and tape driver define its own read and write functions.
Deprecate rawread() and rawwrite() completely.  Remove d_strategy from cdevsw to
force the abstraction barrier.
1995-07-04 07:15:28 +00:00
paulus b41c6a7d1c Add call to pppintr from netintr. 1995-07-04 06:54:52 +00:00
cgd c83f9c5568 remove unused cpu_exec() definitions. moved "broken swap" markers, for
ports that still need it, to types.h.
1995-06-28 02:55:18 +00:00
cgd d4a54b73d2 kill user-land DELAY macro, as suggested by gwr. 1995-06-28 02:43:36 +00:00
cgd 2d49c3885b clean up definitions of ctod(), dtoc(), ctob(), btoc(), btodb(), and
dbtob().  remove unused definitions of ctos(), stoc(), and dtob().
1995-06-26 06:55:38 +00:00
cgd 1c0be437b1 define __BDEVSW_DUMP_OLD_TYPE for ports where it's true. clean up
some m68k ports inclusion of common header.
1995-06-26 05:13:37 +00:00
christos 7f0e620523 Makefile.`arch`: - Add -lcompat
- Change clean: target to be a double dep one,
			  so libraries can use the clean target too
			- Add genassym to the clean targets
1995-06-24 20:41:28 +00:00
jtc 55fbbc705d Wrap with #ifndef _XXX_FLOAT_H_/#define _XXX_FLOAT_H_/ ... /#endif. 1995-06-20 20:45:22 +00:00
mycroft 3126edd708 Arrest the KNF policeman. 1995-06-02 17:51:21 +00:00
hpeyerl f6d7cb01ee Check curproc != NULL before PMAP_ACTIVATE.
From Chuck Cranor <chuck@maria.wustl.edu>
1995-05-29 19:36:22 +00:00
mycroft 22aa7c18f0 Update curpcb before possibly copying it. 1995-05-25 01:11:29 +00:00
mycroft 8e18358c86 Make sure proc0's md_regs is initialized. 1995-05-25 01:09:10 +00:00
hpeyerl caef1dfaa2 KNF police. 1995-05-24 13:12:12 +00:00
jtc f90f8d10aa Removing -DKERNEL, transition to _KERNEL has been completed 1995-05-16 22:24:17 +00:00
mycroft 4b15d144ec Put the address of the ps_strings structure in A2. 1995-05-16 14:34:19 +00:00
mycroft 76860a15b0 Add a child_return() function to clean up the child's state correctly, and
use this in cpu_fork().  Generalize proc_trampoline() so it can also be used in
this case.
1995-05-12 18:24:46 +00:00
mycroft 94cb5327ca Stylistic change. 1995-05-12 13:04:33 +00:00
mycroft 46426ac542 main() should never return. 1995-05-12 13:03:23 +00:00
mycroft 9877d5d787 Eliminate the double mapping of the kernel stack. Enable swapping. 1995-05-12 12:54:44 +00:00
mycroft 7bf54feda1 Add vnd. 1995-05-12 12:49:54 +00:00
jtc 8aa6c376b6 KERNEL -> _KERNEL 1995-05-11 16:52:54 +00:00
christos 078a98c864 Fixed compat hpux files. 1995-05-10 17:02:52 +00:00
cgd 8703076975 define BROKEN_SWAP and/or cpu_swapout as appropriate. 1995-05-05 03:41:51 +00:00
cgd 0e59975fac rename files files for new config/config.old naming 1995-04-28 08:19:12 +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
mycroft 9dbd0e8627 Use vfs_shutdown(). 1995-04-21 21:56:59 +00:00
mycroft 055a6395e0 Update to match conf.h 1995-04-19 22:37:27 +00:00
mycroft 44e9c73f2c Update for global changes. 1995-04-19 22:16:30 +00:00
mycroft f1e8ea1dcc Kluge the *tty() routines until this port is converted to config.new. 1995-04-19 19:15:47 +00:00
jtc 4d37095e31 Fix typo: ieefp.h -> ieeefp.h. 1995-04-16 16:47:03 +00:00
mycroft 81f3a84289 Add USPACE. 1995-04-12 15:27:48 +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 df78dbb096 Reference cninit.c as well as cons.c 1995-04-11 09:52:11 +00:00
mycroft e25c1817cf kernel_pmap --> pmap_kernel() 1995-04-10 13:08:28 +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 127e0761c9 Add mmopen(), mmclose(), and mmmmap() where appropriate. Lock vmmap when
needed.  Make types consistent.
1995-04-10 11:54:47 +00:00
mycroft d751b03236 Minor consistency nits. 1995-04-10 10:01:40 +00:00
mycroft 3f22df0746 Declare all return types. 1995-04-10 01:56:41 +00:00
mycroft a9e1bbb0c7 Add no-op open and close functions. 1995-04-10 01:23:19 +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 e957423a98 Move fp_except and fp_rnd definitions to machine/include. 1995-04-09 21:31:58 +00:00
mycroft 25b58554cb Update. 1995-03-31 18:27:30 +00:00
hpeyerl 217531ad26 Update to reflect reality. 1995-03-28 23:57:20 +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
cgd fa2133533d invoke ktrsyscall with (vp, code, argsize, args) as args. 1995-03-26 08:03:29 +00:00
jtc d57fb977bb Added -D_KERNEL to CFLAGS alongside each -DKERNEL. 1995-03-23 19:46:18 +00:00
cgd b8403d582b don't be so quick to cast macro arguments to unsigned; if the
arguments are really off_t's (e.g. to btodb), then you can lose
information.  This was the "> 4G file systems don't work" bug; physio
uses btodb, which was broken.
1995-03-18 07:22:43 +00:00
mycroft 2f805fa51b copy*str() should use size_t. 1995-03-09 12:05:21 +00:00
mycroft dc3d752c6c Fix last arg to scdebug_ret(). 1995-03-09 08:59:45 +00:00
mycroft add762f71c Panic if the emulation type is invalid. 1995-03-08 06:49:22 +00:00
mycroft e518635e13 Fix some types:
* code, args, and rval should use register_t.
* argsize should be a size_t.
Remove old notimp() kluge; replaced by a better mechanism.
Add some of the SunOS compat hooks.
1995-03-08 06:39:06 +00:00
mycroft 6c30f4a892 Remove file systems. 1995-03-05 23:04:25 +00:00
mycroft 3af978980c Make the dump code more consistent with i386. Mostly cosmetic. 1995-03-05 22:19:26 +00:00
mycroft 30a80c01af Make these consisteny with i386. Mostly cosmetic. 1995-03-05 22:06:42 +00:00
mycroft 4c34be6b52 Clean up deleted files. 1995-03-01 00:00:00 +00:00
mycroft b39bd2f2d3 Move common code for finishing a buffer into a separate function. 1995-02-23 22:23:40 +00:00
mycroft ae95dc7533 More disks, tapes, MSDOSFS... 1995-02-23 22:22:07 +00:00
mycroft f96a1945c5 Remove `nboot' completely. 1995-02-21 09:16:34 +00:00
mycroft 85eb2facec Use the libsa exec(). 1995-02-21 09:06:13 +00:00
mycroft 28983f9e3f Tweak to make the twiddler look better. 1995-02-21 06:39:01 +00:00
mycroft e9685fc52f Don't define netif_debug here. 1995-02-20 00:19:43 +00:00
mycroft 30b00f8878 Slight rearrangement. 1995-02-20 00:15:06 +00:00
mycroft 19a789aae8 Update to the new RCS id convention. 1995-02-20 00:12:09 +00:00
mycroft 6cd040ac12 Don't stall if we get packets back-to-back. 1995-02-19 23:54:18 +00:00
mycroft 388209113e Don't panic if the battery is dead. 1995-02-19 23:53:19 +00:00
mycroft 2fd9d0abfb Add unfinished netboot code, and reorganize the Makefile somewhat. 1995-02-19 19:17:01 +00:00
mycroft d045c68f75 Update for split fu/su functions. 1995-02-08 14:53:33 +00:00
mycroft b500256b0f Remove [fs]ui{byte,word}(). 1995-02-08 14:52:31 +00:00
mycroft e732893c41 Remove fu/su functions. 1995-02-08 14:51:08 +00:00
mycroft 44965e0438 Include common m68k version of copy.s. 1995-02-08 14:22:30 +00:00
mycroft 19ff4e7205 Don't include copy.s from here. 1995-02-08 14:20:06 +00:00
mycroft 86dbbad738 Use common m68k version of copy.s. 1995-02-08 14:18:04 +00:00
mycroft 04695541bb Clean up deleted files. 1995-02-08 14:16:40 +00:00
cgd 2ef4ca1f3d vn -> vnd renaming, for consistency 1995-01-25 04:48:07 +00:00
hpeyerl 3fc42a912d NULLFS 1995-01-24 14:01:28 +00:00
hpeyerl 83865999ab options GATEWAY. 1995-01-23 15:14:33 +00:00
jtc 9540190d45 This file, which will be included by <sys/cdefs.h>, will contain macros
such as __warn_references() and __weak_reference() which are actually
machine dependant.  This will make it easier for ports that are being
bootstraped with ELF and ECOFF based toolchains.

This change also introduces a new macro, _C_LABEL(x).  _C_LABEL expands
its argument, an identifier, to a character string of the identifier
name as it is represented in an object file.

For most ports, _C_LABEL(x) will expand to "_x", for ELF based ports
_C_LABEL(x) will expand to "x".
1995-01-19 01:38:36 +00:00
mycroft 96d96ccc04 Do not allow opening a device which is not `alive'. 1995-01-18 10:02:43 +00:00
mycroft baf132fa75 Display the correct diagnostic on a coprocessor exception. From Masaru Oki. 1995-01-18 07:37:06 +00:00
mycroft 6f1144b29d Make sure to unlock when aborting. 1995-01-09 11:16:50 +00:00
mycroft 7af86b7eb7 Copy physlock code from SPARC port, and some minor cleaning. 1995-01-09 09:13:09 +00:00
mycroft 770773f4ad Add mt. 1995-01-07 22:54:16 +00:00
mycroft 923bbe6e3b Various diffs from Mike Hibler; necessary for mt driver. 1995-01-07 10:30:10 +00:00
mycroft 81ec9ebcef Add LKM stuff. Some general cleanup. 1995-01-05 21:06:36 +00:00
hpeyerl 2d28f622d7 Make the LEDS blink like Jason's heart. from <thorpej@cs.orst.edu> 1994-12-30 07:22:21 +00:00
mycroft b5e0ae3fc4 microtime() returns void. 1994-12-29 03:48:38 +00:00
cgd e5049f4d59 make the definition of _JBLEN mach. dep. header-dependent. 1994-12-20 10:36:27 +00:00
hpeyerl cff8a14e10 so machines with only an rd or sd will compile. from Thorpej. PR#610. 1994-12-20 06:53:45 +00:00
mycroft 9614f9bb82 Add mt and pollc stuff. 1994-12-16 04:14:13 +00:00
mycroft 2012971fa4 Fix typo in previous. 1994-12-16 04:00:21 +00:00
mycroft a7393f95f3 Remove fp arg to d_open. 1994-12-14 18:52:32 +00:00
mycroft b0e55a5994 Add dummy itestart(), and use ttrstrt() rather than a local version of the same. 1994-12-13 14:20:33 +00:00
christos 40abc70ce2 changed open prototype 1994-11-14 05:55:23 +00:00
mycroft 38d3366f0f Fix type of `code' arg to sendsig(). 1994-11-08 04:22:39 +00:00
mycroft f875a9efe6 Allocate pv_pages differently. 1994-11-08 01:17:19 +00:00
cgd d4510670f1 fix for bug 559, as reported by Jason Thorpe. (fix by me) 1994-11-06 21:49:08 +00:00
cgd 132b41434c new RCS ID format. 1994-10-26 07:22:45 +00:00
mycroft 0ec2e0b85c Attempt to deal with trace exceptions from single-stepping a trap instruction. 1994-10-25 15:33:40 +00:00
mycroft 79e18619fb Add a cpu_cleanup() function, to support some experimental code. 1994-10-20 22:43:23 +00:00
mycroft d2b4ef0319 Don't try to load p_priority from the run queue head. 1994-10-20 20:47:53 +00:00
cgd 9da8a598cd update for new syscall args description mechanism 1994-10-20 04:38:33 +00:00
mycroft b7c9fb174f Clean up deleted files. 1994-10-20 04:29:36 +00:00
cgd 49c34d3337 move arch dependence to archs. clean up a bit. deal with weird MAXPARTITONS. 1994-10-14 18:26:22 +00:00
hpeyerl 3595156bad begone 'softcar' begone!
hello 'ppp'.
goodbye 'ccd'.
1994-10-04 17:32:30 +00:00
mycroft 53c4d8a7e6 Fix byte order problem in multicast filter calculation. 1994-09-29 21:24:12 +00:00
mycroft 9b9fa4f2a0 Fix misguided attempt to reorganize bootdev, and fix a few
other miscellaneous bugs and nits.
1994-09-19 00:23:36 +00:00
mycroft 274730a866 Make genassym depend on genassym.c 1994-09-18 00:57:38 +00:00
mycroft 775fc8b821 Add LED frobnication code, from 4.4-Lite. 1994-09-18 00:43:19 +00:00
mycroft b073160a6c Fix typo. 1994-09-16 21:17:21 +00:00
mycroft c3e6d1057b Add tun. 1994-09-16 21:14:58 +00:00
jtc 23ece5babc asm -> __asm (PR #463). 1994-09-16 02:39:36 +00:00
mycroft c7d5bf7b64 Nuke struct ste, struct ste40, struct pte, and HP_PAGE_SIZE. Use my
pv_entry allocator.  Change pa_index() to pmap_page_index() for consistency
with other ports.
1994-09-09 23:52:49 +00:00
mycroft c7b57907f0 Do a hack similar to the AST optimization for SIRs on syscall exit. 1994-09-09 23:40:15 +00:00
mycroft f66f685ad2 Very simple change to avoid a complete register save/restore pair when handling
ASTs after a syscall.
1994-09-09 03:58:38 +00:00
mycroft 675c4aae2b Remove some functions which are in libkern. 1994-09-09 03:11:31 +00:00
mycroft e0fa548a12 Optimize the run queue frobnication, and add some more DIAGNOSTIC checks. 1994-09-09 02:56:54 +00:00
mycroft d20de15399 Add USPACE. 1994-08-24 19:32:36 +00:00
brezak dd945bf3c1 Don't echo here 1994-08-22 21:41:23 +00:00
brezak 901e645db3 Do echo here just like libsa::gets() 1994-08-22 21:41:07 +00:00
mycroft 1785232aa9 vn --> vnd 1994-08-17 20:16:16 +00:00
mycroft c809e30fcb No COMPAT_HPUX at the moment. 1994-08-17 20:16:07 +00:00
mycroft 8f2482ff3d Fix `make depend' error. 1994-08-15 06:42:04 +00:00
mycroft eade2eabf4 Clean up deleted files. 1994-08-05 23:16:10 +00:00
brezak 62a05786ea Use installboot.sh from 4.4 instead of installboot.c 1994-08-04 19:42:16 +00:00
mycroft a18c0c0d83 Look for errors in the right place in a transmit descriptor, and count
collisions.
1994-07-25 22:54:58 +00:00
mycroft e307d33fdc Clean up deleted files. 1994-07-24 02:10:46 +00:00
mycroft 2b3a0d92f6 MDP_AST is deprecated. 1994-07-19 21:43:57 +00:00
mycroft 993ebf5d8d Clean up deleted files. 1994-07-18 07:15:50 +00:00
mycroft 07a265f1c0 Add some missing options to GENERIC, and rename. 1994-07-18 07:15:45 +00:00
cgd 511df844bb add COMPAT_44 1994-07-18 07:07:17 +00:00
mycroft 3451593ece Dorothy, I don't think we're in Utah any more... 1994-07-18 06:27:12 +00:00
mycroft cf21bbfd5e Make grf truly optional. 1994-07-16 13:15:03 +00:00
cgd b4dc71d3d9 on COMPAT_44, allow execution of 4.4BSD binaries 1994-07-16 06:43:00 +00:00
cgd 930318d5aa get device.h from the right place 1994-07-16 06:24:46 +00:00
mycroft e88e13f3bb Fix a bogon relating to >16-bit addresses that I introduced. Fix up BPF
support for received packets.
1994-07-15 21:20:48 +00:00
mycroft db0e00db86 Clean up a bit. 1994-07-10 17:53:12 +00:00
mycroft 60b6c8c0fe This #endif got truncated... 1994-07-07 01:31:00 +00:00
mycroft f810838a9c Speed this up a bit, do multiple transmit buffers, etc. 1994-07-06 01:36:23 +00:00
mycroft 923bab6d40 HPFPLIB --> FPSP 1994-07-05 18:16:43 +00:00
mycroft 53dacdcce5 Add FPSP magic. 1994-07-05 17:11:21 +00:00
mycroft fc6b5fa682 Redo the interface to FPSP, using the supplied glue code. 1994-07-05 17:08:51 +00:00
mycroft 1d45aaf9e2 Fix a compiation problem. 1994-07-05 17:08:16 +00:00
mycroft 0535e409f8 Clean up deleted files. 1994-07-03 11:44:17 +00:00
mycroft 15814de648 Switch to Motorola emulator. 1994-07-03 11:41:33 +00:00
mycroft 1c1622ca22 Clean up deleted files. 1994-07-03 11:40:39 +00:00
mycroft 86726bc4e3 Switch to Motorola emulator. 1994-07-03 11:40:35 +00:00
cgd a2e313bd42 gen syscall fiels from new syscalls.master 1994-06-30 17:01:45 +00:00
cgd bc9970144d fix up for new ID format, and consistency 1994-06-30 16:42:47 +00:00
hpeyerl 73485a0035 Why was DESTDIR= here? From Dave Carrel <carrel@cisco.com 1994-06-27 04:00:52 +00:00
hpeyerl 83daee43dd woops. Not OLD_DISKLABEL 1994-06-27 03:20:08 +00:00
mycroft 81c61dc857 Clean up deleted files. 1994-06-24 14:09:07 +00:00
hpeyerl 97562c208d Changes for ccd. 1994-06-24 14:00:22 +00:00
hpeyerl ecf10b0a7a additions for ccd driver. 1994-06-24 13:57:01 +00:00
hpeyerl 818c51e6db ufs->ffs. From Jason Thorpe (thorpej@cs.orst.edu) 1994-06-24 13:33:49 +00:00
mycroft b0327583a8 Update an #include. 1994-06-22 03:12:23 +00:00
mycroft c22aab7bbe getdirentries() and getdtablesize() compat. 1994-06-22 03:04:01 +00:00
hpeyerl 48fb64c3f7 hp300/stand stuff from Lite. We can boot hp4xx series nodes now! 1994-06-19 01:49:49 +00:00
hpeyerl 9c8b105c4a Fix for vnode_if 1994-06-16 02:14:26 +00:00
mycroft 3fa62971df Build vnode_if.o. 1994-06-08 07:51:36 +00:00
hpeyerl b3857f73f0 #if out references to cd.c for now. 1994-06-06 14:57:33 +00:00
mycroft 87dcadd3d9 Clean up deleted files. 1994-06-06 14:42:14 +00:00
hpeyerl a4c2978e39 Tell config we need .h files for sd/ct/rd/st 1994-06-03 10:51:31 +00:00
mycroft a031f19ad8 For 4.4 profiling stuff. 1994-05-28 15:41:47 +00:00
mycroft 8b59232a5d Bug fix from Mike Hibler. 1994-05-27 17:20:34 +00:00
mycroft 33e5277208 Update RCS id. 1994-05-27 17:19:38 +00:00