Difference between revisions of "Unit PlatformAARCH64"
(14 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
---- | ---- | ||
− | '''Ultibo Platform | + | '''Ultibo Platform Interface unit for AARCH64 (ARM64)''' |
− | + | ||
− | + | ||
=== Constants === | === Constants === | ||
Line 14: | Line 12: | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
− | <div style="font-size: 14px; padding-left: 12px;">'''ARM boot tag | + | <div style="font-size: 14px; padding-left: 12px;">'''ARM boot tag''' <code> ATAG_* </code></div> |
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
Line 33: | Line 31: | ||
| | | | ||
|- | |- | ||
− | | <code> | + | | <code>ATAG_INITRD = $54410005;</code> |
+ | | Deprecated | ||
+ | |- | ||
+ | | <code>ATAG_INITRD2 = $54420005;</code> | ||
| | | | ||
|- | |- | ||
Line 57: | Line 58: | ||
<br /> | <br /> | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
− | <div style="font-size: 14px; padding-left: 12px;">'''ARM machine type | + | <div style="font-size: 14px; padding-left: 12px;">'''Device tree blob''' <code> DTB_* </code></div> |
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>DTB_SIGNATURE = $d00dfeed;</code> | ||
+ | | style="width: 50%;"|See: https://github.com/devicetree-org/devicetree-specification/releases/download/v0.3/devicetree-specification-v0.3.pdf | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''ARM machine type''' <code> ARM_MACHINE_* </code></div> | ||
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
Line 72: | Line 84: | ||
| <code>ARM_MACHINE_BCM2710 = $00000C42;</code> | | <code>ARM_MACHINE_BCM2710 = $00000C42;</code> | ||
| BCM2710 uses the same Machine Type as BCM2708 | | BCM2710 uses the same Machine Type as BCM2708 | ||
+ | |- | ||
+ | | <code>ARM_MACHINE_BCM2711 = $00000C42;</code> | ||
+ | | BCM2711 uses the same Machine Type as BCM2708 | ||
|- | |- | ||
|} | |} | ||
Line 80: | Line 95: | ||
---- | ---- | ||
− | '' | + | |
+ | '''ARM boot tag header''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PARMTagHeader = ^TARMTagHeader;</code> | ||
+ | |||
+ | <code>TARMTagHeader = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: ARM Boot Tag Structure Definitions | ||
+ | |- | ||
+ | | <code>Size:LongWord;</code> | ||
+ | | Size of tag, in words (32bit), including the header | ||
+ | |- | ||
+ | | <code>Tag:LongWord;</code> | ||
+ | | One of the ATAG_* values from above | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''ARM tag core''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PARMTagCore = ^TARMTagCore;</code> | ||
+ | |||
+ | <code>TARMTagCore = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Core parameters (ATAG_CORE) | ||
+ | |- | ||
+ | | <code>Flags:LongWord;</code> | ||
+ | | Bit 0 = read-only | ||
+ | |- | ||
+ | | <code>PageSize:LongWord;</code> | ||
+ | | Systems page size (usually 4k) | ||
+ | |- | ||
+ | | <code>RootDev:LongWord;</code> | ||
+ | | Root device number | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''ARM tag memory''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PARMTagMemory = ^TARMTagMemory;</code> | ||
+ | |||
+ | <code>TARMTagMemory = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Description of memory region (ATAG_MEM) | ||
+ | |- | ||
+ | | <code>Size:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Start:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''ARM tag video text''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PARMTagVideoText = ^TARMTagVideoText;</code> | ||
+ | |||
+ | <code>TARMTagVideoText = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Description of VGA text type displays (ATAG_VIDEOTEXT) | ||
+ | |- | ||
+ | | <code>X:Byte;</code> | ||
+ | | Width of display | ||
+ | |- | ||
+ | | <code>Y:Byte;</code> | ||
+ | | Height of display | ||
+ | |- | ||
+ | | <code>Video_page:Word;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Video_mode:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Video_cols:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Video_ega_bx:Word;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Video_lines:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Video_isvga:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Video_points:Word;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''ARM tag ramdisk''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PARMTagRamdisk = ^TARMTagRamdisk;</code> | ||
+ | |||
+ | <code>TARMTagRamdisk = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Description of how the ramdisk will be used by the kernel (ATAG_RAMDISK) | ||
+ | |- | ||
+ | | <code>Flags:LongWord;</code> | ||
+ | | Bit 0 = load, Bit 1 = prompt | ||
+ | |- | ||
+ | | <code>Size:LongWord;</code> | ||
+ | | Decompressed ramdisk size in _kilo_ bytes | ||
+ | |- | ||
+ | | <code>Start:LongWord;</code> | ||
+ | | Starting block of floppy-based RAM disk image | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''ARM tag initialize ramdisk''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PARMTagInitRd2 = ^TARMTagInitRd2;</code> | ||
+ | |||
+ | <code>TARMTagInitRd2 = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Description of the physical location of the compressed ramdisk image (ATAG_INITRD2) | ||
+ | |- | ||
+ | | <code>Start:LongWord;</code> | ||
+ | | Physical start address | ||
+ | |- | ||
+ | | <code>Size:LongWord;</code> | ||
+ | | Size of compressed ramdisk image in bytes | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''ARM tag serial''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PARMTagSerial = ^TARMTagSerial;</code> | ||
+ | |||
+ | <code>TARMTagSerial = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Board serial number (ATAG_SERIAL) | ||
+ | |- | ||
+ | | <code>Low:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>High:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''ARM tag revision''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PARMTagRevision = ^TARMTagRevision;</code> | ||
+ | |||
+ | <code>TARMTagRevision = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Board revision (ATAG_REVISION) | ||
+ | |- | ||
+ | | <code>Revision:LongWord;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''ARM tag video framebuffer''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PARMTagVideoFB = ^TARMTagVideoFB;</code> | ||
+ | |||
+ | <code>TARMTagVideoFB = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Description of the parameters for a linear framebuffer type display (ATAG_VIDEOLFB) | ||
+ | |- | ||
+ | | <code>Lfb_width:Word;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>Lfb_height:Word;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Lfb_depth:Word;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Lfb_linelength:Word;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Lfb_base:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Lfb_size:LongWord;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Red_size:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Red_pos:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Green_size:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Green_pos:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Blue_size:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Blue_pos:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Rsvd_size:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Rsvd_pos:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''ARM tag command''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PARMTagCommand = ^TARMTagCommand;</code> | ||
+ | |||
+ | <code>TARMTagCommand = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Commandline for the kernel (ATAG_CMDLINE) | ||
+ | |- | ||
+ | | <code>Cmdline:array[0..0] of AnsiChar;</code> | ||
+ | | This is the minimum size | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''ARM boot tag''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PARMTag = ^TARMTag;</code> | ||
+ | |||
+ | <code>TARMTag = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|Note: Format of ARM Boot Tag | ||
+ | |- | ||
+ | | <code>Header:TARMTagHeader;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>case Integer of</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>0:(Core:TARMTagCore);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>1:(Memory:TARMTagMemory);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>2:(VideoText:TARMTagVideoText);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>3:(Ramdisk:TARMTagRamdisk);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>4:(InitRd2:TARMTagInitRd2);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>5:(Serial:TARMTagSerial);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>6:(Revision:TARMTagRevision);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>7:(VideoFB:TARMTagVideoFB);</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>8:(Command:TARMTagCommand)</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''Device tree blob header''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PDTBHeader = ^TDTBHeader;</code> | ||
+ | |||
+ | <code>TDTBHeader = packed record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Magic:LongWord;</code> | ||
+ | | The value 0xd00dfeed (big-endian) | ||
+ | |- | ||
+ | | <code>TotalSize:LongWord;</code> | ||
+ | | The total size in bytes of the devicetree data structure (big-endian) | ||
+ | |- | ||
+ | | <code>StructureOffset:LongWord;</code> | ||
+ | | The offset in bytes of the structure block from the beginning of the header (big-endian) | ||
+ | |- | ||
+ | | <code>StringsOffset:LongWord;</code> | ||
+ | | The offset in bytes of the strings block from the beginning of the header (big-endian) | ||
+ | |- | ||
+ | | <code>ReservationOffset:LongWord;</code> | ||
+ | | The offset in bytes of the memory reservation block from the beginning of the header (big-endian) | ||
+ | |- | ||
+ | | <code>Version:LongWord;</code> | ||
+ | | The version of the devicetree data structure (big-endian) | ||
+ | |- | ||
+ | | <code>CompatibleVersion:LongWord;</code> | ||
+ | | The lowest version of the devicetree data structure with which the version used is backwards compatible (big-endian) | ||
+ | |- | ||
+ | | <code>BootCPUID:LongWord;</code> | ||
+ | | The physical ID of the system’s boot CPU (big-endian) | ||
+ | |- | ||
+ | | <code>StringsSize:LongWord;</code> | ||
+ | | The length in bytes of the strings block section of the devicetree blob (big-endian) | ||
+ | |- | ||
+ | | <code>StructureSize:LongWord;</code> | ||
+ | | The length in bytes of the structure block section of the devicetree blob (big-endian) | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''AARCH64 wait''' | ||
+ | |||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>TAARCH64Wait = procedure;</code> | ||
+ | | style="width: 40%;"| | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | '''AARCH64 long wait''' | ||
+ | |||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>TAARCH64LongWait = procedure;</code> | ||
+ | | style="width: 40%;"| | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | '''AARCH64 short wait''' | ||
+ | |||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>TAARCH64ShortWait = procedure;</code> | ||
+ | | style="width: 40%;"| | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | '''AARCH64 slow blink''' | ||
+ | |||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>TAARCH64SlowBlink = procedure;</code> | ||
+ | | style="width: 40%;"| | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | '''AARCH64 fast blink''' | ||
+ | |||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>TAARCH64FastBlink = procedure;</code> | ||
+ | | style="width: 40%;"| | ||
+ | |- | ||
+ | |} | ||
+ | <br /> | ||
=== Public variables === | === Public variables === | ||
Line 91: | Line 497: | ||
|- | |- | ||
| <code>AARCH64Initialized:Boolean;</code> | | <code>AARCH64Initialized:Boolean;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 97: | Line 503: | ||
|- | |- | ||
| <code>AARCH64BootMode:LongWord = 0;</code> | | <code>AARCH64BootMode:LongWord = 0;</code> | ||
− | | style="width: | + | | style="width: 40%;"|The ARM Mode that the processor was in at boot time (Set by Startup) |
|- | |- | ||
|} | |} | ||
Line 103: | Line 509: | ||
|- | |- | ||
| <code>AARCH64BootVectors:LongWord = 0;</code> | | <code>AARCH64BootVectors:LongWord = 0;</code> | ||
− | | style="width: | + | | style="width: 40%;"|The Vector Base Address that was current at boot time (Set by Startup) |
+ | |- | ||
+ | |} | ||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>AARCH64TagsAddress:PtrUInt = ARMTAGS_INITIAL</code> | ||
+ | | style="width: 40%;"|Pointer to the ARM TAGS provided by the bootloader at startup (Set by Startup) | ||
+ | |- | ||
+ | |} | ||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>AARCH64MachineType:LongWord = 0;</code> | ||
+ | | style="width: 40%;"|ARM Machine Type provided by the bootloader at startup (Set by Startup) | ||
|- | |- | ||
|} | |} | ||
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
− | | <code> | + | | <code>AARCH64SecureBoot:LongWord = 1;</code> |
− | | style="width: | + | | style="width: 40%;"|If 1 then startup will attempt to switch back to secure world during boot process (If supported by the AARCH64 boot stub) |
|- | |- | ||
|} | |} | ||
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
− | | <code> | + | | <code>AARCH64EmulatorMode:LongWord = 0;</code> |
− | | style="width: | + | | style="width: 40%;"|If 1 then startup detected that the machine is running in an emulator (If applicable) |
+ | Note: These variables must be initialized to remain in .data or else they are rewritten to zero with .bss | ||
|- | |- | ||
|} | |} | ||
− | '''ARM tags | + | '''ARM tags''' |
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
| <code>ARMTagsCount:LongWord;</code> | | <code>ARMTagsCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM Tags found during parse |
|- | |- | ||
|} | |} | ||
− | '''Tag none | + | '''Tag none''' |
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
| <code>TagNoneCount:LongWord;</code> | | <code>TagNoneCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM NONE Tags found during parse |
|- | |- | ||
|} | |} | ||
− | '''Tag core | + | '''Tag core''' |
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
| <code>TagCoreCount:LongWord;</code> | | <code>TagCoreCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM CORE Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 148: | Line 567: | ||
|- | |- | ||
| <code>TagCoreFlags:LongWord;</code> | | <code>TagCoreFlags:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 154: | Line 573: | ||
|- | |- | ||
| <code>TagCorePageSize:LongWord;</code> | | <code>TagCorePageSize:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 160: | Line 579: | ||
|- | |- | ||
| <code>TagCoreRootDevice:LongWord;</code> | | <code>TagCoreRootDevice:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
− | '''Tag memory | + | '''Tag memory''' |
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
| <code>TagMemoryCount:LongWord;</code> | | <code>TagMemoryCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM MEM Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 175: | Line 594: | ||
|- | |- | ||
| <code>TagMemorySize:LongWord;</code> | | <code>TagMemorySize:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Size of the last block reported by ARM Tags |
|- | |- | ||
|} | |} | ||
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
− | | <code>TagMemoryStart: | + | | <code>TagMemoryStart:PtrUInt;</code> |
− | | style="width: | + | | style="width: 40%;"|Start of the last block reported by ARM Tags |
|- | |- | ||
|} | |} | ||
Line 187: | Line 606: | ||
|- | |- | ||
| <code>TagMemoryLength:LongWord;</code> | | <code>TagMemoryLength:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Adjusted Size of the last block reported by ARM Tags |
|- | |- | ||
|} | |} | ||
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
− | | <code>TagMemoryAddress: | + | | <code>TagMemoryAddress:PtrUInt;</code> |
− | | style="width: | + | | style="width: 40%;"|Adjusted Address of the last block reported by ARM Tags |
|- | |- | ||
|} | |} | ||
− | '''Tag video text | + | '''Tag video text''' |
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
| <code>TagVideoTextCount:LongWord;</code> | | <code>TagVideoTextCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM VIDEOTEXT Tags found during parse |
|- | |- | ||
|} | |} | ||
− | '''Tag ramdisk | + | '''Tag ramdisk''' |
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
| <code>TagRamdiskCount:LongWord;</code> | | <code>TagRamdiskCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM RAMDISK Tags found during parse |
+ | |- | ||
+ | |} | ||
+ | |||
+ | '''Tag initialize RD''' | ||
+ | |||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>TagInitRdCount:LongWord;</code> | ||
+ | | style="width: 40%;"|Number of ARM INITRD Tags found during parse (Deprecated) | ||
|- | |- | ||
|} | |} | ||
− | '''Tag | + | '''Tag initialize RD2''' |
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
| <code>TagInitRd2Count:LongWord;</code> | | <code>TagInitRd2Count:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM INITRD2 Tags found during parse |
+ | |- | ||
+ | |} | ||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>TagInitRd2Start:LongWord;</code> | ||
+ | | style="width: 40%;"| | ||
+ | |- | ||
+ | |} | ||
+ | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
+ | |- | ||
+ | | <code>TagInitRd2Size:LongWord;</code> | ||
+ | | style="width: 40%;"| | ||
|- | |- | ||
|} | |} | ||
− | '''Tag serial | + | '''Tag serial''' |
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
| <code>TagSerialCount:LongWord;</code> | | <code>TagSerialCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM SERIAL Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 235: | Line 675: | ||
|- | |- | ||
| <code>TagSerialNoLow:LongWord;</code> | | <code>TagSerialNoLow:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 241: | Line 681: | ||
|- | |- | ||
| <code>TagSerialNoHigh:LongWord;</code> | | <code>TagSerialNoHigh:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
− | '''Tag revision | + | '''Tag revision''' |
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
| <code>TagRevisionCount:LongWord;</code> | | <code>TagRevisionCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM REVISION Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 256: | Line 696: | ||
|- | |- | ||
| <code>TagRevisionNo:LongWord;</code> | | <code>TagRevisionNo:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
− | '''Tag video | + | '''Tag video framebuffer''' |
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
| <code>TagVideoFBCount:LongWord;</code> | | <code>TagVideoFBCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM VIDEOLFB Tags found during parse |
|- | |- | ||
|} | |} | ||
− | '''Tag command | + | '''Tag command''' |
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
| <code>TagCmdCount:LongWord;</code> | | <code>TagCmdCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM CMDLINE Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 280: | Line 720: | ||
|- | |- | ||
| <code>TagCommandSize:LongWord;</code> | | <code>TagCommandSize:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Length of the command line in characters (Including null terminator) |
|- | |- | ||
|} | |} | ||
Line 286: | Line 726: | ||
|- | |- | ||
| <code>TagCommandCount:LongInt;</code> | | <code>TagCommandCount:LongInt;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Count of parameters (space delimited) in the command line |
|- | |- | ||
|} | |} | ||
{| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | {| class="wikitable" style="font-size: 14px; text-align: left; width: 100%; height: 50px;" | ||
|- | |- | ||
− | | <code>TagCommandAddress: | + | | <code>TagCommandAddress:PAnsiChar;</code> |
− | | style="width: | + | | style="width: 40%;"|Pointer to the start of the command line |
|- | |- | ||
|} | |} | ||
Line 301: | Line 741: | ||
|- | |- | ||
| <code>AARCH64WaitHandler:TAARCH64Wait;</code> | | <code>AARCH64WaitHandler:TAARCH64Wait;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 307: | Line 747: | ||
|- | |- | ||
| <code>AARCH64LongWaitHandler:TAARCH64LongWait;</code> | | <code>AARCH64LongWaitHandler:TAARCH64LongWait;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 313: | Line 753: | ||
|- | |- | ||
| <code>AARCH64ShortWaitHandler:TAARCH64ShortWait;</code> | | <code>AARCH64ShortWaitHandler:TAARCH64ShortWait;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 322: | Line 762: | ||
|- | |- | ||
| <code>AARCH64SlowBlinkHandler:TAARCH64SlowBlink;</code> | | <code>AARCH64SlowBlinkHandler:TAARCH64SlowBlink;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 328: | Line 768: | ||
|- | |- | ||
| <code>AARCH64FastBlinkHandler:TAARCH64FastBlink;</code> | | <code>AARCH64FastBlinkHandler:TAARCH64FastBlink;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 345: | Line 785: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 360: | Line 800: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! '''Note''' | + | ! Note |
+ | | None documented | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
+ | <pre style="border: 0; padding-bottom:0px;">function ExtractCommandLine(Value:PAnsiChar):Boolean;</pre> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | ! Note | ||
+ | | None documented | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
+ | <pre style="border: 0; padding-bottom:0px;">function ExtractMemoryBlock(Address,Size:LongWord):Boolean;</pre> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | ! Note | ||
+ | | None documented | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
+ | <pre style="border: 0; padding-bottom:0px;">function ExtractInitialRamdisk(Address,Size:LongWord):Boolean;</pre> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | ! Note | ||
| None documented | | None documented | ||
|- | |- | ||
Line 372: | Line 848: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 384: | Line 860: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 396: | Line 872: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 408: | Line 884: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 420: | Line 896: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Return |
− | | True is enabled, False if disabled (Returned in R0) | + | | True is enabled, False if disabled (Returned in R0). |
|- | |- | ||
|} | |} | ||
Line 432: | Line 908: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 444: | Line 920: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 456: | Line 932: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Return |
| IRQ state when called (Returned in R0) | | IRQ state when called (Returned in R0) | ||
|- | |- | ||
Line 468: | Line 944: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! IRQMask |
| IRQ state to restore (Passed in R0) | | IRQ state to restore (Passed in R0) | ||
|- | |- | ||
− | ! | + | ! Return |
| IRQ state when called (Returned in R0) | | IRQ state when called (Returned in R0) | ||
|- | |- | ||
Line 483: | Line 959: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Return |
− | | True is enabled, False if disabled (Returned in R0) | + | | True is enabled, False if disabled (Returned in R0). |
|- | |- | ||
|} | |} | ||
Line 495: | Line 971: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 507: | Line 983: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 519: | Line 995: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Return |
| FIQ state when called (Returned in R0) | | FIQ state when called (Returned in R0) | ||
|- | |- | ||
Line 531: | Line 1,007: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! FIQMask |
| FIQ state to restore (Passed in R0) | | FIQ state to restore (Passed in R0) | ||
|- | |- | ||
− | ! | + | ! Return |
| FIQ state when called (Returned in R0) | | FIQ state when called (Returned in R0) | ||
|- | |- | ||
Line 546: | Line 1,022: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 558: | Line 1,034: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 570: | Line 1,046: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Return |
| IRQ/FIQ state when called (Returned in R0) | | IRQ/FIQ state when called (Returned in R0) | ||
|- | |- | ||
Line 582: | Line 1,058: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! IRQFIQMask |
| IRQ/FIQ state to restore (Passed in R0) | | IRQ/FIQ state to restore (Passed in R0) | ||
|- | |- | ||
− | ! | + | ! Return |
| IRQ/FIQ state when called (Returned in R0) | | IRQ/FIQ state when called (Returned in R0) | ||
|- | |- | ||
Line 597: | Line 1,073: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Return |
− | | True is enabled, False if disabled (Returned in R0) | + | | True is enabled, False if disabled (Returned in R0). |
|- | |- | ||
|} | |} | ||
Line 609: | Line 1,085: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 621: | Line 1,097: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 633: | Line 1,109: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Return |
| Abort state when called (Returned in R0) | | Abort state when called (Returned in R0) | ||
|- | |- | ||
Line 645: | Line 1,121: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! AbortMask |
| Abort state to restore (Passed in R0) | | Abort state to restore (Passed in R0) | ||
|- | |- | ||
− | ! | + | ! Return |
− | | | + | | Abort state when called (Returned in R0) |
|- | |- | ||
|} | |} | ||
Line 663: | Line 1,139: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 675: | Line 1,151: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 687: | Line 1,163: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 699: | Line 1,175: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 711: | Line 1,187: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 723: | Line 1,199: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- |
Latest revision as of 06:18, 6 September 2024
Return to Unit Reference
Description
Ultibo Platform Interface unit for AARCH64 (ARM64)
Constants
ATAG_*
ATAG_NONE = $00000000;
|
|
ATAG_CORE = $54410001;
|
|
ATAG_MEM = $54410002;
|
|
ATAG_VIDEOTEXT = $54410003;
|
|
ATAG_RAMDISK = $54410004;
|
|
ATAG_INITRD = $54410005;
|
Deprecated |
ATAG_INITRD2 = $54420005;
|
|
ATAG_SERIAL = $54410006;
|
|
ATAG_REVISION = $54410007;
|
|
ATAG_VIDEOLFB = $54410008;
|
|
ATAG_CMDLINE = $54410009;
|
|
ARMTAGS_INITIAL = $FFFFFFFF;
|
DTB_*
DTB_SIGNATURE = $d00dfeed;
|
See: https://github.com/devicetree-org/devicetree-specification/releases/download/v0.3/devicetree-specification-v0.3.pdf |
ARM_MACHINE_*
ARM_MACHINE_VERSATILE_PB = $00000183;
|
|
ARM_MACHINE_BCM2708 = $00000C42;
|
|
ARM_MACHINE_BCM2709 = $00000C42;
|
BCM2709 uses the same Machine Type as BCM2708 |
ARM_MACHINE_BCM2710 = $00000C42;
|
BCM2710 uses the same Machine Type as BCM2708 |
ARM_MACHINE_BCM2711 = $00000C42;
|
BCM2711 uses the same Machine Type as BCM2708 |
Type definitions
ARM boot tag header
PARMTagHeader = ^TARMTagHeader;
TARMTagHeader = record
Note: ARM Boot Tag Structure Definitions | |
Size:LongWord;
|
Size of tag, in words (32bit), including the header |
Tag:LongWord;
|
One of the ATAG_* values from above |
ARM tag core
PARMTagCore = ^TARMTagCore;
TARMTagCore = record
Note: Core parameters (ATAG_CORE) | |
Flags:LongWord;
|
Bit 0 = read-only |
PageSize:LongWord;
|
Systems page size (usually 4k) |
RootDev:LongWord;
|
Root device number |
ARM tag memory
PARMTagMemory = ^TARMTagMemory;
TARMTagMemory = record
Note: Description of memory region (ATAG_MEM) | |
Size:LongWord;
|
|
Start:LongWord;
|
ARM tag video text
PARMTagVideoText = ^TARMTagVideoText;
TARMTagVideoText = record
Note: Description of VGA text type displays (ATAG_VIDEOTEXT) | |
X:Byte;
|
Width of display |
Y:Byte;
|
Height of display |
Video_page:Word;
|
|
Video_mode:Byte;
|
|
Video_cols:Byte;
|
|
Video_ega_bx:Word;
|
|
Video_lines:Byte;
|
|
Video_isvga:Byte;
|
|
Video_points:Word;
|
ARM tag ramdisk
PARMTagRamdisk = ^TARMTagRamdisk;
TARMTagRamdisk = record
Note: Description of how the ramdisk will be used by the kernel (ATAG_RAMDISK) | |
Flags:LongWord;
|
Bit 0 = load, Bit 1 = prompt |
Size:LongWord;
|
Decompressed ramdisk size in _kilo_ bytes |
Start:LongWord;
|
Starting block of floppy-based RAM disk image |
ARM tag initialize ramdisk
PARMTagInitRd2 = ^TARMTagInitRd2;
TARMTagInitRd2 = record
Note: Description of the physical location of the compressed ramdisk image (ATAG_INITRD2) | |
Start:LongWord;
|
Physical start address |
Size:LongWord;
|
Size of compressed ramdisk image in bytes |
ARM tag serial
PARMTagSerial = ^TARMTagSerial;
TARMTagSerial = record
Note: Board serial number (ATAG_SERIAL) | |
Low:LongWord;
|
|
High:LongWord;
|
ARM tag revision
PARMTagRevision = ^TARMTagRevision;
TARMTagRevision = record
Note: Board revision (ATAG_REVISION) | |
Revision:LongWord;
|
ARM tag video framebuffer
PARMTagVideoFB = ^TARMTagVideoFB;
TARMTagVideoFB = record
Note: Description of the parameters for a linear framebuffer type display (ATAG_VIDEOLFB) | |
Lfb_width:Word;
|
|
Lfb_height:Word;
|
|
Lfb_depth:Word;
|
|
Lfb_linelength:Word;
|
|
Lfb_base:LongWord;
|
|
Lfb_size:LongWord;
|
|
Red_size:Byte;
|
|
Red_pos:Byte;
|
|
Green_size:Byte;
|
|
Green_pos:Byte;
|
|
Blue_size:Byte;
|
|
Blue_pos:Byte;
|
|
Rsvd_size:Byte;
|
|
Rsvd_pos:Byte;
|
ARM tag command
PARMTagCommand = ^TARMTagCommand;
TARMTagCommand = record
Note: Commandline for the kernel (ATAG_CMDLINE) | |
Cmdline:array[0..0] of AnsiChar;
|
This is the minimum size |
ARM boot tag
PARMTag = ^TARMTag;
TARMTag = record
Note: Format of ARM Boot Tag | |
Header:TARMTagHeader;
|
|
case Integer of
|
|
0:(Core:TARMTagCore);
|
|
1:(Memory:TARMTagMemory);
|
|
2:(VideoText:TARMTagVideoText);
|
|
3:(Ramdisk:TARMTagRamdisk);
|
|
4:(InitRd2:TARMTagInitRd2);
|
|
5:(Serial:TARMTagSerial);
|
|
6:(Revision:TARMTagRevision);
|
|
7:(VideoFB:TARMTagVideoFB);
|
|
8:(Command:TARMTagCommand)
|
Device tree blob header
PDTBHeader = ^TDTBHeader;
TDTBHeader = packed record
Magic:LongWord;
|
The value 0xd00dfeed (big-endian) |
TotalSize:LongWord;
|
The total size in bytes of the devicetree data structure (big-endian) |
StructureOffset:LongWord;
|
The offset in bytes of the structure block from the beginning of the header (big-endian) |
StringsOffset:LongWord;
|
The offset in bytes of the strings block from the beginning of the header (big-endian) |
ReservationOffset:LongWord;
|
The offset in bytes of the memory reservation block from the beginning of the header (big-endian) |
Version:LongWord;
|
The version of the devicetree data structure (big-endian) |
CompatibleVersion:LongWord;
|
The lowest version of the devicetree data structure with which the version used is backwards compatible (big-endian) |
BootCPUID:LongWord;
|
The physical ID of the system’s boot CPU (big-endian) |
StringsSize:LongWord;
|
The length in bytes of the strings block section of the devicetree blob (big-endian) |
StructureSize:LongWord;
|
The length in bytes of the structure block section of the devicetree blob (big-endian) |
AARCH64 wait
TAARCH64Wait = procedure;
|
AARCH64 long wait
TAARCH64LongWait = procedure;
|
AARCH64 short wait
TAARCH64ShortWait = procedure;
|
AARCH64 slow blink
TAARCH64SlowBlink = procedure;
|
AARCH64 fast blink
TAARCH64FastBlink = procedure;
|
Public variables
AARCH64 specific variables
AARCH64Initialized:Boolean;
|
AARCH64BootMode:LongWord = 0;
|
The ARM Mode that the processor was in at boot time (Set by Startup) |
AARCH64BootVectors:LongWord = 0;
|
The Vector Base Address that was current at boot time (Set by Startup) |
AARCH64TagsAddress:PtrUInt = ARMTAGS_INITIAL
|
Pointer to the ARM TAGS provided by the bootloader at startup (Set by Startup) |
AARCH64MachineType:LongWord = 0;
|
ARM Machine Type provided by the bootloader at startup (Set by Startup) |
AARCH64SecureBoot:LongWord = 1;
|
If 1 then startup will attempt to switch back to secure world during boot process (If supported by the AARCH64 boot stub) |
AARCH64EmulatorMode:LongWord = 0;
|
If 1 then startup detected that the machine is running in an emulator (If applicable)
Note: These variables must be initialized to remain in .data or else they are rewritten to zero with .bss |
ARM tags
ARMTagsCount:LongWord;
|
Number of ARM Tags found during parse |
Tag none
TagNoneCount:LongWord;
|
Number of ARM NONE Tags found during parse |
Tag core
TagCoreCount:LongWord;
|
Number of ARM CORE Tags found during parse |
TagCoreFlags:LongWord;
|
TagCorePageSize:LongWord;
|
TagCoreRootDevice:LongWord;
|
Tag memory
TagMemoryCount:LongWord;
|
Number of ARM MEM Tags found during parse |
TagMemorySize:LongWord;
|
Size of the last block reported by ARM Tags |
TagMemoryStart:PtrUInt;
|
Start of the last block reported by ARM Tags |
TagMemoryLength:LongWord;
|
Adjusted Size of the last block reported by ARM Tags |
TagMemoryAddress:PtrUInt;
|
Adjusted Address of the last block reported by ARM Tags |
Tag video text
TagVideoTextCount:LongWord;
|
Number of ARM VIDEOTEXT Tags found during parse |
Tag ramdisk
TagRamdiskCount:LongWord;
|
Number of ARM RAMDISK Tags found during parse |
Tag initialize RD
TagInitRdCount:LongWord;
|
Number of ARM INITRD Tags found during parse (Deprecated) |
Tag initialize RD2
TagInitRd2Count:LongWord;
|
Number of ARM INITRD2 Tags found during parse |
TagInitRd2Start:LongWord;
|
TagInitRd2Size:LongWord;
|
Tag serial
TagSerialCount:LongWord;
|
Number of ARM SERIAL Tags found during parse |
TagSerialNoLow:LongWord;
|
TagSerialNoHigh:LongWord;
|
Tag revision
TagRevisionCount:LongWord;
|
Number of ARM REVISION Tags found during parse |
TagRevisionNo:LongWord;
|
Tag video framebuffer
TagVideoFBCount:LongWord;
|
Number of ARM VIDEOLFB Tags found during parse |
Tag command
TagCmdCount:LongWord;
|
Number of ARM CMDLINE Tags found during parse |
TagCommandSize:LongWord;
|
Length of the command line in characters (Including null terminator) |
TagCommandCount:LongInt;
|
Count of parameters (space delimited) in the command line |
TagCommandAddress:PAnsiChar;
|
Pointer to the start of the command line |
Wait handlers
AARCH64WaitHandler:TAARCH64Wait;
|
AARCH64LongWaitHandler:TAARCH64LongWait;
|
AARCH64ShortWaitHandler:TAARCH64ShortWait;
|
Blink handlers
AARCH64SlowBlinkHandler:TAARCH64SlowBlink;
|
AARCH64FastBlinkHandler:TAARCH64FastBlink;
|
Function declarations
Initialization functions
procedure AARCH64Init;
Note | None documented |
---|
AARCH64 platform functions
procedure AARCH64ParseBootTags;
Note | None documented |
---|
function ExtractCommandLine(Value:PAnsiChar):Boolean;
Note | None documented |
---|
function ExtractMemoryBlock(Address,Size:LongWord):Boolean;
Note | None documented |
---|
function ExtractInitialRamdisk(Address,Size:LongWord):Boolean;
Note | None documented |
---|
procedure AARCH64ParseCommandLine;
Note | None documented |
---|
procedure AARCH64ParseEnvironment;
Note | None documented |
---|
function AARCH64GetSP:PtrUInt; assembler; nostackframe;
Note | None documented |
---|
function AARCH64GetPC:PtrUInt; assembler; nostackframe;
Note | None documented |
---|
function AARCH64GetIRQ:Boolean; assembler; nostackframe;
Return | True is enabled, False if disabled (Returned in R0). |
---|
procedure AARCH64EnableIRQ; assembler; nostackframe;
Note | None documented |
---|
procedure AARCH64DisableIRQ; assembler; nostackframe;
Note | None documented |
---|
function AARCH64SaveIRQ:TIRQMask; assembler; nostackframe;
Return | IRQ state when called (Returned in R0) |
---|
function AARCH64RestoreIRQ(IRQMask:TIRQMask):TIRQMask; assembler; nostackframe;
IRQMask | IRQ state to restore (Passed in R0) |
---|---|
Return | IRQ state when called (Returned in R0) |
function AARCH64GetFIQ:Boolean; assembler; nostackframe;
Return | True is enabled, False if disabled (Returned in R0). |
---|
procedure AARCH64EnableFIQ; assembler; nostackframe;
Note | None documented |
---|
procedure AARCH64DisableFIQ; assembler; nostackframe;
Note | None documented |
---|
function AARCH64SaveFIQ:TFIQMask; assembler; nostackframe;
Return | FIQ state when called (Returned in R0) |
---|
function AARCH64RestoreFIQ(FIQMask:TFIQMask):TFIQMask; assembler; nostackframe;
FIQMask | FIQ state to restore (Passed in R0) |
---|---|
Return | FIQ state when called (Returned in R0) |
procedure AARCH64EnableIRQFIQ; assembler; nostackframe;
Note | None documented |
---|
procedure AARCH64DisableIRQFIQ; assembler; nostackframe;
Note | None documented |
---|
function AARCH64SaveIRQFIQ:TIRQFIQMask; assembler; nostackframe;
Return | IRQ/FIQ state when called (Returned in R0) |
---|
function AARCH64RestoreIRQFIQ(IRQFIQMask:TIRQFIQMask):TIRQFIQMask; assembler; nostackframe;
IRQFIQMask | IRQ/FIQ state to restore (Passed in R0) |
---|---|
Return | IRQ/FIQ state when called (Returned in R0) |
function AARCH64GetAbort:Boolean; assembler; nostackframe;
Return | True is enabled, False if disabled (Returned in R0). |
---|
procedure AARCH64EnableAbort; assembler; nostackframe;
Note | None documented |
---|
procedure AARCH64DisableAbort; assembler; nostackframe;
Note | None documented |
---|
function AARCH64SaveAbort:TAbortMask; assembler; nostackframe;
Return | Abort state when called (Returned in R0) |
---|
function AARCH64RestoreAbort(AbortMask:TAbortMask):TAbortMask; assembler; nostackframe;
AbortMask | Abort state to restore (Passed in R0) |
---|---|
Return | Abort state when called (Returned in R0) |
AARCH64 helper functions
procedure AARCH64Wait; inline;
Note | None documented |
---|
procedure AARCH64LongWait; inline;
Note | None documented |
---|
procedure AARCH64ShortWait; inline;
Note | None documented |
---|
procedure AARCH64SlowBlink; inline;
Note | None documented |
---|
procedure AARCH64FastBlink; inline;
Note | None documented |
---|
function AARCH64ModeToString(AARCH64Mode:LongWord):String;
Note | None documented |
---|
Return to Unit Reference