am b95ce9b3: am 838c5c25: am a23ee2cf: Merge "Hide _exit_with_stack_teardown."
* commit 'b95ce9b3d7b94878cb1a42e19cf059ad4d1455e8': Hide _exit_with_stack_teardown.
This commit is contained in:
commit
f4ad3d6dd7
@ -29,7 +29,7 @@
|
|||||||
#include <private/bionic_asm.h>
|
#include <private/bionic_asm.h>
|
||||||
|
|
||||||
// void _exit_with_stack_teardown(void* stackBase, size_t stackSize)
|
// void _exit_with_stack_teardown(void* stackBase, size_t stackSize)
|
||||||
ENTRY(_exit_with_stack_teardown)
|
ENTRY_PRIVATE(_exit_with_stack_teardown)
|
||||||
ldr r7, =__NR_munmap
|
ldr r7, =__NR_munmap
|
||||||
swi #0
|
swi #0
|
||||||
// If munmap failed, we ignore the failure and exit anyway.
|
// If munmap failed, we ignore the failure and exit anyway.
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include <private/bionic_asm.h>
|
#include <private/bionic_asm.h>
|
||||||
|
|
||||||
// void _exit_with_stack_teardown(void* stackBase, size_t stackSize)
|
// void _exit_with_stack_teardown(void* stackBase, size_t stackSize)
|
||||||
ENTRY(_exit_with_stack_teardown)
|
ENTRY_PRIVATE(_exit_with_stack_teardown)
|
||||||
mov w8, __NR_munmap
|
mov w8, __NR_munmap
|
||||||
svc #0
|
svc #0
|
||||||
// If munmap failed, we ignore the failure and exit anyway.
|
// If munmap failed, we ignore the failure and exit anyway.
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include <private/bionic_asm.h>
|
#include <private/bionic_asm.h>
|
||||||
|
|
||||||
// void _exit_with_stack_teardown(void* stackBase, size_t stackSize)
|
// void _exit_with_stack_teardown(void* stackBase, size_t stackSize)
|
||||||
ENTRY(_exit_with_stack_teardown)
|
ENTRY_PRIVATE(_exit_with_stack_teardown)
|
||||||
li v0, __NR_munmap
|
li v0, __NR_munmap
|
||||||
syscall
|
syscall
|
||||||
// If munmap failed, we ignore the failure and exit anyway.
|
// If munmap failed, we ignore the failure and exit anyway.
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include <private/bionic_asm.h>
|
#include <private/bionic_asm.h>
|
||||||
|
|
||||||
// void _exit_with_stack_teardown(void* stackBase, size_t stackSize)
|
// void _exit_with_stack_teardown(void* stackBase, size_t stackSize)
|
||||||
ENTRY(_exit_with_stack_teardown)
|
ENTRY_PRIVATE(_exit_with_stack_teardown)
|
||||||
li v0, __NR_munmap
|
li v0, __NR_munmap
|
||||||
syscall
|
syscall
|
||||||
// If munmap failed, we ignore the failure and exit anyway.
|
// If munmap failed, we ignore the failure and exit anyway.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include <private/bionic_asm.h>
|
#include <private/bionic_asm.h>
|
||||||
|
|
||||||
// void _exit_with_stack_teardown(void* stackBase, size_t stackSize)
|
// void _exit_with_stack_teardown(void* stackBase, size_t stackSize)
|
||||||
ENTRY(_exit_with_stack_teardown)
|
ENTRY_PRIVATE(_exit_with_stack_teardown)
|
||||||
// We can trash registers because this function never returns.
|
// We can trash registers because this function never returns.
|
||||||
mov 4(%esp), %ebx // stackBase
|
mov 4(%esp), %ebx // stackBase
|
||||||
mov 8(%esp), %ecx // stackSize
|
mov 8(%esp), %ecx // stackSize
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include <private/bionic_asm.h>
|
#include <private/bionic_asm.h>
|
||||||
|
|
||||||
// void _exit_with_stack_teardown(void* stackBase, size_t stackSize)
|
// void _exit_with_stack_teardown(void* stackBase, size_t stackSize)
|
||||||
ENTRY(_exit_with_stack_teardown)
|
ENTRY_PRIVATE(_exit_with_stack_teardown)
|
||||||
mov $__NR_munmap, %eax
|
mov $__NR_munmap, %eax
|
||||||
syscall
|
syscall
|
||||||
// If munmap failed, we ignore the failure and exit anyway.
|
// If munmap failed, we ignore the failure and exit anyway.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user