Commit Graph

555 Commits

Author SHA1 Message Date
pk 808df5543f Remove cpu_set_init_frame(). 1996-03-14 00:49:20 +00:00
pk 894fde6bdd Remove __FORK_BRAINDAMAGE. 1996-03-14 00:48:30 +00:00
cgd 18ec26aa21 add _MACHINE and _MACHINE_ARCH, which are like MACHINE and MACHINE_ARCH,
execpt without quotes.  meant to be __CONCAT()ted for easy #includes
of machine-dependent headers for MI code (e.g. for the MI ISA/EISA/PCI/TC
bus code).
1996-03-04 05:04:10 +00:00
gwr 2de7b2e5cb update PMAP_PREFER 1996-02-28 22:44:33 +00:00
thorpej edf9d66f32 First-cut support for P4 framebuffers. Currently supports P4 variants
of bwtwo, cgfour, cgsix, and cgeight.  Includes support for attaching
the overlay plane of the cgfour and cgeight as a bwtwo instance (a'la
SunOS).

P4 register descriptions, cgfour driver, and cgeight driver partially
derived from OpenBSD.

This code may still need polishing.
1996-02-27 22:09:14 +00:00
pk 2f3ad94f8d An #ifndef _LOCORE to make this file safe to include in locore.s.
Introduce a couple of `CPU-type' helper macros to reduce the preprocessor
tangos in many a source file.
1996-02-22 21:59:08 +00:00
pk e259a02425 Correct some prototypes. 1996-02-22 15:04:07 +00:00
pk f1518de67c delay() prototype. 1996-02-16 22:13:34 +00:00
pk 773f74b60d Change some caddr_t's to void *'s. 1996-02-13 22:43:33 +00:00
christos 8a8e1a4d94 caddt_t -> caddr_t 1996-02-13 17:13:22 +00:00
christos cbb1d18e70 - Fix setcxsegmap prototype.
- Cast ?TO? macros to NULL to avoid compiler warnings
1996-02-13 17:04:58 +00:00
christos c6edd77b23 A few prototype fixes 1996-02-09 23:14:14 +00:00
pk 5fd7df3063 Move splbio to level 5. 1996-02-03 16:10:58 +00:00
mycroft 88e512b693 LOCORE -> _LOCORE 1996-02-01 22:28:24 +00:00
thorpej 3f8e0d27a6 Add a "mountroot hook" mechanism so that devices can take care of
special needs before being used in (*mountroot)().
1996-01-15 00:06:49 +00:00
pk f278cec042 Move bus_map() prototype here. 1996-01-11 21:55:57 +00:00
thorpej 5b39541e48 New generic disk framework. Highlights:
- New metrics handling.  Metrics are now kept in the new
	  `struct disk'.  Busy time is now stored as a timeval, and
	  transfer count in bytes.

	- Storage for disklabels is now dynamically allocated, so that
	  the size of the disk structure is not machine-dependent.

	- Several new functions for attaching and detaching disks, and
	  handling metrics calculation.

Old-style instrumentation is still supported in drivers that did it before.
However, old-style instrumentation is being deprecated, and will go away
once the userland utilities are updated for the new framework.

For usage and architectural details, see the forthcoming disk(9) manual
page.
1996-01-07 22:01:38 +00:00
pk dd9e5c93c7 Use {U,L} suffices per Charles' recommendation. 1996-01-05 18:10:57 +00:00
mycroft 3a89082ff4 Make this work for GCC < 2.6. 1995-12-29 18:53:01 +00:00
mycroft cd8fe86bcb Make the type of __builtin_va_list a long. 1995-12-26 01:16:24 +00:00
mycroft 0c00214737 Use __builtin_va_alist. 1995-12-26 00:19:09 +00:00
mycroft fa887628d8 Stylistic changes. 1995-12-25 23:15:31 +00:00
mycroft 72e24c3168 Update for GCC 2.7, and fix bugs. 1995-12-25 22:24:54 +00:00
pk 528ea56588 Change mapdev() and mapiodev() to take a `struct rom_reg', enabling the use
of IO spaces to construct device mappings.
1995-12-11 12:31:02 +00:00
pk 51c8280df1 Prototype dvma helper functions `dvma_malloc()/dvma_free()' 1995-12-11 12:25:17 +00:00
mycroft 46366f34e7 Include vm.h, rather than guessing which files we need. 1995-12-10 06:50:58 +00:00
mycroft 292120bf63 Define __FORK_BRAINDAMAGE. 1995-12-09 04:41:41 +00:00
pk f6a3272e25 DVMA space is described by the variables `dvma_start' and `dvma_end'.
Prototype dvma_map*() routines.
1995-12-06 22:35:54 +00:00
pk e9a919b88f Code from Jason to better configure /dev/fb. 1995-11-29 01:45:36 +00:00
pk dc3c0d7db7 Define VIDEO enable bit (per Jason Thorpe; PR#1672). 1995-10-23 23:36:28 +00:00
pk 87a0c55d23 Patch from Jason to factor out a common framebuffer size determination
routine from the individual drivers.
1995-10-08 01:39:13 +00:00
pk de0c6a97bd RCONSOLE => RASTERCONSOLE. 1995-10-05 00:26:07 +00:00
pk dad96c6619 Add a few constants used for mapping bit and pieces in the kernel driver. 1995-10-04 00:21:27 +00:00
pk b89096d14f Remove all rcons related stuff from `fbdevice'; this is now defined in
dev/rcons/rcons.h.
1995-09-17 20:41:30 +00:00
pk b04e172458 Rename a `xxx' function. 1995-09-04 09:53:53 +00:00
pk af6e3d03cf Add data structures used to interface to the monitor-resident drivers. 1995-09-03 21:36:06 +00:00
pk 9b3308eeec Enable writing of disklabels (Many thanks to Jason Thorpe, Gordon Ross
and Matthew Green).
1995-09-01 17:19:50 +00:00
pk 6f1f25d6ed Export `eeprom_va' so drivers can peek at the configuration (from Jason Thorpe). 1995-08-29 22:11:58 +00:00
pk 8427fe6126 declarations 1995-08-18 10:47:46 +00:00
pk de80daa3cd Make MCOUNT() PIC-safe. 1995-08-14 15:44:36 +00:00
mycroft 7eba547264 Replace splnet() with splsoftnet(). Add splnet(). 1995-08-13 00:29:56 +00:00
thorpej f72d54fa88 Zap duplicate RCS id. 1995-07-12 05:47:47 +00:00
pk 576bc844e5 Support KIOC_GETLAYOUT, so other than US keyboards can be dealt with better. 1995-07-06 05:35:34 +00:00
pk 10a0b4b79e Prototype pmap_dumpsize() and pmap_dumpmmu(). 1995-07-05 18:45:46 +00:00
pk b34c403839 #define MACHINE_NONCONTIG here, so all vm_*.c files see it timely. 1995-07-05 18:04:48 +00:00
pk 50755a7cc5 typos. 1995-07-05 17:53:41 +00:00
pk 8a8842dc58 remove __BDEVSW_DUMP_OLD_TYPE
#include <sys/cdefs.h>.
1995-07-05 17:46:11 +00:00
christos 38f1964478 Fix bug in the KGDB trap definition. Add svr4 software traps. 1995-07-04 22:58:51 +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
pk affbc4d346 Define variables and macros for DVMA allocation using rmaps. 1995-06-26 22:36:32 +00:00
pk 04977f87e0 sl_xxx2 -> sl_pcylinder, for Chucks new xd driver. 1995-06-26 22:09:47 +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
pk 008504e597 Define IO-cache bit for sun 4/400 machines. 1995-06-25 23:15:58 +00:00
pk 95733d9732 add a couple more sun4m bits. 1995-06-25 21:34:28 +00:00
jtc 55fbbc705d Wrap with #ifndef _XXX_FLOAT_H_/#define _XXX_FLOAT_H_/ ... /#endif. 1995-06-20 20:45:22 +00:00
jtc 1d65cdd4ab #include <sys/cdefs.h>.
Wrap __flt_rounds() declaration with __BEGIN_DECLS/__END_DECLS.
1995-06-20 20:32:22 +00:00
pk 95fcffe527 eeprom device for Sun4 from Jason Thorpe. 1995-05-29 23:56:27 +00:00
pk b4cf60ac8a cpu_swapout() not needed after all. 1995-05-19 06:57:41 +00:00
pk e01c46144d Minimalist implementation of KIOC[SG]KEY. 1995-05-10 16:04:55 +00:00
pk f250262185 #define VA_INHOLE() - to test a VA for being in an MMU hole
(and PG_VSHIFT should 29).
1995-05-08 17:47:26 +00:00
pk 9ef5f62072 Start swapping. 1995-05-08 17:34:20 +00:00
cgd 8703076975 define BROKEN_SWAP and/or cpu_swapout as appropriate. 1995-05-05 03:41:51 +00:00
pk d4f78febcf define LED controls 1995-04-26 14:24:54 +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
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 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
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 22cefc03bc Bring back pmap_kernel(), for now always inlined as a pointer to
kernel_pmap_store.
1995-04-10 12:41:29 +00:00
christos 687b36dccc First pass at the ucontext stuff. 1995-03-31 02:55:59 +00:00
jtc 71ab4ed9dc KERNEL -> _KERNEL 1995-03-28 18:13:48 +00:00
jtc f86410093b Changed name of __weak_reference() to __indr_reference(). They really
are indirect references, and I want to add a real __weak_reference()
macro to <machine/cdefs.h> soon.
1995-03-23 19:58:48 +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
pk d374af4496 Prototype for pmap_pa_exists(). 1995-03-10 16:56:27 +00:00
pk d61b2703ef Allow for multiple virtual PROM addresses. 1995-03-08 15:51:03 +00:00
pk e924f34f97 Sync with sys/audioio.h for now, so SunOS compat works. 1995-03-04 09:58:45 +00:00
pk 02b0f2a929 floppy levels. 1995-02-23 19:58:16 +00:00
pk b96f801acb We have more registers. 1995-02-09 10:34:21 +00:00
pk f6cd1eeea7 Integrate changes from Chuck Cranor for the Sun 4/100.
Support for multiple register banks on SBUS devices (based on patches
from Francis Dupont).
Highlights:
	romaux defines an array of register spaces.
	pay attention to `vactype'.
	quirks handling 4/100 idiosyncracies.
1995-02-01 12:37:21 +00:00
jtc 830a53e394 ANSI says that <stdarg.h>'s va_end macro must expand to a void expression.
For consistancy, I'm changing <varargs.h> too.
1995-01-28 01:51:46 +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
jtc d7a8b2964f Only define sig_atomic_t when _ANSI_SOURCE is defined. 1995-01-10 19:01:00 +00:00
pk 6cfe5f9b6f pmap_init() already declared elsewhere. 1995-01-10 16:15:20 +00:00
mycroft 820f9da835 Validate /dev/mem addresses again. 1995-01-09 11:22:06 +00:00
cgd e5049f4d59 make the definition of _JBLEN mach. dep. header-dependent. 1994-12-20 10:36:27 +00:00
pk c09156bf8b Introduce pmap_prefer() which is used to obtain a cache-friendly virtual
address.
1994-12-10 11:43:56 +00:00
deraadt 6abee40cb1 prototype wcopy/wzero 1994-11-25 23:11:42 +00:00
deraadt 941871d6ab XXmatch change (and a few __P() as well) 1994-11-23 07:02:02 +00:00
deraadt 274a90762d copyright/Id cleanup 1994-11-20 20:51:32 +00:00
deraadt 3dd85af7b5 fixed rss code by charles 1994-11-14 06:09:19 +00:00
deraadt 8b82ad359d bzzzttt wrong wrong wrong 1994-11-03 04:29:53 +00:00
deraadt 88af1ef233 VA_VSEG() should use NBPG 1994-11-02 23:16:59 +00:00
deraadt 8e89099cf4 ioctl u_long cmd 1994-11-02 04:59:23 +00:00
deraadt b71f248be4 do not have UPAGES definition 1994-11-02 04:59:04 +00:00
deraadt 6d9927894a vme interrupt support 1994-10-26 07:16:34 +00:00
deraadt 62b9ec5645 rearrangement 1994-10-26 07:16:22 +00:00
deraadt 62b99b6414 vme, and cleanup some messy #ifdef stuff 1994-10-26 07:15:09 +00:00
cgd 5aea0d3fd2 update for new syscall args description mechanism 1994-10-20 04:46:23 +00:00
deraadt 3ae3c206d7 mapiodev takes a bustype argument now 1994-10-15 05:48:47 +00:00
cgd f501e4e128 make <stdarg.h> a symlink, and clean up ports' stdarg.h and varargs.h files. 1994-10-15 04:57:29 +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
jtc badcc17a6d Add constants required by XPG3 1994-10-05 17:16:29 +00:00
deraadt 425833d1b0 sun4/300 support works 1994-10-02 21:59:56 +00:00
deraadt c28af54721 MONxx -> OLDMON_xx 1994-10-02 21:50:58 +00:00
deraadt 79b1288c6a USPAGE 1994-09-27 01:32:06 +00:00
deraadt 03ef730e53 make pmeg_t always a u_short 1994-09-25 20:50:26 +00:00
deraadt ca83f065d9 "struct confargs" is used for all device match/attach functions. It
tells you what bus (sbus, vme, ...) you are on.
1994-09-17 23:46:32 +00:00
deraadt 1587c23246 sunos disklabels are translated into netbsd disklabels. 1994-09-17 23:45:39 +00:00
deraadt 82241bcf3e regarding NBPG, PGOFSET, PGSHIFT, NPTESG, VA_VPG:
these are simple macros unless you build a combined sun4+(sun4c,sun4m)
kernel -- then they point to variables which are initialized early on.
1994-08-20 01:26:41 +00:00
deraadt 0ab75b9022 repair a few rom call return values 1994-08-20 01:20:59 +00:00
deraadt b5c483ea1a the sun4c "fake idprom inside the nvram" looks exactly like a sun4 idprom. 1994-08-20 01:20:28 +00:00
deraadt 5cee9394c1 add sun4 control space areas 1994-08-20 01:19:27 +00:00
deraadt 35ff4b995a needed for X 1994-08-14 00:13:20 +00:00
deraadt c6a626e130 first cuts 1994-08-08 05:43:56 +00:00
deraadt 4bb1df3001 maintain resident_count and wired_count 1994-08-06 22:08:32 +00:00
deraadt 822b1d1d65 make X11R5 compile easier 1994-07-21 22:06:13 +00:00
cgd 3fbc338a62 define __BIT_TYPES_DEFINED__ for compatibility with things like BIND and nvi 1994-07-20 05:44:19 +00:00
deraadt 7526e115b9 add srmmu flush/prope ASI sub-codes 1994-07-04 21:36:10 +00:00
deraadt 57fca6c013 goodbye BTOPKERNBASE 1994-07-04 21:35:33 +00:00
pk 65c532b7a2 Allocate pmap's segmap separately.
Keep some tags on segment boundaries to optimise ctx_alloc().
1994-06-10 14:32:54 +00:00
pk 8aa1346476 Profile asm entries also. 1994-06-03 11:48:13 +00:00
pk 7984179d9d sync with 4.4-lite 1994-05-25 16:56:03 +00:00
deraadt 81c57a3c62 for newish vm 1994-05-24 02:25:40 +00:00
deraadt 31ce603a3c liten 1994-05-24 02:16:27 +00:00
deraadt 79430f5f9d liten 1994-05-19 08:23:00 +00:00
deraadt 3e146c5133 sync with 4.4-lite 1994-05-13 20:12:41 +00:00
deraadt 5e6f04e81f profiling and clock stuff 1994-05-05 09:54:33 +00:00
deraadt 94fdbf8dc4 add sun4m ASI definitions 1994-05-05 07:51:25 +00:00
deraadt 32f1e3f490 flags foo 1994-05-05 05:55:00 +00:00
deraadt 63f5d6fba9 decl SHMMAXPGS 1994-04-18 07:17:45 +00:00
pk 5fbd6e4285 DDB support 1994-03-24 08:46:45 +00:00
deraadt 46e78d4fac splimp >= (splnet or spltty) 1994-03-22 08:09:24 +00:00
deraadt 1d2fa0cf4d move defn of trapvec to cpu.h 1994-03-22 08:08:43 +00:00
deraadt 42ba2b6516 add things needed by the cgsix 1994-02-27 10:33:25 +00:00
pk 68f0489fb0 [GS]ETREG definitions for ptrace 1994-02-11 16:51:35 +00:00
pk 4574bd34c2 Define a few things here, in line with other ports. 1994-02-10 19:05:03 +00:00
pk bdf4c9bf54 pmap_t typedef outside `#ifdef KERNEL', as it is brought into user
scope by <vm/vm_map.h>
1994-02-01 11:58:37 +00:00
deraadt e9fee9d6d3 sparc runs in current today 1994-02-01 06:01:19 +00:00
jtc 5235180083 Fix spelling error in Copyright notice 1994-01-28 23:43:26 +00:00
pk 8674aef654 BLAST! 1994-01-27 14:59:37 +00:00
pk 24e4cb4bad move varargs stuff to arch/<machine>/include. 1994-01-27 00:18:18 +00:00
cgd edcba29bc8 add MACHINE_ARCH 1993-12-04 02:12:34 +00:00
deraadt 03f5ee0f24 monster kludge! struct kinfo is very large, cause the pmap struct is
very large. this has to fit into struct user.. kern_kinfo.c should get
fixed (for the core dump case)
1993-12-03 09:23:43 +00:00
deraadt 6839d97c8c use p_emul flag to indicate OS emulation
handle syscalls at standard sun place, ie. trap#80 not #89
add SunOS OMAGIC support
1993-11-10 03:13:19 +00:00
deraadt 9b363afc2d Define the {QUAD,UQUAD}_{MIN,MAX} things here. 1993-10-19 09:03:41 +00:00
deraadt 0e9ecd46ec fix a typo 1993-10-18 13:28:19 +00:00
pk 14e6ea89aa Put definition of __LDPGSZ and `struct relocation_info' where they belong:
in <machine/exec.h>.
1993-10-18 09:46:56 +00:00
deraadt 64a71293dc fbio.h, mailed from Torek. This file is from Sprite, and clearly an
extensively modified SunOS file. *sigh*.
(ie. Feel free to rewrite it from scratch...)
1993-10-16 11:14:51 +00:00
deraadt cefac63158 actually put something in a previously empty file.
__LDPGSZ should now be defined here!
1993-10-15 06:01:06 +00:00
deraadt 7ee2311b78 stdarg.h, varargs.h, psl.h, autoconf.h: posted patches from torek
cpu.h: cpu_adjstack() won't work well in the NetBSD execve - need a
	different model, stub enablertclock() for now..
exec.h: a netbsd-type exec.h file (ie. empty)
param.h: add MID_MACHINE
pmap.h: delete kernel_pmap hack - it doesn't work for us, + two proto's
vmparam.h: VM_MIN_ADDRESS = 0!
1993-10-11 02:28:23 +00:00
deraadt 5dbfa8c726 need these 1993-10-10 11:18:03 +00:00
deraadt 4588caefaa Chris Torek's sparc port. Missing lots of things. 1993-10-02 10:22:00 +00:00