Skip to content

Commit 4868874

Browse files
committed
Properly mark mmap_ent as global
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.
1 parent 77b46ed commit 4868874

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/e820.s

+1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ do_e820:
5151
stc # "function unsupported" error exit
5252
ret
5353

54+
.global mmap_ent
5455
mmap_ent: .word 0

0 commit comments

Comments
 (0)