minoura
334656f748
Cleanup _doboot, fixing the 040 reboot bug.
1998-09-07 14:14:34 +00:00
itohy
b5f246a8ca
Changed algorightm to figure out boot device.
...
Use type of SCSI interface, target SCSI ID and LUN,
passed from the boot loader.
1998-09-01 20:08:21 +00:00
minoura
e97803df25
Typo.
1998-09-01 15:05:21 +00:00
minoura
7f4ad4748e
Eliminated vm_offset_t and vm_size_t.
1998-08-22 14:38:36 +00:00
minoura
4df8f47ebc
Switched to MI zs driver.
1998-08-05 16:08:33 +00:00
minoura
89f91f85fa
Fixed typo.
1998-08-05 14:40:20 +00:00
minoura
b72d8d17f9
__BROKEN_INDIRECT_CONFIG fixes.
1998-08-04 16:51:51 +00:00
minoura
233cd5d60b
RB_POWERDOWN is now supported.
...
Check if the power switch is open (off) in the shutdown_hook,
and try removing the power in cpu_reboot.
poffd default action is now shutdown -p.
1998-08-04 16:07:53 +00:00
thorpej
3ff8e6493a
Don't cast the null residual pointer passed to vn_rdwr().
1998-07-28 18:34:52 +00:00
thorpej
d47ea67c1f
Define one page free list, and put all pages on it.
1998-07-08 04:43:18 +00:00
jonathan
d275e56dee
* defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
...
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 08:49:30 +00:00
jonathan
011f2bda08
defopt NS, NSIP.
1998-07-05 06:49:00 +00:00
jonathan
5c0c5dd0b4
defopt ISO TPIP.
1998-07-05 04:37:35 +00:00
jonathan
8db0fcdbf7
defopt CCITT.
1998-07-05 02:12:22 +00:00
jonathan
3751946b97
defopt INET, NETATALK.
1998-07-05 00:51:04 +00:00
jonathan
466e784ee1
defopt DDB.
1998-07-04 22:18:13 +00:00
msaitoh
c0eed6da3d
sync with -current after a long silence
1998-06-30 11:59:09 +00:00
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
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
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
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
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
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
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
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
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
3e2d17592a
add support for MK-HA2 Mach-2 SCSI host adaptor.
1997-10-19 20:41:02 +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
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
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
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
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
34c4ab5da2
Prune unused function.
1997-10-12 12:15:15 +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
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
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
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
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
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
oki
841be646de
Use genassym.cf to make assym.h
1997-07-14 14:42:52 +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
552af779d2
bring mrg-vm-swap2 onto mainilne.
1997-06-12 15:46:19 +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
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
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
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
christos
eb6be97252
Add netatalk netisr
1997-04-03 17:49:08 +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
gwr
71e43d14ab
Move findroot/setroot stuff from configure() to cpu_rootconf().
1997-03-26 22:38:40 +00:00
thorpej
b6f3695cd1
Use <m68k/m68k/support.s>
1997-03-16 11:04:52 +00:00
oki
aabb7063c9
Added copyright notice
1997-02-04 11:45:03 +00:00
oki
53aceb9c4b
hit any key to reboot when halted (like hp300)
1997-02-04 11:43:30 +00:00
oki
0e9085546c
Added ipfilter device
1997-02-04 10:35:39 +00:00
oki
ddfc714cbe
Remove initialize mrh_list line, and fixed
1997-02-03 21:08:48 +00:00
oki
9f4a52fe65
Added missing semicolon
1997-02-03 16:55:00 +00:00
thorpej
e17b9d9d39
Garbage-collect extra copy of mappedcopy.
1997-02-02 08:56:04 +00:00
thorpej
97be41b969
Use zeropage() in pmap_zero_page()
1997-02-02 08:54:20 +00:00
thorpej
e3a9cf46ee
zeropage -> devzeropage, and make it static.
1997-02-02 08:50:51 +00:00
thorpej
f05c6918f6
Garbage-collect extra copypage()
1997-02-02 08:48:35 +00:00
thorpej
739f23a219
This file is obsolete; this information is now generated by config(8).
1997-01-31 05:12:49 +00:00
thorpej
e37a1f5794
Use new machine-independent setroot() and mountroothook code.
1997-01-31 02:15:09 +00:00
oki
402d9aaf2d
Oops, fixed typo in previous commit, compile again.
1997-01-20 15:15:20 +00:00
oki
7b0e6b6b07
tvram[] should be u_char, instead of u_short.
1997-01-18 21:04:34 +00:00
oki
ffa088c0d2
silly little optimization.
1997-01-18 13:19:57 +00:00
oki
1e394e1181
Use struct fpframe instead of int[], suggested from Takeshi Nakayama.
1997-01-18 11:48:38 +00:00
oki
b20d46b8b2
Added FPU_XXXX macros.
1997-01-18 11:46:31 +00:00
oki
9fd4b64eb7
bxx --> jxx
1997-01-18 11:16:57 +00:00
oki
0e58d64c9e
first commit of M68060 and FPU_EMULATE support.
...
M68060 support by YAMASAKI Yasushi, few arranged by me.
1997-01-13 14:04:42 +00:00
oki
0f23801475
Fix typo.
1997-01-08 16:16:14 +00:00
oki
7dcae7a79d
Add macros.
1997-01-08 10:29:27 +00:00
oki
e4b66b6973
Compile again.
1997-01-08 10:15:51 +00:00
oki
0c47c09505
Use FPU_XXXXX macro, x68k is now use this file.
1997-01-08 04:03:50 +00:00
oki
4c16b00300
#include "..." --> #include <...>
1996-12-31 00:35:21 +00:00
pk
d5b11782b5
rename: ramdisk => md
1996-12-28 23:27:00 +00:00
thorpej
ef5333043b
Copyright assigned to The NetBSD Foundation.
1996-12-09 17:46:44 +00:00
oki
d27890041b
CACHE4_OFF --> CACHE40_OFF, compile again.
1996-12-09 15:29:06 +00:00
cgd
8a3333b2a9
Fix an inconsistency that came in with Lite: setrq() was renamed to
...
setrunqueue(), but remrq() was never renamed. Rename remrq() to
remrunqueue().
1996-11-06 20:19:19 +00:00
christos
e37692f04d
backout previous kprintf change
1996-10-13 03:29:05 +00:00
christos
848c9d8f02
printf -> kprintf, sprintf -> ksprintf
1996-10-11 00:39:22 +00:00
oki
82f8d6bb4b
added ccd(blk)/ch/uk device
1996-09-16 20:08:56 +00:00
mycroft
9e7223f23d
Use cdev_scanner_init() rather than local cdev_ss_init().
1996-09-08 00:11:51 +00:00
mycroft
e6dd44f034
Use SIGBUS iff we get a legitimate bus fault. Use SIGSEGV for page protection
...
violations (per Solaris, SVR4, AIX, Linux, Irix, and SunOS).
1996-09-07 22:26:41 +00:00
mycroft
2bc736661a
Implement poll(2).
1996-09-07 12:40:22 +00:00
mycroft
fc3def4096
Remove duplicate declarations of LKM functions and macros.
1996-09-05 15:46:22 +00:00
mycroft
086bf59214
Remove gratuitous insn.
1996-09-03 02:07:34 +00:00
cgd
2a73ef60b7
change cfprint_t type definition to take a const char *, rather than
...
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).
1996-08-27 21:53:46 +00:00
oki
b4ffdaad58
Oops, added forgotten "-". closes port-x68k/2706.
1996-08-19 17:22:14 +00:00
oki
95d984309f
fixed use of uninitialized pointer.
1996-08-11 15:28:36 +00:00
mrg
5abbf990f3
Change reboot(2) to take two arguments: bootopt like normal and also
...
a boot string for firmware that can do this, such as the SPARC and
the sun3 models. It is currently silently ignored on all other
hardware now, however. The MD function "boot()" has been changed to
also take a char *.
1996-08-09 10:30:23 +00:00
oki
de609f142b
From Ignatios Souvatzis <is@NetBSD.ORG>:
...
properly distinguish between a bus error and an MMU fault
on systems with 68030 MMU
1996-07-16 16:18:34 +00:00
oki
f8e8e90f15
move wait for insert system floppy to mountroot_hook stuff
1996-07-08 16:32:12 +00:00
oki
3b090d3e8f
fixed to write disklabel correctly.
1996-06-16 09:07:59 +00:00
cgd
352d972c94
locc() is unused. Remove it from the machine-independent kernel interface.
1996-06-10 15:33:33 +00:00
oki
76fc9e1d30
fixed compiler error at kvtop().
1996-06-05 16:21:44 +00:00
oki
b042da1f56
fixed reboot problem on Xellent30.
1996-05-29 17:19:07 +00:00
oki
30ec7d2c44
Some cleanup.
...
- Add missing return-type of function.
- Add missing prototype.
- some gcc -Wall printf warning.
1996-05-21 15:32:18 +00:00
oki
6a0bb3e228
Add 'rd' ram-disk pseudo-device.
1996-05-20 14:56:20 +00:00
oki
30bc3379a6
'unlock' label is used for #ifndef DEBUG, my previous change
...
is bogus.
1996-05-19 12:20:54 +00:00
oki
36a323b483
Added 'unlock' label for #ifdef DEBUG,
1996-05-19 11:37:20 +00:00
oki
6cab72d789
Add a "_kernel_text" symbol, for libkvm. From Gordon Ross.
1996-05-17 12:22:22 +00:00
oki
347edbdf91
fixed gcc -Wall warning.
1996-05-16 15:57:32 +00:00
oki
34a55c3e59
fixed gcc -Wall warning.
1996-05-15 16:12:48 +00:00