Commit Graph

708 Commits

Author SHA1 Message Date
cgd 651b44e211 Rework the way kernel include files are installed. In the new method,
as with user-land programs, include files are installed by each directory
in the tree that has includes to install.  (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.)  The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change.  Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
1998-06-12 23:22:30 +00:00
tv 00ede2160e Change ddb_init() for a.out to provision for kernels which are not booted by
the current 'bootblock' method, like the Shark, which preloads and preformats
the symbol table right in the boot code.
1998-06-09 01:57:41 +00:00
thorpej a7f360c6c9 Specify a non-profiling C rule. 1998-05-31 23:25:41 +00:00
kleink a97fc2f180 If any of _ANSI_SOURCE, _POSIX_C_SOURCE or _XOPEN_SOURCE are defined, don't
provide any identifiers other than sig_atomic_t.
1998-05-25 20:59:01 +00:00
matthias e63637f311 resolve conflicts from the latest i386 import. 1998-05-23 12:52:27 +00:00
thorpej 4854a503ac Propagate a fix from the i386 version: fix a typo in some code that isn't
yet used.
1998-05-20 17:12:06 +00:00
thorpej 6626878e7b It is no longer necessary for pmap_pinit() and pmap_release() to be
pmap interface functions, as NetBSD no longer uses statically allocated
pmaps (except for the kernel pmap, which is special-cased anyhow).
1998-05-19 19:00:11 +00:00
kleink 687ea7404c Fix some arithmetics lossage on typeless pointers. 1998-05-08 16:55:15 +00:00
thorpej 1686aca01d Pull in opt_gateway.h as appropriate. 1998-04-29 23:11:00 +00:00
kleink a53c1863fe Provide definitions for intptr_t and uintptr_t, signed resp. unsigned integral
types large enough to hold any pointer.
1998-04-27 17:39:10 +00:00
matthias d84c3b6b89 use config (just set the defaults), pmap_new related changes. 1998-04-25 19:58:11 +00:00
matthias 9701d34100 changes to make the port-i386 pmap.new.c work for the pc532. 1998-04-25 19:54:32 +00:00
matthias f4b9ecfd19 initial imprt of i386 pmap_new 1998-04-24 20:10:19 +00:00
matthias e790849ac4 missing bits from the -mrtd changes (declare do_softclock, changed prototype
for child_return).
1998-04-24 20:05:39 +00:00
matthias 0a733bc86a db_memrw.c: There is no pmap_pte in pmap.new.c, use kvtopte.
disksubr.c:	kill register, use explicit types (egcs).
kgdb_machdep.c:	There is no pmap_pte in pmap.new.c, use kvtopte.
locore.s:	PTmap, PTD and PTDpde are not used with pmap.new.c.
machdep.c:	remove unused reference to panicstr (egcs).
		Some pmap.new.c changes.
vm_machdep.c:	Change i386_btop to ns532_btop in pmap.new.c code.
1998-04-21 20:12:17 +00:00
tv b21bfbde11 Add -Wno-main conditional on compiler being gcc 2.8 or egcs. (This adds
a HAVE_GCC28 check-variable that can now be used to add other gcc-2.8
flags in cases where they may be useful, or to remove gcc 2.7.2 "bug
workaround" flags.)
1998-04-12 23:47:41 +00:00
matthias 2fe02dea17 Changes for kernels compiled with -mrtd:
locore.s:
- cpu_switch "returns" to proc_trampoline after cpu_fork. cpu_switch is
  called with an argument, remove it from the stack when not compiled
  with -DMRTD.
- use KENTRY instead of ENTRY for all functions called from C.
- when calling C code, don't clean up the stack when compiled with -DMRTD.
- need to split fusubail into fubail and subail, because fu and su
  take different number of arguments.

machdep.c:
- set sf_p when dumping
- new function do_softclock (that just calls softclock) because softclock
  doesn't take an argument.

mainbus.c:
- establish softclock interrupt to call do_softclock

trap.c:
- trap() and syscall() allways use std C calling conventions.
- need to split fusubail into fubail and subail, because fu and su
  take different number of arguments.
- make child_return take only one argument like the other functions
  "called" via cpu_set_kpc.

vm_machdep.c:
- set sf_p in cpu_fork.
1998-04-11 17:44:11 +00:00
matthias bd4f1b48a9 cpu_switch is called with an argument. Reflect this in the switchframe. 1998-04-11 17:30:40 +00:00
matthias b47b6cc4d2 New macro KENTRY to declare assembler functions used by the kernel to
make -mrtd kernels possible.
1998-04-03 23:01:37 +00:00
matthias 28b0f7408b Make this compile again after the changes to the tty subsystem. 1998-03-30 20:10:26 +00:00
phil 3b25c8611a sync to current state. 1998-03-20 19:15:18 +00:00
matthias 525ebe8083 prepare for PMAP_NEW. 1998-03-19 22:10:21 +00:00
matthias ff58f2dd3a update to my current configuration 1998-03-19 22:09:24 +00:00
matthias e14a1c1120 Switch the pc532 to MACHINE_NEW_NONCONTIG and add machine specific bits
for UVM. All of this was mostly done by stealing code from the i386 port.
Prepare for stealing pmap.new.c as well.
1998-03-18 21:59:38 +00:00
matthias 214f303d0e Import from i386 because it contains a nice explanation of our MMU. 1998-03-18 21:52:02 +00:00
bouyer 9f50fca1fd Add commented out "options FFS_EI" 1998-03-18 16:34:41 +00:00
perry 1ed8ea9966 note second parm of sysarch() is now void *, + trivial KNF, etc. 1998-02-25 21:41:55 +00:00
mycroft 533de19431 Remove random.s. 1998-02-22 08:51:04 +00:00
mycroft dcfb8695ab Move to libkern. 1998-02-22 08:50:17 +00:00
thorpej 772da350d4 Disable the message buffer during crash dumps by clearing msgbufenabled,
not msgbufmapped.
1998-02-19 04:18:30 +00:00
mycroft 3b9429b248 Minor changes to make all the float.h files match. 1998-02-18 11:01:27 +00:00
cgd 3bbb7f7d45 Move pmap_map() function definition to MD headers, as appropriate. It's
an internal function, and the VM system shouldn't try to prototype it.
(Note that some ports _don't_ prototype it.)
1998-02-18 02:05:32 +00:00
thorpej 8354e68508 Remove "class" declarations, and add "devclass" declarations where
appropriate.  Fix several inconsistencies between device class and
attributes.  Mostly from Chris Demetriou.
1998-02-16 22:12:45 +00:00
mycroft b5c132e4d2 Prototype __flt_rounds() consistently. 1998-02-03 01:26:20 +00:00
thorpej d454388747 Fix think-o. Noted by Ian Dall. 1998-01-28 18:26:09 +00:00
thorpej 2538ed1062 Use offsetof() from libkern.h 1998-01-28 02:23:04 +00:00
mycroft 15ae963bea When dumping, print out the device number as major,minor. 1998-01-24 16:46:23 +00:00
thorpej ac71bb86e2 This file was apparently accidentally ressurected. 1998-01-12 19:59:00 +00:00
thorpej 2d53e59a47 Update for changes to config. 1998-01-12 19:51:03 +00:00
perry 6f57e5c573 multiple include protect machine/limits.h, fixes pr 4473 (from Mika Nystrom) 1998-01-09 22:23:44 +00:00
perry b46484bb8a RCSID Police. 1998-01-05 20:51:25 +00:00
perry 015e898c02 RCSID Police. 1998-01-05 07:02:46 +00:00
thorpej b9f1b716f3 Now that all ports have pmap_activate(), and it has an identical interface,
prototype it in <vm/pmap.h>
1998-01-03 01:12:59 +00:00
thorpej a6f228e498 Make pmap_activate() take a struct proc *. 1998-01-02 22:36:33 +00:00
matthias f0faff5a2f sync with /sys/arch/i386/i386/md_root.c. 1997-12-10 21:56:30 +00:00
matthias 071a27d737 add MEMORY_DISK_IS_ROOT to use the memory disk and not the boot device
as the rootdevice.
1997-12-10 21:51:14 +00:00
kleink c87631771e Add COMPAT_13. 1997-12-01 14:52:51 +00:00
matthias d4150bfec4 Do not include vm/lock.h. It does no longer exist. 1997-11-26 21:26:44 +00:00
phil 5050531ac6 Do transfers with interrupts off. 1997-11-24 12:35:20 +00:00
kleink 66c2794142 Add _BSD_SUSECONDS_T_ and _BSD_USECONDS_T_; do some space vs. tab formatting
cleanup
1997-11-23 20:20:53 +00:00
phil 7cf15a500f Boot loader changed addresses due to a size increase and a similar change
size in the boot floppy.
1997-11-18 01:19:21 +00:00
lukem 6c986561ee * add commented out DDB_HISTORY_SIZE=100 if DDB exists in config file
* fix up use of 'options<SPACE><TAB>'
1997-11-17 01:57:23 +00:00
phil 2516dd1548 int -> long in a structure. 1997-11-13 20:57:31 +00:00
thorpej ce4c770f88 Make sure CPP, AR, AS, and RANLIB are defined. 1997-11-12 23:11:50 +00:00
thorpej a421995756 Define LORDER, NM, and TSORT here, like we do the rest of the tools. 1997-11-12 22:25:31 +00:00
phil b9b9e9752b Remove comment on bim.8 man page. 1997-11-10 01:58:10 +00:00
phil 29bc127e91 Remove unknown .even, complete a string in a macro call. 1997-11-10 01:50:25 +00:00
thorpej 0b04d28454 Mark uses of long long with /* LONGLONG */ for lint. From
Chris Demetriou <cgd@pa.dec.com>.
1997-11-05 04:36:08 +00:00
thorpej c7546c77a5 asm -> __asm__, inline -> __inline 1997-11-05 04:16:06 +00:00
thorpej 4730a8cbec Bug fixes and cleanup from Chris Demetriou <cgd@pa.dec.com>:
- fix _C_LABEL so that it actually works.
- make __RENAME use _C_LABEL.
- fix __RENAME so that it expects an unquoted argument.
- fix __indr_reference and __warn_references so that they
  supply their own final semicolon.
- define __warn_references to nothing if not GNU C (required
  by the way it's used).

The __warn_references semicolon change has to be made
so that __warn_references can be defined into nothing.
(A ; all by itself isn't a great idea.)  The __indr_reference
change was made for consistency.
1997-11-04 23:09:23 +00:00
phil a3be0335e3 Add prototypes for mcount and _mcoount. 1997-10-28 06:03:25 +00:00
thorpej 665f7d1a6e Implement __RENAME() in <machine/cdefs.h> 1997-10-22 05:20:32 +00:00
phil 49977a64e5 include <vm/vm.h> at proper points. 1997-10-22 03:40:17 +00:00
phil b34ae4f929 Get TRUE and FALSE defined again. 1997-10-22 03:35:56 +00:00
phil e0b89dfe15 Comment out aic driver to remove conflict with mi driver. 1997-10-20 03:19:16 +00:00
christos cb7b7c367b Fix chrtoblk prototype 1997-10-17 01:59:56 +00:00
phil 64549a8105 Fix syntax errors. (missing ,s) 1997-10-15 18:08:01 +00:00
explorer 80513cb5ae o Make usage of /dev/random dependant on
pseudo-device   rnd                     # /dev/random and in-kernel generator
  in config files.

o Add declaration to all architectures.

o Clean up copyright message in rnd.c, rnd.h, and rndpool.c to include
  that this code is derived in part from Ted Tyso's linux code.
1997-10-13 00:46:08 +00:00
mycroft 9803f46796 Minor rearrangement to match other files. 1997-10-11 09:12:18 +00:00
mycroft 5c8d588138 Nuke NOOBJ. 1997-10-11 08:44:42 +00:00
mycroft acf0e569a5 Update all the tags goo, and use bsd.subdir.mk. 1997-10-11 08:42:02 +00:00
bouyer 6ab3092b11 Add byte-swapping functions (bswap16, bswap32, bswap64) to libkern.
Only assembly version for i386 bswap16 and bswap32 for now (bswap64 uses
bswap32). Contribution of assembly versions of these are welcome.
Add byte-swapping of ext2fs metadata for big-endian systems.
Tested on i386 and sparc.
1997-10-09 15:42:19 +00:00
lukem 7d508b124f define SIZE?=size, and use ${SIZE} instead of size. makes cross
compilation easier
1997-10-03 07:17:00 +00:00
christos 7f41ec0345 PR/4162: Chris Jones: make cleandir does not work properly; it does not
remove the object files and the .depend file in the kernel build directory.
1997-09-30 22:50:53 +00:00
phil ea2fc3a36c Add a missing ( in the pmap_enter call for the message buffer. 1997-09-23 13:48:15 +00:00
leo d4713d24c2 Implement the kernel part of pr-1891. This allows for a more flexible sized
msgbuf. Note that old 'dmesg' and 'syslogd' binaries will continue running,
though old 'dmesg' binaries will output a few bytes of junk at the start of
the buffer, and will miss a few bytes at the end of the buffer.
1997-09-19 13:52:37 +00:00
mycroft 16a8787248 Fix execve(2) and *setregs() interfaces so emulations can set registers in a
more correct way.  (See tech-kern.)
1997-09-11 23:01:44 +00:00
bouyer 6f3bab1f59 Merge scsipi branch in the mainline. This add support for ATAPI devices
(currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2
busses to which devices can attach (scsibus and atapibus). This needed to
change some include files and structure names in the low level scsi drivers.
1997-08-27 11:22:52 +00:00
phil 5bc246cdb1 Add cd9660 fs and msdos fs. 1997-07-29 18:36:19 +00:00
jtk d36d6d14ab use locator defines in "locators.h" to index cf_loc[] 1997-07-17 02:01:26 +00:00
leo 198bd713f2 Generate assym.h dependencies when making 'depend'. 1997-07-12 22:07:36 +00:00
perry ad1710ce1e update comment from 1981 on memory and disk prices -- pr-2754 from Curt Sampson 1997-07-12 16:18:36 +00:00
matthias bb66aaeadc * Make it possible to disable disconnect/reconnect on a per target base.
* Eliminate disable interrupts in ncr_pdma_in. No more fifo overflows at
  high baud rates :-) (Thank's to Ian Dall for this).
1997-07-09 19:28:25 +00:00
matthias c5e3d310a6 When booting from a md device set RB_DFLTROOT in boothowto. 1997-07-09 19:28:20 +00:00
matthias 1c1450c97a Remove __VM_PMAP_HACK. 1997-07-09 19:27:54 +00:00
matthias ed60e6a598 This wasn't in use for several years now. 1997-07-09 19:27:33 +00:00
matthias 147aa6816f Remove __VM_PMAP_HACK. 1997-07-09 19:26:34 +00:00
thorpej 0404c01c46 #define DB_AOUT_SYMBOLS 1997-06-26 01:26:56 +00:00
mrg 1258c8d25b remove now obsolete "swap on..." lines. 1997-06-12 18:41:58 +00:00
mrg 552af779d2 bring mrg-vm-swap2 onto mainilne. 1997-06-12 15:46:19 +00:00
mrg dc6a98e92c bring mrg-vm-swap2 onto mainilne. 1997-06-12 15:09:23 +00:00
veego 6ab737a609 Initialize machine from MACHINE and machine_arch from MACHINE_ARCH. 1997-06-08 23:59:57 +00:00
veego de7e49a954 Add 'char machine_arch[] = "xxx";' for the new sysctl hw.machine_arch. 1997-06-06 23:26:01 +00:00
phil 71fb702409 Update Sys V shared memory options. Still commeted out, but now correct. 1997-06-03 01:38:00 +00:00
phil 079405ea2a Update SHMMAXPGS to a constant of 1024. 1997-06-01 19:23:08 +00:00
phil 2f418f67bd Update to what I'm using. 1997-06-01 18:15:12 +00:00
matthias 1574dad87a * Missed that one during last commit. 1997-05-17 14:06:26 +00:00
matthias eed1dad537 * Reorganize pc532/stand similar to the alpha and hp300 ports (by stealing
Makefiles and scripts from hp300/alpha).
1997-05-17 13:55:34 +00:00
gwr e2a58b69f7 Add #define __VM_PMAP_HACK as a temporary measure. 1997-05-16 21:35:30 +00:00
matthias 9e785c6d3f * Define proc0paddr here and not in locore.s. 1997-05-10 09:29:26 +00:00