commit c368095cf1ba09b96cc1787f7ed7a4e805dad3d5
parent ecdf07d522ccf550a3763da83a8419dc91f79b62
Author: Dimitris Papastamos <dimitris.papastamos@arm.com>
Date: Thu, 8 Nov 2018 14:33:30 +0000
[crt-posix] Simplify hosted crt
We were setting the SP so that we have better control over the bssmap
access. Simplify the crt to use the kernel provided stack and we will
abstract access to the bssmap in libk.
Change-Id: I5e34f3ff00da2f8fff1c8ebdce284b08b09fc264
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>
Diffstat:
1 file changed, 0 insertions(+), 8 deletions(-)
diff --git a/arch/amd64/crt-posix.s b/arch/amd64/crt-posix.s
@@ -14,14 +14,6 @@ _start:
leaq 16(%rbp,%rax,8),%rcx /* envp = argv + 8*argc + 8 */
movq %rdx,_environ
- movq $stackend,%rsp /* setup fake stack */
-
call main
movl %eax,%edi
jmp exit
-
- .data
- .align 4096
-stack: .space 3072
-stackend:
-bss: .space 4096 - (stackend - stack)