Skip to content

Commit

Permalink
use .lcomm to declare vars in .bss section
Browse files Browse the repository at this point in the history
  • Loading branch information
axlan committed Jan 19, 2020
1 parent 673f8de commit 63c0bd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions arch/x86/boot0/boot0.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ msg_please_reboot:
.asciz "An error was encountered, please reboot"

.section .bss
boot_drv:
.byte 1
.lcomm boot_drv , 1

.section .data
#ifdef BOOTLOADER_PROTECTED_MODE_ENABLED
Expand Down
3 changes: 1 addition & 2 deletions arch/x86/bootstrap.S
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
.section .bss

.global boot_drive_nb
boot_drive_nb:
.byte 1
.lcomm boot_drive_nb , 1

.section .text

Expand Down

0 comments on commit 63c0bd9

Please sign in to comment.