move ILP32 sanity check on heap base code under ARM_RDI_MONITOR
This commit is contained in:
parent
b706c6b479
commit
3ec9892f5d
|
@ -101,10 +101,7 @@
|
||||||
exposed here in the HeapInfo Angel call. */
|
exposed here in the HeapInfo Angel call. */
|
||||||
ldr x0, .LC0 /* point at returned values */
|
ldr x0, .LC0 /* point at returned values */
|
||||||
ldr x1, [x0, #8] /* get heap_limit */
|
ldr x1, [x0, #8] /* get heap_limit */
|
||||||
#else
|
|
||||||
/* Set up the stack pointer to a fixed value. */
|
|
||||||
ldr x1, .Lstack
|
|
||||||
#endif
|
|
||||||
#ifdef __ILP32__
|
#ifdef __ILP32__
|
||||||
/* Sanity check on the heap base. */
|
/* Sanity check on the heap base. */
|
||||||
ldr x0, [x0] /* get heap_base */
|
ldr x0, [x0] /* get heap_base */
|
||||||
|
@ -128,6 +125,10 @@
|
||||||
tst x1, #0xffffffff00000000
|
tst x1, #0xffffffff00000000
|
||||||
csinv w1, w1, wzr, eq
|
csinv w1, w1, wzr, eq
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
/* Set up the stack pointer to a fixed value. */
|
||||||
|
ldr x1, .Lstack
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Ensure quad-word stack alignment. */
|
/* Ensure quad-word stack alignment. */
|
||||||
and x0, x1, #~15
|
and x0, x1, #~15
|
||||||
|
|
Loading…
Reference in New Issue