Skip to content

Commit

Permalink
Properly mark mmap_ent as global
Browse files Browse the repository at this point in the history
It currently happens to work fine using cg_llvm as the global_asm!()
ends up in the same cgu as the use of this global. There is no guarantee
that this will always be the case and in fact in case of cg_clif this
happens to not be the case, thus causing a linker error.
  • Loading branch information
bjorn3 committed Nov 24, 2021
1 parent 64e26c9 commit 4057db1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/e820.s
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ do_e820:
stc # "function unsupported" error exit
ret

.global mmap_ent
mmap_ent: .word 0

0 comments on commit 4057db1

Please sign in to comment.