diff --git a/DuetPkg/BootSector/bs16.S b/DuetPkg/BootSector/bs16.S index 133a9c2570..440732ee72 100644 --- a/DuetPkg/BootSector/bs16.S +++ b/DuetPkg/BootSector/bs16.S @@ -18,7 +18,7 @@ #.MODEL small .stack: .486p: - .code: + .code16: .equ FAT_DIRECTORY_ENTRY_SIZE, 0x020 .equ FAT_DIRECTORY_ENTRY_SHIFT, 5 diff --git a/DuetPkg/BootSector/bs32.S b/DuetPkg/BootSector/bs32.S index f2e3b91454..72fa21011b 100644 --- a/DuetPkg/BootSector/bs32.S +++ b/DuetPkg/BootSector/bs32.S @@ -18,7 +18,7 @@ #.MODEL small #.stack: #.486p: - #.code: + .code16: .section .text .equ FAT_DIRECTORY_ENTRY_SIZE, 0x0020 diff --git a/DuetPkg/BootSector/efi32.S b/DuetPkg/BootSector/efi32.S index 421271c516..7f9e77dea7 100644 --- a/DuetPkg/BootSector/efi32.S +++ b/DuetPkg/BootSector/efi32.S @@ -22,7 +22,7 @@ .486: #.MODEL flat .stack: - .code: + .code16: .org 0x21000 .equ DEFAULT_HANDLER_SIZE, INT1 - INT0