Change the way the asm GET_CURTHREAD_PTR() macro is defined so that code
using it doesn't have to have an "AST_LOCALS" macro somewhere in the file.
This commit is contained in:
parent
aa6dd67866
commit
ab22d4f391
sys/arm
@ -56,8 +56,6 @@ __FBSDID("$FreeBSD$");
|
||||
.text
|
||||
.align 0
|
||||
|
||||
AST_LOCALS
|
||||
|
||||
/*
|
||||
* reset_entry:
|
||||
*
|
||||
|
@ -501,6 +501,5 @@ ENTRY(fork_trampoline)
|
||||
|
||||
movs pc, lr /* Exit */
|
||||
|
||||
AST_LOCALS
|
||||
END(fork_trampoline)
|
||||
|
||||
|
@ -243,13 +243,10 @@ name:
|
||||
#define GET_CURTHREAD_PTR(tmp) \
|
||||
mrc p15, 0, tmp, c13, c0, 4
|
||||
#else
|
||||
#define AST_LOCALS ;\
|
||||
.Lcurthread: ;\
|
||||
.word _C_LABEL(__pcpu) + PC_CURTHREAD
|
||||
|
||||
#define GET_CURTHREAD_PTR(tmp) \
|
||||
ldr tmp, .Lcurthread; \
|
||||
ldr tmp, [tmp]
|
||||
#define AST_LOCALS
|
||||
#define GET_CURTHREAD_PTR(tmp) \
|
||||
ldr tmp, =_C_LABEL(__pcpu);\
|
||||
ldr tmp, [tmp, #PC_CURTHREAD]
|
||||
#endif
|
||||
|
||||
#define DO_AST \
|
||||
|
Loading…
x
Reference in New Issue
Block a user