diff --git a/sys/arch/arc/arc/locore_machdep.S b/sys/arch/arc/arc/locore_machdep.S new file mode 100644 index 000000000000..98cb22e7d2b0 --- /dev/null +++ b/sys/arch/arc/arc/locore_machdep.S @@ -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 + +/* + * 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: