Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7c879431
Commit
7c879431
authored
Sep 29, 2023
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecrt0: Initial ARM64EC support.
parent
440771ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
0 deletions
+128
-0
Makefile.in
dlls/winecrt0/Makefile.in
+1
-0
arm64ec.c
dlls/winecrt0/arm64ec.c
+127
-0
No files found.
dlls/winecrt0/Makefile.in
View file @
7c879431
STATICLIB
=
libwinecrt0.a
SOURCES
=
\
arm64ec.c
\
crt_dllmain.c
\
crt_fltused.c
\
debug.c
\
...
...
dlls/winecrt0/arm64ec.c
0 → 100644
View file @
7c879431
/*
* Arm64EC support
*
* Copyright 2023 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifdef __arm64ec__
#include "windef.h"
#include "winnt.h"
#include "wine/asm.h"
void
*
__os_arm64x_check_call
=
0
;
void
*
__os_arm64x_check_icall_cfg
=
0
;
void
*
__os_arm64x_dispatch_call_no_redirect
=
0
;
void
*
__os_arm64x_dispatch_fptr
=
0
;
void
*
__os_arm64x_dispatch_ret
=
0
;
void
*
__os_arm64x_get_x64_information
=
0
;
void
*
__os_arm64x_set_x64_information
=
0
;
void
*
__os_arm64x_helper0
=
0
;
void
*
__os_arm64x_helper1
=
0
;
void
*
__os_arm64x_helper2
=
0
;
void
*
__os_arm64x_helper3
=
0
;
void
*
__os_arm64x_helper4
=
0
;
void
*
__os_arm64x_helper5
=
0
;
void
*
__os_arm64x_helper6
=
0
;
void
*
__os_arm64x_helper7
=
0
;
void
*
__os_arm64x_helper8
=
0
;
void
*
__guard_check_icall_fptr
=
0
;
void
*
__guard_dispatch_icall_fptr
=
0
;
asm
(
".section .data,
\"
drw
\"\n
"
".balign 8
\n
"
".globl __os_arm64x_dispatch_icall
\n
"
"__os_arm64x_dispatch_icall:
\n
"
".globl __os_arm64x_check_icall
\n
"
"__os_arm64x_check_icall:
\n
"
".xword 0
\n
"
);
__ASM_GLOBAL_FUNC
(
__icall_helper_arm64ec
,
"stp fp, lr, [sp, #-0x10]!
\n\t
"
__ASM_SEH
(
".seh_save_fplr_x 16
\n\t
"
)
"mov fp, sp
\n\t
"
__ASM_SEH
(
".seh_set_fp
\n\t
"
)
__ASM_SEH
(
".seh_endprologue
\n\t
"
)
"adrp x16, __os_arm64x_dispatch_icall
\n\t
"
"ldr x16, [x16, #:lo12:__os_arm64x_dispatch_icall]
\n\t
"
"blr x16
\n\t
"
__ASM_SEH
(
".seh_startepilogue
\n\t
"
)
"ldp fp, lr, [sp], #0x10
\n\t
"
__ASM_SEH
(
".seh_save_fplr_x 0x10
\n\t
"
)
__ASM_SEH
(
".seh_endepilogue
\n\t
"
)
"br x11"
)
asm
(
"
\t
.section .rdata,
\"
dr
\"\n
"
"
\t
.globl __chpe_metadata
\n
"
"
\t
.balign 4
\n
"
"__chpe_metadata:
\n
"
"
\t
.word 1
\n
"
"
\t
.rva __hybrid_code_map
\n
"
"
\t
.word __hybrid_code_map_count
\n
"
"
\t
.rva __x64_code_ranges_to_entry_points
\n
"
"
\t
.rva __arm64x_redirection_metadata
\n
"
"
\t
.rva __os_arm64x_dispatch_call_no_redirect
\n
"
"
\t
.rva __os_arm64x_dispatch_ret
\n
"
"
\t
.rva __os_arm64x_check_call
\n
"
"
\t
.rva __os_arm64x_check_icall
\n
"
"
\t
.rva __os_arm64x_check_icall_cfg
\n
"
"
\t
.rva __arm64x_native_entrypoint
\n
"
"
\t
.rva __hybrid_auxiliary_iat
\n
"
"
\t
.word __x64_code_ranges_to_entry_points_count
\n
"
"
\t
.word __arm64x_redirection_metadata_count
\n
"
"
\t
.rva __os_arm64x_get_x64_information
\n
"
"
\t
.rva __os_arm64x_set_x64_information
\n
"
"
\t
.rva __arm64x_extra_rfe_table
\n
"
"
\t
.word __arm64x_extra_rfe_table_size
\n
"
"
\t
.rva __os_arm64x_dispatch_fptr
\n
"
"
\t
.rva __hybrid_auxiliary_iat_copy
\n
"
"
\t
.rva __os_arm64x_helper0
\n
"
"
\t
.rva __os_arm64x_helper1
\n
"
"
\t
.rva __os_arm64x_helper2
\n
"
"
\t
.rva __os_arm64x_helper3
\n
"
"
\t
.rva __os_arm64x_helper4
\n
"
"
\t
.rva __os_arm64x_helper5
\n
"
"
\t
.rva __os_arm64x_helper6
\n
"
"
\t
.rva __os_arm64x_helper7
\n
"
"
\t
.rva __os_arm64x_helper8
\n
"
);
asm
(
"
\t
.section .rdata,
\"
dr
\"\n
"
"
\t
.globl _load_config_used
\n
"
"
\t
.balign 8
\n
"
"_load_config_used:
\n
"
"
\t
.word 0x140
\n
"
"
\t
.fill 0x54, 1, 0
\n
"
"
\t
.xword 0
\n
"
/* FIXME: __security_cookie */
"
\t
.fill 0x10, 1, 0
\n
"
"
\t
.xword __guard_check_icall_fptr
\n
"
"
\t
.xword __guard_dispatch_icall_fptr
\n
"
"
\t
.xword __guard_fids_table
\n
"
"
\t
.xword __guard_fids_count
\n
"
"
\t
.xword __guard_flags
\n
"
"
\t
.xword 0
\n
"
"
\t
.xword __guard_iat_table
\n
"
"
\t
.xword __guard_iat_count
\n
"
"
\t
.xword __guard_longjmp_table
\n
"
"
\t
.xword __guard_longjmp_count
\n
"
"
\t
.xword 0
\n
"
"
\t
.xword __chpe_metadata
\n
"
"
\t
.fill 0x78, 1, 0
\n
"
);
#endif
/* __arm64ec__ */
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