miscellaneous cleanup
This commit is contained in:
parent
c1e4c90429
commit
72d730bdc9
|
@ -28,7 +28,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Header: /cvsroot/src/sys/arch/sun3/sun3/Attic/interrupt.s,v 1.10 1994/05/27 14:58:28 gwr Exp $
|
||||
* $Header: /cvsroot/src/sys/arch/sun3/sun3/Attic/interrupt.s,v 1.11 1994/07/11 03:41:28 gwr Exp $
|
||||
*/
|
||||
|
||||
.data
|
||||
|
@ -96,8 +96,9 @@ _level5intr_clock:
|
|||
orb #IREG_CLOCK_ENAB_5, INTERREG_VA
|
||||
tstb CLOCK_VA+INTERSIL_INTR_OFFSET
|
||||
INTERRUPT_SAVEREG | save a0, a1, d0, d1
|
||||
#define CLOCK_DEBUG
|
||||
#ifdef CLOCK_DEBUG
|
||||
|
||||
#undef CLOCK_DEBUG /* XXX - Broken anyway... -gwr */
|
||||
#ifdef CLOCK_DEBUG
|
||||
.globl _panicstr, _regdump, _panic
|
||||
tstl timebomb | set to go off?
|
||||
jeq Lnobomb | no, skip it
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Header: /cvsroot/src/sys/arch/sun3/sun3/locore.s,v 1.18 1994/05/29 05:16:56 gwr Exp $
|
||||
* $Header: /cvsroot/src/sys/arch/sun3/sun3/locore.s,v 1.19 1994/07/11 03:41:29 gwr Exp $
|
||||
*/
|
||||
#include "assym.s"
|
||||
#include <machine/asm.h>
|
||||
|
@ -38,6 +38,7 @@
|
|||
|
||||
.globl tmpstk
|
||||
.data
|
||||
tmpstk_low:
|
||||
.space NBPG
|
||||
tmpstk:
|
||||
.set _kstack,MONSHORTSEG
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: locore2.c,v 1.22 1994/06/28 22:06:02 gwr Exp $
|
||||
* $Id: locore2.c,v 1.23 1994/07/11 03:41:33 gwr Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -298,9 +298,9 @@ void sun3_vm_init()
|
|||
}
|
||||
|
||||
/*
|
||||
* we need to kill off a segment to handle the stupid non-contexted
|
||||
* pmeg
|
||||
*
|
||||
* Reserve a segment for the kernel to use to access a pmeg
|
||||
* that is not currently mapped into any context/segmap.
|
||||
* The kernel temporarily maps such a pmeg into this segment.
|
||||
*/
|
||||
temp_seg = sun3_round_seg(virtual_avail);
|
||||
set_temp_seg_addr(temp_seg);
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
* from: Utah Hdr: machdep.c 1.63 91/04/24
|
||||
* from: @(#)machdep.c 7.16 (Berkeley) 6/3/91
|
||||
* machdep.c,v 1.3 1993/07/07 07:20:03 cgd Exp
|
||||
* $Id: machdep.c,v 1.33 1994/06/28 22:05:52 gwr Exp $
|
||||
* $Id: machdep.c,v 1.34 1994/07/11 03:41:32 gwr Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -1110,7 +1110,7 @@ void boot(howto)
|
|||
|
||||
regdump(fp, sbytes)
|
||||
struct frame *fp; /* must not be register */
|
||||
int sbytes;
|
||||
int sbytes;
|
||||
{
|
||||
static int doingdump = 0;
|
||||
register int i;
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: sun3_startup.c,v 1.22 1994/06/28 22:06:02 gwr Exp $
|
||||
* $Id: sun3_startup.c,v 1.23 1994/07/11 03:41:33 gwr Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -298,9 +298,9 @@ void sun3_vm_init()
|
|||
}
|
||||
|
||||
/*
|
||||
* we need to kill off a segment to handle the stupid non-contexted
|
||||
* pmeg
|
||||
*
|
||||
* Reserve a segment for the kernel to use to access a pmeg
|
||||
* that is not currently mapped into any context/segmap.
|
||||
* The kernel temporarily maps such a pmeg into this segment.
|
||||
*/
|
||||
temp_seg = sun3_round_seg(virtual_avail);
|
||||
set_temp_seg_addr(temp_seg);
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
*
|
||||
* from: Utah Hdr: trap.c 1.37 92/12/20
|
||||
* from: @(#)trap.c 8.5 (Berkeley) 1/4/94
|
||||
* $Id: trap.c,v 1.25 1994/07/01 21:30:13 gwr Exp $
|
||||
* $Id: trap.c,v 1.26 1994/07/11 03:41:35 gwr Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -439,20 +439,13 @@ trap(type, code, v, frame)
|
|||
ftype = VM_PROT_READ;
|
||||
va = trunc_page((vm_offset_t)v);
|
||||
#ifdef DIAGNOSTIC
|
||||
if (map == kernel_map) {
|
||||
if (va == 0) {
|
||||
printf("trap: bad kernel access at %x\n", v);
|
||||
goto dopanic;
|
||||
}
|
||||
} else {
|
||||
if (va >= VM_MAXUSER_ADDRESS) {
|
||||
printf("trap: user access at kern addr %x\n", v);
|
||||
Debugger();
|
||||
}
|
||||
if (map == kernel_map && va == 0) {
|
||||
printf("trap: bad kernel access at v=0x%x\n", v);
|
||||
goto dopanic;
|
||||
}
|
||||
#endif
|
||||
rv = vm_fault(map, va, ftype, FALSE);
|
||||
#if 1 /* def DEBUG */
|
||||
#if defined(DEBUG) || defined(PMAP_DEBUG) /* XXX */
|
||||
if (rv) {
|
||||
printf("vm_fault(%x, %x, %x, 0) -> %x\n",
|
||||
map, va, ftype, rv);
|
||||
|
|
Loading…
Reference in New Issue