Skip to content

Commit 94076b7

Browse files
committed
Separate image base address per architecture
1 parent ebc2607 commit 94076b7

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ set(CMAKE_TOOLCHAIN_FILE "sdk/cmake/toolchain.cmake")
4444
project(EXECTOS)
4545

4646
# Load all the CMake SDK
47-
include(sdk/cmake/baseaddress.cmake)
47+
include(sdk/cmake/baseaddress/${ARCH}.cmake)
4848
include(sdk/cmake/emulation.cmake)
4949
include(sdk/cmake/functions.cmake)
5050
include(sdk/cmake/version.cmake)

sdk/cmake/baseaddress/amd64.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Set base addresses for all modules
2+
set(BASEADDRESS_XTOSKRNL 0x0000000140000000)
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# Set base addresses for all modules
2-
set(BASEADDRESS_XTLDR 0x00010000)
32
set(BASEADDRESS_XTOSKRNL 0x00400000)

xtldr/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,5 @@ set_install_target(xtldr efi/boot)
4949

5050
# Set loader entrypoint and subsystem
5151
set_entrypoint(xtldr "BlStartXtLoader")
52-
set_imagebase(xtldr ${BASEADDRESS_XTLDR})
5352
set_linker_map(xtldr TRUE)
5453
set_subsystem(xtldr efi_application)

0 commit comments

Comments
 (0)