Skip to content

Commit

Permalink
fix init global
Browse files Browse the repository at this point in the history
  • Loading branch information
evilbinary committed Nov 5, 2023
1 parent 2b6981a commit 103218b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot/arm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ static void load_elf(Elf32_Ehdr* elf_header) {
for (int i = 0; i < elf_header->e_shnum; i++) {
if (SHT_NOBITS == shdr[i].sh_type) {
char* vaddr = shdr[i].sh_addr;
// memset(vaddr, 0, shdr[i].sh_size);
memset(vaddr, 0, shdr[i].sh_size);

// int num = boot_data.segments_number++;
// boot_data.segments[num].start = vaddr;
Expand Down

0 comments on commit 103218b

Please sign in to comment.