Use lis@h/ori@l instead of lis@ha/addi@l since we may use r0 and addi
is one of those funny instructions that treats r0 == 0 when used as the first arg. Fixes problems on ibm4xx. Ok'd by matt@.
This commit is contained in:
parent
70e6d93136
commit
dc5fd1a390
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: asm.h,v 1.16 2005/01/19 22:22:56 matt Exp $ */
|
||||
/* $NetBSD: asm.h,v 1.17 2005/01/23 00:23:57 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
|
@ -117,8 +117,8 @@
|
|||
stptr er,CI_INTSTK(tmp1); \
|
||||
stptr er,CI_IDLE_PCB(tmp1); \
|
||||
addi er,er,USPACE; /* space for idle_u */ \
|
||||
lis tmp2,_C_LABEL(emptyidlespin)@ha; \
|
||||
addi tmp2,tmp2,_C_LABEL(emptyidlespin)@l; \
|
||||
lis tmp2,_C_LABEL(emptyidlespin)@h; \
|
||||
ori tmp2,tmp2,_C_LABEL(emptyidlespin)@l; \
|
||||
stptr tmp2,CI_IDLESPIN(tmp1); \
|
||||
li tmp2,-1; \
|
||||
stint tmp2,CI_INTRDEPTH(tmp1); \
|
||||
|
|
Loading…
Reference in New Issue