Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c08e5560
Commit
c08e5560
authored
Nov 15, 2017
by
André Hentschel
Committed by
Alexandre Julliard
Nov 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loader: Setup the TLS register on ARM64.
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ebcac6d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
preloader.c
loader/preloader.c
+4
-0
No files found.
loader/preloader.c
View file @
c08e5560
...
...
@@ -457,6 +457,8 @@ SYSCALL_NOERR( wld_getegid, 108 /* SYS_getegid */ );
#elif defined(__aarch64__)
void
*
thread_data
[
256
];
/*
* The _start function is the entry and exit point of this program
*
...
...
@@ -469,6 +471,8 @@ __ASM_GLOBAL_FUNC(_start,
"mov x0, SP
\n\t
"
"sub SP, SP, #144
\n\t
"
/* allocate some space for extra aux values */
"str x0, [SP]
\n\t
"
/* orig stack pointer */
"ldr x0, =thread_data
\n\t
"
"msr tpidr_el0, x0
\n\t
"
"mov x0, SP
\n\t
"
/* ptr to orig stack pointer */
"bl wld_start
\n\t
"
"ldr x1, [SP]
\n\t
"
/* new stack pointer */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment