Moved from /cvsroot/syssrc/sys/arch/pica/pica/locore_machdep.S,v

This commit is contained in:
soda 2000-01-23 20:08:52 +00:00
parent 67ac5024bd
commit 8ee7822800
1 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,49 @@
/* $NetBSD: locore_machdep.S,v 1.4 2000/01/23 20:08:53 soda Exp $ */
/*
* ARC-specific mips locore code
*/
#include <mips/asm.h>
/*
* fillw(pat, addr, count)
*/
LEAF(fillw)
1:
addiu a2, a2, -1
sh a0, 0(a1)
bne a2,zero, 1b
addiu a1, a1, 2
jr ra
nop
END(fillw)
/*
* Interrupt counters for vmstat.
* XXX These aren't used yet.
*/
.data
.globl intrcnt
.globl eintrcnt
.globl intrnames
.globl eintrnames
intrnames:
.asciiz "spur"
.asciiz "hil"
.asciiz "lev2"
.asciiz "lev3"
.asciiz "lev4"
.asciiz "lev5"
.asciiz "dma"
.asciiz "clock"
.asciiz "statclock"
.asciiz "nmi"
eintrnames:
.align 2
intrcnt:
.word 0,0,0,0,0,0,0,0,0,0
eintrcnt: