#include <powerpc/spr.h> and SPR_PIR in place of 1023
This commit is contained in:
parent
44f22a6994
commit
a627c75f35
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.S,v 1.40 2001/06/10 11:01:28 tsubai Exp $ */
|
||||
/* $NetBSD: locore.S,v 1.41 2001/06/23 02:07:07 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -48,6 +48,7 @@
|
||||
#include <machine/vmparam.h>
|
||||
#endif
|
||||
|
||||
#include <powerpc/spr.h>
|
||||
/*
|
||||
* Some instructions gas doesn't understand (yet?)
|
||||
*/
|
||||
@ -62,7 +63,7 @@
|
||||
mfsprg r,0
|
||||
#else
|
||||
#define GET_CPUINFO(r) \
|
||||
mfspr r,1023; /* r = cpu_number() */ \
|
||||
mfspr r,SPR_PIR; /* r = cpu_number() */ \
|
||||
mulli r,r,CI_SIZE; \
|
||||
addis r,r,_C_LABEL(cpu_info)@ha; \
|
||||
addi r,r,_C_LABEL(cpu_info)@l;
|
||||
|
Loading…
Reference in New Issue
Block a user