Skip to content

Commit 5a89920

Browse files
committed
[FREELDR] Change real mode base address (reactos#7530)
Now that's our FRLDR16 base address is zero all the **INTERNAL** variables and functions have to use offsets instead of absolute addresses. Here's the example: ``` // CS = HEX(7C0) // MyLabel = HEX(100) lea eax, dword ptr cs:[MyLabel] // EAX = ((CS << 4) + offset MyLabel) = 7D00 ```
1 parent c1b8c4f commit 5a89920

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boot/freeldr/freeldr/pcat.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ if(ARCH STREQUAL "i386")
1313
CreateBootSectorTarget(frldr16
1414
${CMAKE_CURRENT_SOURCE_DIR}/arch/realmode/i386.S
1515
${CMAKE_CURRENT_BINARY_DIR}/frldr16.bin
16-
F800)
16+
0000)
1717
elseif(ARCH STREQUAL "amd64")
1818
CreateBootSectorTarget(frldr16
1919
${CMAKE_CURRENT_SOURCE_DIR}/arch/realmode/amd64.S
2020
${CMAKE_CURRENT_BINARY_DIR}/frldr16.bin
21-
F800)
21+
0000)
2222
endif()
2323

2424

0 commit comments

Comments
 (0)