A couple of minor functions which return pointers need to do so in %a0 now.

Spotted by Chuck Silvers.
This commit is contained in:
scw 2000-12-22 20:57:21 +00:00
parent 0d4862bed1
commit d11562c429
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.74 2000/12/10 20:00:21 scw Exp $ */
/* $NetBSD: locore.s,v 1.75 2000/12/22 20:57:21 scw Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -1571,14 +1571,17 @@ ENTRY(ecacheoff)
ENTRY_NOPROFILE(getsp)
movl %sp,%d0 | get current SP
addql #4,%d0 | compensate for return address
movl %d0,%a0
rts
ENTRY_NOPROFILE(getsfc)
movc %sfc,%d0
movl %d0,%a0
rts
ENTRY_NOPROFILE(getdfc)
movc %dfc,%d0
movl %d0,%a0
rts
/*