Commit Graph

386 Commits

Author SHA1 Message Date
thorpej
37b378d836 defopt COMPAT_HPUX 1998-06-25 23:56:39 +00:00
thorpej
8aee7782f5 defopt COMPAT_SUNOS 1998-06-25 23:40:33 +00:00
thorpej
971b8956ef defopt KTRACE 1998-06-25 21:18:11 +00:00
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
9ef6fa7387 Build pmap_boostrap.o without profiling; we can't call mcount before the
mmu is enabled!
1998-05-31 23:28:07 +00:00
thorpej
a7f360c6c9 Specify a non-profiling C rule. 1998-05-31 23:25:41 +00:00
is
7a0f63f982 Back out the defopt for M680?0. As pointed out to me, this breaks ports which
dont use the M680?0 the way Amiga, Atari, Mac68k, and X68k do. I must have
missed this in the past discussion about this project.
1998-05-24 19:32:34 +00:00
is
6a6812fd92 Move M680[2346]0 to opt_m68kcpu.h.
XXX Some explicit dependencies could be removed now from the individual
arch/$ARCH/conf/Makefile.$ARCH files, but this is still to be done.
1998-05-23 20:51: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
aa36ad1f55 Fix some arithmetics lossage on typeless pointers. 1998-05-07 21:01:41 +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
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
thorpej
772da350d4 Disable the message buffer during crash dumps by clearing msgbufenabled,
not msgbufmapped.
1998-02-19 04:18:30 +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
scottr
f49dd3ef30 Avoid declaring the "astpending" and "want_resched" globals in cpu.h,
as this breaks C++ code that happens to indirectly include this header.
Both Matthias Scheler and I noticed this, independently.

This problem notably does not affect the atari and sun3/sun3x ports,
which have already implemented a similar solution.
1998-02-13 07:41:45 +00:00
mycroft
b5c132e4d2 Prototype __flt_rounds() consistently. 1998-02-03 01:26:20 +00:00
is
b3fa451227 Amiga uses the common m68k/sig_machdep.c now. Also moved its definition from
the other 68k ports' files.${port} to arch/m68k/conf/files.m68k.
1998-02-01 21:23:24 +00:00
ross
3a83745247 In some hp300-derived pmaps, in pmap_page_protect(), don't walk off the
end of the list of physical->virtual entires into NULL space if the last
entry is (mysteriously) wired in the pmap. Add a DEBUG printf on alpha.
1998-01-31 01:32:55 +00:00
mycroft
15ae963bea When dumping, print out the device number as major,minor. 1998-01-24 16:46:23 +00:00
thorpej
f32f947061 Update for changes to config. 1998-01-12 20:52:29 +00:00
perry
6f57e5c573 multiple include protect machine/limits.h, fixes pr 4473 (from Mika Nystrom) 1998-01-09 22:23:44 +00:00
thorpej
6ac24f05df Garbage-collect VM_PMAP. 1998-01-06 08:46:11 +00:00
thorpej
2317f9064e Garbage-collect pm_stchanged. 1998-01-06 08:40:50 +00:00
thorpej
07f835de1f Garbage-collect PMAP_ACTIVATE() call here; it's no longer necessary. 1998-01-06 07:49:36 +00:00
thorpej
61567b54de Garbage-collect pm_stchanged; it's not used by anything. 1998-01-06 07:02:58 +00:00
thorpej
d11b109f2b Garbage-collect use of the PCB's copy of the user segment table pointer. 1998-01-06 06:51:40 +00:00
perry
2ec6474b31 RCSID Police. 1998-01-06 04:44:59 +00:00
thorpej
a8f80ad4fd Fix a bogosity apparently inherited from when the Utah 4.3BSD code base
was converted to use Mach VM for Net2/4.4BSD.  The user segment table
pointer was originally stored in the PCB.  When Mach VM came along,
however, it was also stored in the pmap, and loaded into the PCB in
pmap_activate().  pmap_activate() would then note that the PCB's USTP
was now in sync with the pmap's USTP, and the low-level context switch
code would use the value from the PCB.

However, pmap_activate() would also load the hardware MMU context if
the pmap was the current pmap (or, in the case where pmaps can be shared,
such as in NetBSD, if the proc was the current proc).  The low-level
context switch code would then reload the hardware _again_ using the
USTP from the PCB.

However, the optimization of not calling pmap_activate() if "stchanged"
was false ended up causing some processes to use stale USTP values from
the PCB when the low-level context switch code reloaded the hardware!
This was noticed by using a real vfork(2) (which worked for some time
before failing, surprisingly!)

Since I'm hard pressed to find any real optimization here (since the
hardware was always reloaded once, sometimes twice!), the code now always
calls pmap_activate(), which uses the correct USTP value (the one in the
pmap).  The PCB's USTP is now ignored, and should eventually be g/c'd.

Another optimization can actually be performed, and I have added a comment
describing what it is, but have not yet implemented it.

Also note that most of the loadustp() functions where actually incomplete.
This has been corrected.  These functions should probably be split up into
MMU-specific operations, and called indirectly, rather than doing constant
run-time decision making based on values that will never change during the
course of a boot's lifetime.
1998-01-05 23:16:21 +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
dd966fca05 Change an argument name to PMAP_ACTIVATE() to more accurately describe the
semantics of the argument.
1998-01-01 20:05:23 +00:00
thorpej
287b63b321 - Make pmap_activate() and pmap_deactivate() take a struct proc *.
- Define active_user_pmap() and use it in the appropriate places (from hp300
  port).
1998-01-01 19:52:50 +00:00
oki
ac86463ce3 Make compile without options MACHINE_NONCONTIG. 1997-12-24 17:48:10 +00:00
oki
49779c8c5a Add MDP_STACKADJ. 1997-12-24 17:46:08 +00:00
kleink
bb7bb0093d Add COMPAT_13. 1997-12-01 16:33:39 +00:00
fair
315f8de9c2 add pseudo-device rnd, commented out 1997-11-20 08:11:14 +00:00
lukem
e8cb388f65 * add commented out DDB_HISTORY_SIZE=100 if DDB exists in config file
* fix up use of 'options<SPACE><TAB>'
1997-11-17 01:58: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
lukem
2793a8e02a use CPPFLAGS instead of CFLAGS 1997-10-26 22:09:43 +00:00
is
a16fd7d74e Make these compile after m68k/m68k.h 1.4->1.5. 1997-10-26 21:41:34 +00:00
oki
a6dfd800c9 Test device is configured in interrput handler. 1997-10-19 20:45:11 +00:00
oki
3e2d17592a add support for MK-HA2 Mach-2 SCSI host adaptor. 1997-10-19 20:41:02 +00:00
oki
968a155917 Add options M68060, mha driver. 1997-10-19 16:04:57 +00:00
oki
742eb9d713 new bootfloppy kernel configuration file. 1997-10-19 16:03:11 +00:00
oki
ad0f2e276a pretty message. 1997-10-19 15:32:57 +00:00
oki
9e3da87164 Use common m68k/sig_machdep.c. 1997-10-19 15:17:24 +00:00
oki
624322fb6a Make this compile new bootblock code. 1997-10-19 11:03:38 +00:00
oki
3f9967ed1d New bootblock code (compressed kernel support).
mostly written by ITOH Yasufumi.
1997-10-19 11:00:51 +00:00
oki
bbe9571856 Make this compile again. 1997-10-19 10:59:55 +00:00
oki
cfe6621afa Support of MK-HA1 Mach-2 SCSI adaptor. 1997-10-19 09:29:25 +00:00
oki
73c0b0f2a6 for ramdisk kernel 1997-10-19 08:16:40 +00:00
oki
ea023e3b94 Use rnd.h and #if NRND > 0. 1997-10-17 20:28:06 +00:00
oki
e8b2ab848c Make this compile again. 1997-10-17 20:24:35 +00:00
oki
3846baf664 Fixed gcc warnings. 1997-10-16 16:24:47 +00:00
oki
3f6dddc5cd Remove use of register. 1997-10-16 15:43:54 +00:00
thorpej
0154e69e5a Pulldown from marc-pcmcia branch: minimal changes to change x68k port's
"com" (now "xcom") driver to avoid name collision with the more
heaviliy-used "com" driver.
1997-10-15 23:39:18 +00:00
lukem
28558b28eb rcsid fascism 1997-10-13 14:22:22 +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
oki
16bcf097c2 call arpintr() if NARP > 0. 1997-10-12 18:49:25 +00:00
oki
075543ca76 Replace trap1 and trap2 to native 4.3 process. 1997-10-12 18:25:36 +00:00
oki
e2f8a8b9cd Oops, dk_establish still need.
Backout previous commit, added prototype.
1997-10-12 18:23:18 +00:00
oki
787edcfff0 Fix compiler warnings. 1997-10-12 18:20:21 +00:00
oki
f78ab6d1cc Added 'arp' to Neptune-X ethernet interface.
Removed local if_se entry (no longer works.)
1997-10-12 18:16:43 +00:00
oki
570278ec01 Added prototypes. 1997-10-12 18:06:21 +00:00
oki
f5733259c7 Added FPU_68060 1997-10-12 18:02:32 +00:00
oki
fd9fae64cc Added prototype. 1997-10-12 14:44:12 +00:00
oki
34c4ab5da2 Prune unused function. 1997-10-12 12:15:15 +00:00
oki
9418615252 Added prototypes. 1997-10-12 12:13:48 +00:00
oki
1db0621f0e Add prototype. 1997-10-12 06:41:45 +00:00
oki
9ce308d6d6 Added header file for prototype. 1997-10-11 11:15:00 +00:00
oki
e23506ac2e Added header file. 1997-10-11 11:13:54 +00:00
mycroft
a7aef46287 Use m68k/Makefile.inc. 1997-10-11 09:11:17 +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
scottr
017e6c7f10 Address PR 4120 by synchronizing v{,un}mapbuf() with the i386 vm_machdep.c,
v 1.27, pulling in changes made there by Charles Hannum.  Also, incorporate
a few tweaks made by Gordon W. Ross in the sun3 version of this change.
1997-10-11 06:38:45 +00:00
oki
8e80f913ed Use CLEANFILES= instead of target clean. 1997-10-11 01:19:15 +00:00
oki
aca42300b3 Use CLEANFILES= instead of target clean. 1997-10-11 00:26:51 +00:00
oki
051b06a759 Add prototypes. 1997-10-10 21:45:18 +00:00
oki
a9685de195 Fdopen --> fdopen 1997-10-10 21:42:38 +00:00
oki
affaadc59f Prune unused function. 1997-10-10 21:40:50 +00:00
oki
a6f8cf735d WARNify, add prototype, remove use of register. 1997-10-10 17:48:06 +00:00
oki
35c6ab7eaf Add prototype, remove use of register. 1997-10-10 17:46:09 +00:00
oki
5a60f8df47 Remove use of register. 1997-10-10 17:43:09 +00:00
oki
9dfe683ff7 Add missing prototypes. 1997-10-10 12:55:26 +00:00
oki
87e21e080a Add missing prototype. 1997-10-10 12:54:02 +00:00
is
9f6d6708f4 Help crosscompiling, by as -> $(AS). Define AS?= as in the calling
Makefile.$(ARCH)es. Will hopefully fix the (remaining) part or pr4010.
1997-10-09 20:40:18 +00:00
oki
15d57c4473 Oops, fixed error in previous commit. 1997-10-09 13:26:18 +00:00
oki
deff7d5471 Added prototype. 1997-10-09 13:19:26 +00:00
oki
a6a631ac6c Added missing prototype. 1997-10-09 13:00:49 +00:00
oki
a947a7eff9 Remove __BDEVSW_DUMP_OLD_TYPE. 1997-10-09 12:59:23 +00:00
oki
2ce1763013 Prototype spl0(). 1997-10-09 12:58:31 +00:00
jtc
da7890c526 Fix tipo inherited from old version of TNF copyright template. 1997-10-09 08:31:58 +00:00
oki
fc752db7e8 Use _ASM_LABEL. 1997-10-08 16:02:04 +00:00
is
37fce9c90f Oops, forgot to commit this when doing the recent 060SP Makefile change. 1997-10-07 19:26:11 +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
is
d5e867bb03 Build the 68060 support package in the kernel build dir.
XXX PCB_ONFAULT is still hardwired to 64 in netbsd060sp.S.
1997-09-28 20:49:56 +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
a9155c5057 Set the status word as well, and remove a bogus comment. 1997-09-12 10:29:20 +00:00
mycroft
cba224ed23 FPCOPROC is no longer used here. 1997-09-12 09:29:13 +00:00
mycroft
5933da103c Add and use fputype. Optimize floating point save/restore routines a bit more
if only one CPU type is defined.  Eliminate FPCOPROC.
1997-09-12 09:23:18 +00:00
mycroft
8a8fa1ee59 Eliminate some uses of FPCOPROC. 1997-09-12 08:19:00 +00:00
mycroft
e9f392b0a9 Eliminate some uses of FPCOPROC. 1997-09-12 08:08:50 +00:00
mycroft
49f0bbb105 Nuke Locore.c. It's way too out of date to be useful at this point. 1997-09-12 07:59:20 +00:00
mycroft
982f24e698 Always initialize all registers in setregs(). 1997-09-12 07:00:30 +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
mjacob
6ac7f6248f add a before tab to SCSIVERBOSE 1997-08-23 19:16:06 +00:00
mjacob
1a7afa3853 add commented out reference SCSIVERBOSE option 1997-08-20 18:38:13 +00:00
jtk
9388f271a9 use locator defines in "locators.h" to index cf_loc[] 1997-07-17 02:12:50 +00:00
oki
841be646de Use genassym.cf to make assym.h 1997-07-14 14:42:52 +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
veego
1450ec3f1b Restore the define of NPTEPG. 1997-07-10 08:23:03 +00:00
kleink
96914606be From sun3:
Correct handling for Trap #2 in SunOS executables,
 now that we know it is supposed to flush the cache.
 (Was thought to be "some obscure FPU operation".)
1997-07-08 16:56:31 +00:00
is
f3efbb406a The recent buserr handler cleanup in the Amiga locore.s made the label
_buserr point to the 68020/030 buserr code _only_. This has broken access
error handling in the 060 support code.
This is repaired by jumping to _buserr60 from the 060SP, and by providing
a _buserr60 label identical to the _buserr in the unchanged m68k ports
using the 68060.
1997-06-26 22:28:42 +00:00
mrg
829a5a9063 move man pages into share/man. 1997-06-22 07:02:27 +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
kleink
f29570aa3a Do not #include the removed <machine/mtpr.h> any more. These definitions are
already living in <machine/cpu.h>.
1997-06-11 08:46:55 +00:00
kleink
a10178c21e GC this file. It has been unused for quite a while. 1997-06-11 08:42:31 +00:00
veego
af1627ce0b The 'Mach derived conversion macros' are now in <m68k/param.h> 1997-06-10 20:20:06 +00:00
veego
e32543e434 s/x68k_btop/m68k_btop/ 1997-06-10 20:19:35 +00:00
veego
7cb125a0b0 s/x68k_round_page/m68k_round_page/ s/x68k_trunc_page/m68k_trunc_page/
s/x68k_btop/m68k_btop/ s/x68k_ptob/m68k_ptob/
1997-06-10 20:18:35 +00:00
veego
c8863019ed s/x68k_trunc_page/m68k_trunc_page/ s/x68k_btop/m68k_btop/
s/x68k_ptob/m68k_ptob/
1997-06-10 19:51:47 +00:00
veego
ba2763943f s/x68k_btop/m68k_btop/ 1997-06-10 19:50:23 +00:00
veego
f66de196f8 s/x68k_trunc_page/m68k_trunc_page/ 1997-06-10 19:49:32 +00:00
veego
931d90fcee Use the MI <m68k/param.h> include. 1997-06-10 07:54:35 +00:00
veego
a204fb7981 Initialize machine from MACHINE. 1997-06-08 23:54:19 +00:00
oki
ca83937d49 Use cdev_ipf_unit() instead of cdev_ch_unit() 1997-06-01 01:27:51 +00:00
veego
a078a4be55 Fix lossage from the latest vm_pmap changes. 1997-05-19 10:14:47 +00:00
gwr
a8af683eb9 Eliminate references to vmspace.vm_pmap 1997-05-13 18:00:49 +00:00
oki
6fd182057f cleanup use of whitespace 1997-05-08 16:39:35 +00:00
mycroft
84bca5d679 Don't use _SUBDIRUSE outside of bsd.subdir.mk. 1997-05-07 17:28:47 +00:00
thorpej
48fa8154e7 Adjust for <m68k/m68k/trap_subr.s> 1997-04-25 01:49:05 +00:00
thorpej
f05b58b229 Use common m68k sigcode. 1997-04-13 02:37:15 +00:00
thorpej
ab1101ab9c regdump() takes a struct trapframe * 1997-04-09 21:08:47 +00:00
thorpej
f224558e27 Garbage-collect regdump() and friends. 1997-04-09 21:07:26 +00:00
thorpej
16f6a6f941 Use <m68k/m68k/proc_subr.s> 1997-04-09 21:04:49 +00:00
thorpej
90c43b0333 Remove redundant file directives 1997-04-09 21:03:20 +00:00
christos
eb6be97252 Add netatalk netisr 1997-04-03 17:49:08 +00:00
oki
ecae3f3421 Add bits[64] declaration 1997-04-02 17:10:41 +00:00
gwr
5485e1ff75 Need a common <m68k/pcb.h> for gdb. 1997-03-31 21:39:51 +00:00
thorpej
2268a2c7eb Don't allocate mclrefcnt[]; it's dead and gone. 1997-03-27 21:01:52 +00:00
gwr
37b247edde Renames: /dumpconf/cpu_dumpconf/, /boot/cpu_reboot/ 1997-03-26 22:42:13 +00:00