Skip to content

Commit 723d05f

Browse files
author
Ian Seyler
committed
Store BootMode to infomap
1 parent 6ebc0cc commit 723d05f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ The Pure64 information table is located at `0x0000000000005000` and ends at `0x0
212212
<tr><td>0x5094 - 0x50DF</td><td>&nbsp;</td><td>&nbsp;</td><td>For future use</td></tr>
213213
<tr><td>0x50E0</td><td>8-bit</td><td>FLAG_1GBPAGE</td><td>1 if 1GB Pages are supported</td></tr>
214214
<tr><td>0x50E1</td><td>8-bit</td><td>FLAG_X2APIC</td><td>1 if X2APIC is supported</td></tr>
215-
<tr><td>0x50E2 - 0x50FF</td><td>&nbsp;</td><td>&nbsp;</td><td>For future use</td></tr>
215+
<tr><td>0x50E2</td><td>8-bit</td><td>FLAG_BOOTMODE</td><td>'B' if BIOS, 'U' for UEFI</td></tr>
216+
<tr><td>0x50E3 - 0x50FF</td><td>&nbsp;</td><td>&nbsp;</td><td>For future use</td></tr>
216217
<tr><td>0x5100 - 0x51FF</td><td>8-bit</td><td>APIC_ID</td><td>APIC ID's for valid CPU cores (based on CORES_ACTIVE)</td></tr>
217218
<tr><td>0x5200 - 0x53FF</td><td>&nbsp;</td><td>&nbsp;</td><td>For future use</td></tr>
218219
<tr><td>0x5400 - 0x55FF</td><td>16 byte entries</td><td>PCIE</td><td>PCIe bus data</td></tr>

src/pure64.asm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,8 @@ no_address_size:
876876
stosb
877877
mov al, [p_x2APIC]
878878
stosb
879+
mov al, [p_BootMode]
880+
stosb
879881

880882
%ifndef NOVIDEO
881883
; Visual Debug (7/8)

0 commit comments

Comments
 (0)