mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
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
9d9a79e53d
commit
3130601c78
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=262986
@ -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 @@
|
||||
#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…
Reference in New Issue
Block a user