Difference between revisions of "Unit PlatformARM"
Line 14: | Line 14: | ||
<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 mode | + | <div style="font-size: 14px; padding-left: 12px;">'''ARM mode''' <code> ARM_MODE_* </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 65: | Line 65: | ||
<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 interrupt disable | + | <div style="font-size: 14px; padding-left: 12px;">'''ARM interrupt disable''' <code> ARM_I_* </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 85: | Line 85: | ||
<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 thumb and jazelle | + | <div style="font-size: 14px; padding-left: 12px;">'''ARM thumb and jazelle''' <code> ARM_*_BIT </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 105: | Line 105: | ||
<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 abort | + | <div style="font-size: 14px; padding-left: 12px;">'''ARM abort''' <code> ARM_A_* </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 120: | Line 120: | ||
<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 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 163: | Line 163: | ||
<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;">'''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 546: | Line 546: | ||
|- | |- | ||
| <code>ARMInitialized:Boolean;</code> | | <code>ARMInitialized:Boolean;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 552: | Line 552: | ||
|- | |- | ||
| <code>ARMBootMode:LongWord = 0;</code> | | <code>ARMBootMode:LongWord = 0;</code> | ||
− | | style="width: | + | | style="width: 40%;"|The ARM Mode that the processor was in at boot time (Set by Startup). Must be initialized to remain in .data or else rewritten to zero with .bss |
|- | |- | ||
|} | |} | ||
Line 558: | Line 558: | ||
|- | |- | ||
| <code>ARMBootVectors:LongWord = 0;</code> | | <code>ARMBootVectors:LongWord = 0;</code> | ||
− | | style="width: | + | | style="width: 40%;"|The Vector Base Address that was current at boot time (Set by Startup). Must be initialized to remain in .data or else rewritten to zero with .bss |
|- | |- | ||
|} | |} | ||
Line 564: | Line 564: | ||
|- | |- | ||
| <code>ARMTagsAddress:LongWord = ARMTAGS_INITIAL;</code> | | <code>ARMTagsAddress:LongWord = ARMTAGS_INITIAL;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Pointer to the ARM TAGS provided by the bootloader at startup (Set by Startup). Must be initialized to remain in .data or else rewritten to zero with .bss |
|- | |- | ||
|} | |} | ||
Line 570: | Line 570: | ||
|- | |- | ||
| <code>ARMMachineType:LongWord = 0;</code> | | <code>ARMMachineType:LongWord = 0;</code> | ||
− | | style="width: | + | | style="width: 40%;"|ARM Machine Type provided by the bootloader at startup (Set by Startup). Must be initialized to remain in .data or else rewritten to zero with .bss |
|- | |- | ||
|} | |} | ||
Line 579: | Line 579: | ||
|- | |- | ||
| <code>ARMTagsCount:LongWord;</code> | | <code>ARMTagsCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 588: | Line 588: | ||
|- | |- | ||
| <code>TagNoneCount:LongWord;</code> | | <code>TagNoneCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM NONE Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 597: | Line 597: | ||
|- | |- | ||
| <code>TagCoreCount:LongWord;</code> | | <code>TagCoreCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM CORE Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 603: | Line 603: | ||
|- | |- | ||
| <code>TagCoreFlags:LongWord;</code> | | <code>TagCoreFlags:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 609: | Line 609: | ||
|- | |- | ||
| <code>TagCorePageSize:LongWord;</code> | | <code>TagCorePageSize:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 615: | Line 615: | ||
|- | |- | ||
| <code>TagCoreRootDevice:LongWord;</code> | | <code>TagCoreRootDevice:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 624: | Line 624: | ||
|- | |- | ||
| <code>TagMemoryCount:LongWord;</code> | | <code>TagMemoryCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM MEM Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 630: | Line 630: | ||
|- | |- | ||
| <code>TagMemorySize:LongWord;</code> | | <code>TagMemorySize:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Size of the last block reported by ARM Tags |
|- | |- | ||
|} | |} | ||
Line 636: | Line 636: | ||
|- | |- | ||
| <code>TagMemoryStart:LongWord;</code> | | <code>TagMemoryStart:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Start of the last block reported by ARM Tags |
|- | |- | ||
|} | |} | ||
Line 642: | Line 642: | ||
|- | |- | ||
| <code>TagMemoryLength:LongWord;</code> | | <code>TagMemoryLength:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Adjusted Size of the last block reported by ARM Tags |
|- | |- | ||
|} | |} | ||
Line 648: | Line 648: | ||
|- | |- | ||
| <code>TagMemoryAddress:LongWord;</code> | | <code>TagMemoryAddress:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Adjusted Address of the last block reported by ARM Tags |
|- | |- | ||
|} | |} | ||
Line 657: | Line 657: | ||
|- | |- | ||
| <code>TagVideoTextCount:LongWord;</code> | | <code>TagVideoTextCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM VIDEOTEXT Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 666: | Line 666: | ||
|- | |- | ||
| <code>TagRamdiskCount:LongWord;</code> | | <code>TagRamdiskCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM RAMDISK Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 675: | Line 675: | ||
|- | |- | ||
| <code>TagInitRd2Count:LongWord;</code> | | <code>TagInitRd2Count:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM INITRD2 Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 684: | Line 684: | ||
|- | |- | ||
| <code>TagSerialCount:LongWord;</code> | | <code>TagSerialCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM SERIAL Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 690: | Line 690: | ||
|- | |- | ||
| <code>TagSerialNoLow:LongWord;</code> | | <code>TagSerialNoLow:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 696: | Line 696: | ||
|- | |- | ||
| <code>TagSerialNoHigh:LongWord;</code> | | <code>TagSerialNoHigh:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 705: | Line 705: | ||
|- | |- | ||
| <code>TagRevisionCount:LongWord;</code> | | <code>TagRevisionCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM REVISION Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 711: | Line 711: | ||
|- | |- | ||
| <code>TagRevisionNo:LongWord;</code> | | <code>TagRevisionNo:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 720: | Line 720: | ||
|- | |- | ||
| <code>TagVideoFBCount:LongWord;</code> | | <code>TagVideoFBCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM VIDEOLFB Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 729: | Line 729: | ||
|- | |- | ||
| <code>TagCmdCount:LongWord;</code> | | <code>TagCmdCount:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Number of ARM CMDLINE Tags found during parse |
|- | |- | ||
|} | |} | ||
Line 735: | Line 735: | ||
|- | |- | ||
| <code>TagCommandSize:LongWord;</code> | | <code>TagCommandSize:LongWord;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Length of the command line in characters (Including null terminator) |
|- | |- | ||
|} | |} | ||
Line 741: | Line 741: | ||
|- | |- | ||
| <code>TagCommandCount:LongInt;</code> | | <code>TagCommandCount:LongInt;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Count of parameters (space delimited) in the command line |
|- | |- | ||
|} | |} | ||
Line 747: | Line 747: | ||
|- | |- | ||
| <code>TagCommandAddress:PChar;</code> | | <code>TagCommandAddress:PChar;</code> | ||
− | | style="width: | + | | style="width: 40%;"|Pointer to the start of the command line |
|- | |- | ||
|} | |} | ||
Line 756: | Line 756: | ||
|- | |- | ||
| <code>ARMWaitHandler:TARMWait;</code> | | <code>ARMWaitHandler:TARMWait;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 762: | Line 762: | ||
|- | |- | ||
| <code>ARMLongWaitHandler:TARMLongWait;</code> | | <code>ARMLongWaitHandler:TARMLongWait;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 768: | Line 768: | ||
|- | |- | ||
| <code>ARMShortWaitHandler:TARMShortWait;</code> | | <code>ARMShortWaitHandler:TARMShortWait;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 777: | Line 777: | ||
|- | |- | ||
| <code>ARMSlowBlinkHandler:TARMSlowBlink;</code> | | <code>ARMSlowBlinkHandler:TARMSlowBlink;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} | ||
Line 783: | Line 783: | ||
|- | |- | ||
| <code>ARMFastBlinkHandler:TARMFastBlink;</code> | | <code>ARMFastBlinkHandler:TARMFastBlink;</code> | ||
− | | style="width: | + | | style="width: 40%;"| |
|- | |- | ||
|} | |} |
Revision as of 03:11, 27 March 2017
Return to Unit Reference
Description
Ultibo Platform interface unit for ARM
To be documented
Constants
ARM_MODE_*
Bits 4..0 in the ARM program status register | |
See: A2.2 Processor Modes of the ARM Architecture Reference Manual and also A2.5.7 The mode bits | |
See also: B1.3.1 ARM processor modes of the ARM Architecture Reference Manual (ARMv7-A and ARMv7-R edition) | |
ARM_MODE_USR = $10;
|
Normal User Mode |
ARM_MODE_FIQ = $11;
|
FIQ Processing Fast Interrupts Mode |
ARM_MODE_IRQ = $12;
|
IRQ Processing Standard Interrupts Mode |
ARM_MODE_SVC = $13;
|
Supervisor Processing Software Interrupts Mode |
ARM_MODE_MON = $16;
|
Secure Monitor Mode (For Secure / Non Secure Switching) |
ARM_MODE_MON = $16;
|
Secure Monitor Mode (For Secure / Non Secure Switching) |
ARM_MODE_ABT = $17;
|
Abort Processing memory Faults Mode |
ARM_MODE_HYP = $1A;
|
Hypervisor Mode |
ARM_MODE_UND = $1B;
|
Undefined Processing Undefined Instructions Mode |
ARM_MODE_SYS = $1F;
|
System Running Priviledged Operating System Tasks Mode |
ARM_MODE_BITS = $0000001F;
|
Mask of the mode bits in the program status register |
ARM_I_*
Bits 7 and 6 in the ARM program status register | |
See: A2.5.6 "The interrupt disable bits" of the ARM Architecture Reference Manual | |
ARM_I_BIT = $00000080;
|
IRQs disabled when set to 1 |
ARM_F_BIT = $00000040;
|
FIQs disabled when set to 1 |
ARM_*_BIT
Bits 24 and 5 in the ARM program status register | |
See: A2.5.8 "The T and J bits" of the ARM Architecture Reference Manual | |
ARM_T_BIT = $00000020;
|
Thumb mode enabled when set to 1 |
ARM_J_BIT = $01000000;
|
Jazelle mode enabled when set to 1 |
ARM_A_*
Bit 8 in the ARM program status register | |
ARM_A_BIT = $00000100;
|
Data Abort masked when set to 1 |
ATAG_*
ATAG_NONE = $00000000;
|
|
ATAG_CORE = $54410001;
|
|
ATAG_MEM = $54410002;
|
|
ATAG_VIDEOTEXT = $54410003;
|
|
ATAG_RAMDISK = $54410004;
|
|
ATAG_INITRD2 = $54410005;
|
|
ATAG_SERIAL = $54410006;
|
|
ATAG_REVISION = $54410007;
|
|
ATAG_VIDEOLFB = $54410008;
|
|
ATAG_CMDLINE = $54410009;
|
|
ARMTAGS_INITIAL = $FFFFFFFF;
|
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 |
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 init 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 Char;
|
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)
|
ARM wait
TARMWait = procedure;
|
ARM long wait
TARMLongWait = procedure;
|
ARM short wait
TARMShortWait = procedure;
|
ARM slow blink
TARMSlowBlink = procedure;
|
ARM fast blink
TARMFastBlink = procedure;
|
Public variables
ARM specific variables
ARMInitialized:Boolean;
|
ARMBootMode:LongWord = 0;
|
The ARM Mode that the processor was in at boot time (Set by Startup). Must be initialized to remain in .data or else rewritten to zero with .bss |
ARMBootVectors:LongWord = 0;
|
The Vector Base Address that was current at boot time (Set by Startup). Must be initialized to remain in .data or else rewritten to zero with .bss |
ARMTagsAddress:LongWord = ARMTAGS_INITIAL;
|
Pointer to the ARM TAGS provided by the bootloader at startup (Set by Startup). Must be initialized to remain in .data or else rewritten to zero with .bss |
ARMMachineType:LongWord = 0;
|
ARM Machine Type provided by the bootloader at startup (Set by Startup). Must be initialized to remain in .data or else rewritten to zero with .bss |
ARM tags variables
ARMTagsCount:LongWord;
|
Number of ARM Tags found during parse |
Tag none variables
TagNoneCount:LongWord;
|
Number of ARM NONE Tags found during parse |
Tag core variables
TagCoreCount:LongWord;
|
Number of ARM CORE Tags found during parse |
TagCoreFlags:LongWord;
|
TagCorePageSize:LongWord;
|
TagCoreRootDevice:LongWord;
|
Tag memory variables
TagMemoryCount:LongWord;
|
Number of ARM MEM Tags found during parse |
TagMemorySize:LongWord;
|
Size of the last block reported by ARM Tags |
TagMemoryStart:LongWord;
|
Start of the last block reported by ARM Tags |
TagMemoryLength:LongWord;
|
Adjusted Size of the last block reported by ARM Tags |
TagMemoryAddress:LongWord;
|
Adjusted Address of the last block reported by ARM Tags |
Tag video text variables
TagVideoTextCount:LongWord;
|
Number of ARM VIDEOTEXT Tags found during parse |
Tag ramdisk variables
TagRamdiskCount:LongWord;
|
Number of ARM RAMDISK Tags found during parse |
Tag Init RD2 variables
TagInitRd2Count:LongWord;
|
Number of ARM INITRD2 Tags found during parse |
Tag serial variables
TagSerialCount:LongWord;
|
Number of ARM SERIAL Tags found during parse |
TagSerialNoLow:LongWord;
|
TagSerialNoHigh:LongWord;
|
Tag revision variables
TagRevisionCount:LongWord;
|
Number of ARM REVISION Tags found during parse |
TagRevisionNo:LongWord;
|
Tag video FB variables
TagVideoFBCount:LongWord;
|
Number of ARM VIDEOLFB Tags found during parse |
Tag command variables
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:PChar;
|
Pointer to the start of the command line |
Wait handlers
ARMWaitHandler:TARMWait;
|
ARMLongWaitHandler:TARMLongWait;
|
ARMShortWaitHandler:TARMShortWait;
|
Blink handlers
ARMSlowBlinkHandler:TARMSlowBlink;
|
ARMFastBlinkHandler:TARMFastBlink;
|
Function declarations
Initialization functions
procedure ARMInit;
Note | None documented |
---|
ARM platform functions
procedure ARMParseBootTags;
Note | None documented |
---|
procedure ARMParseCommandLine;
Note | None documented |
---|
procedure ARMParseEnvironment;
Note | None documented |
---|
function ARMGetSP:PtrUInt; assembler; nostackframe;
Note | None documented |
---|
function ARMGetPC:PtrUInt; assembler; nostackframe;
Note | None documented |
---|
function ARMGetIRQ:Boolean; assembler; nostackframe;
Return | True is enabled, False if disabled (Returned in R0) |
---|
procedure ARMEnableIRQ; assembler; nostackframe;
Note | None documented |
---|
procedure ARMDisableIRQ; assembler; nostackframe;
Note | None documented |
---|
function ARMSaveIRQ:TIRQMask; assembler; nostackframe;
Return | IRQ state when called (Returned in R0) |
---|
function ARMRestoreIRQ(IRQMask:TIRQMask):TIRQMask; assembler; nostackframe;
IRQMask | IRQ state to restore (Passed in R0) |
---|---|
Return | IRQ state when called (Returned in R0) |
function ARMGetFIQ:Boolean; assembler; nostackframe;
Return | True is enabled, False if disabled (Returned in R0) |
---|
procedure ARMEnableFIQ; assembler; nostackframe;
Note | None documented |
---|
procedure ARMDisableFIQ; assembler; nostackframe;
Note | None documented |
---|
function ARMSaveFIQ:TFIQMask; assembler; nostackframe;
Return | FIQ state when called (Returned in R0) |
---|
function ARMRestoreFIQ(FIQMask:TFIQMask):TFIQMask; assembler; nostackframe;
FIQMask | FIQ state to restore (Passed in R0) |
---|---|
Return | FIQ state when called (Returned in R0) |
procedure ARMEnableIRQFIQ; assembler; nostackframe;
Note | None documented |
---|
procedure ARMDisableIRQFIQ; assembler; nostackframe;
Note | None documented |
---|
function ARMSaveIRQFIQ:TIRQFIQMask; assembler; nostackframe;
Return | IRQ/FIQ state when called (Returned in R0) |
---|
function ARMRestoreIRQFIQ(IRQFIQMask:TIRQFIQMask):TIRQFIQMask; assembler; nostackframe;
IRQFIQMask | IRQ/FIQ state to restore (Passed in R0) |
---|---|
Return | IRQ/FIQ state when called (Returned in R0) |
function ARMGetAbort:Boolean; assembler; nostackframe;
Return | True is enabled, False if disabled (Returned in R0) |
---|
procedure ARMEnableAbort; assembler; nostackframe;
Note | None documented |
---|
procedure ARMDisableAbort; assembler; nostackframe;
Note | None documented |
---|
function ARMSaveAbort:TAbortMask; assembler; nostackframe;
Return | Abort state when called (Returned in R0) |
---|
function ARMRestoreAbort(AbortMask:TAbortMask):TAbortMask; assembler; nostackframe;
AbortMask | Abort state to restore (Passed in R0) |
---|---|
Return | Abort state when called (Returned in R0) |
ARM helper functions
procedure ARMWait; inline;
Note | None documented |
---|
procedure ARMLongWait; inline;
Note | None documented |
---|
procedure ARMShortWait; inline;
Note | None documented |
---|
procedure ARMSlowBlink; inline;
Note | None documented |
---|
procedure ARMFastBlink; inline;
Note | None documented |
---|
function ARMModeToString(ARMMode:LongWord):String;
Note | None documented |
---|
Return to Unit Reference