1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-22 22:58:08 +00:00

Fix math error

Fixed math error because X = 0x001000+sizeof(boot loader)
This commit is contained in:
Amreo 2017-02-01 22:02:35 +01:00 committed by GitHub
parent a681276504
commit 2e640db706

View File

@ -234,7 +234,7 @@ X+08000 +------------------------+
So, when the bootloader transfers control to the kernel, it starts at: So, when the bootloader transfers control to the kernel, it starts at:
``` ```
0x1000 + X + sizeof(KernelBootSector) + 1 X + sizeof(KernelBootSector) + 1
``` ```
where `X` is the address of the kernel boot sector being loaded. In my case, `X` is `0x10000`, as we can see in a memory dump: where `X` is the address of the kernel boot sector being loaded. In my case, `X` is `0x10000`, as we can see in a memory dump: