Skip to content

Commit

Permalink
kernel: linux/i686: bss offset
Browse files Browse the repository at this point in the history
  • Loading branch information
rouseabout committed Jan 7, 2025
1 parent 669e4f3 commit 84260cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kernel/linux32.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ bits 32
section .boot.header
align 4

KERNEL_START equ 0xC0000000

extern bss
extern end

Expand All @@ -13,8 +15,8 @@ start:
popf

%ifdef ARCH_i686
mov edi, bss
mov ecx, end
mov edi, bss - KERNEL_START
mov ecx, end - KERNEL_START
sub ecx, edi
xor eax, eax
rep stosb
Expand Down

0 comments on commit 84260cf

Please sign in to comment.