Difference between revisions of "Unit PlatformAARCH64"

From Ultibo.org
Jump to: navigation, search
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 boot tag constants ''' <code> ATAG_* </code></div>
+
<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 57: Line 57:
 
<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 constants''' <code> ARM_MACHINE_* </code></div>
+
<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 440: Line 440:
 
|-
 
|-
 
| <code>AARCH64Initialized:Boolean;</code>
 
| <code>AARCH64Initialized:Boolean;</code>
| style="width: 65%;"|
+
| style="width: 40%;"|
 
|-
 
|-
 
|}
 
|}
Line 446: Line 446:
 
|-
 
|-
 
| <code>AARCH64BootMode:LongWord = 0;</code>
 
| <code>AARCH64BootMode:LongWord = 0;</code>
| style="width: 65%;"|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
+
| 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 452: Line 452:
 
|-
 
|-
 
| <code>AARCH64BootVectors:LongWord = 0;</code>
 
| <code>AARCH64BootVectors:LongWord = 0;</code>
| style="width: 65%;"|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
+
| 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 458: Line 458:
 
|-
 
|-
 
| <code>ARMTagsAddress:LongWord = ARMTAGS_INITIAL;</code>
 
| <code>ARMTagsAddress:LongWord = ARMTAGS_INITIAL;</code>
| style="width: 65%;"|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
+
| 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 464: Line 464:
 
|-
 
|-
 
| <code>ARMMachineType:LongWord = 0;</code>
 
| <code>ARMMachineType:LongWord = 0;</code>
| style="width: 65%;"|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
+
| 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 473: Line 473:
 
|-
 
|-
 
| <code>ARMTagsCount:LongWord;</code>
 
| <code>ARMTagsCount:LongWord;</code>
| style="width: 65%;"|Number of ARM Tags found during parse
+
| style="width: 40%;"|Number of ARM Tags found during parse
 
|-
 
|-
 
|}
 
|}
Line 482: Line 482:
 
|-
 
|-
 
| <code>TagNoneCount:LongWord;</code>
 
| <code>TagNoneCount:LongWord;</code>
| style="width: 65%;"|Number of ARM NONE Tags found during parse
+
| style="width: 40%;"|Number of ARM NONE Tags found during parse
 
|-
 
|-
 
|}
 
|}
Line 491: Line 491:
 
|-
 
|-
 
| <code>TagCoreCount:LongWord;</code>
 
| <code>TagCoreCount:LongWord;</code>
| style="width: 65%;"|Number of ARM CORE Tags found during parse
+
| style="width: 40%;"|Number of ARM CORE Tags found during parse
 
|-
 
|-
 
|}
 
|}
Line 497: Line 497:
 
|-
 
|-
 
| <code>TagCoreFlags:LongWord;</code>
 
| <code>TagCoreFlags:LongWord;</code>
| style="width: 65%;"|
+
| style="width: 40%;"|
 
|-
 
|-
 
|}
 
|}
Line 503: Line 503:
 
|-
 
|-
 
| <code>TagCorePageSize:LongWord;</code>
 
| <code>TagCorePageSize:LongWord;</code>
| style="width: 65%;"|
+
| style="width: 40%;"|
 
|-
 
|-
 
|}
 
|}
Line 509: Line 509:
 
|-
 
|-
 
| <code>TagCoreRootDevice:LongWord;</code>
 
| <code>TagCoreRootDevice:LongWord;</code>
| style="width: 65%;"|
+
| style="width: 40%;"|
 
|-
 
|-
 
|}
 
|}
Line 518: Line 518:
 
|-
 
|-
 
| <code>TagMemoryCount:LongWord;</code>
 
| <code>TagMemoryCount:LongWord;</code>
| style="width: 65%;"|Number of ARM MEM Tags found during parse
+
| style="width: 40%;"|Number of ARM MEM Tags found during parse
 
|-
 
|-
 
|}
 
|}
Line 524: Line 524:
 
|-
 
|-
 
| <code>TagMemorySize:LongWord;</code>
 
| <code>TagMemorySize:LongWord;</code>
| style="width: 65%;"|Size of the last block reported by ARM Tags
+
| style="width: 40%;"|Size of the last block reported by ARM Tags
 
|-
 
|-
 
|}
 
|}
Line 530: Line 530:
 
|-
 
|-
 
| <code>TagMemoryStart:LongWord;</code>
 
| <code>TagMemoryStart:LongWord;</code>
| style="width: 65%;"|Start of the last block reported by ARM Tags
+
| style="width: 40%;"|Start of the last block reported by ARM Tags
 
|-
 
|-
 
|}
 
|}
Line 536: Line 536:
 
|-
 
|-
 
| <code>TagMemoryLength:LongWord;</code>
 
| <code>TagMemoryLength:LongWord;</code>
| style="width: 65%;"|Adjusted Size of the last block reported by ARM Tags
+
| style="width: 40%;"|Adjusted Size of the last block reported by ARM Tags
 
|-
 
|-
 
|}
 
|}
Line 542: Line 542:
 
|-
 
|-
 
| <code>TagMemoryAddress:LongWord;</code>
 
| <code>TagMemoryAddress:LongWord;</code>
| style="width: 65%;"|Adjusted Address of the last block reported by ARM Tags
+
| style="width: 40%;"|Adjusted Address of the last block reported by ARM Tags
 
|-
 
|-
 
|}
 
|}
Line 551: Line 551:
 
|-
 
|-
 
| <code>TagVideoTextCount:LongWord;</code>
 
| <code>TagVideoTextCount:LongWord;</code>
| style="width: 65%;"|Number of ARM VIDEOTEXT Tags found during parse
+
| style="width: 40%;"|Number of ARM VIDEOTEXT Tags found during parse
 
|-
 
|-
 
|}
 
|}
Line 560: Line 560:
 
|-
 
|-
 
| <code>TagRamdiskCount:LongWord;</code>
 
| <code>TagRamdiskCount:LongWord;</code>
| style="width: 65%;"|Number of ARM RAMDISK Tags found during parse
+
| style="width: 40%;"|Number of ARM RAMDISK Tags found during parse
 
|-
 
|-
 
|}
 
|}
Line 569: Line 569:
 
|-
 
|-
 
| <code>TagInitRd2Count:LongWord;</code>
 
| <code>TagInitRd2Count:LongWord;</code>
| style="width: 65%;"|Number of ARM INITRD2 Tags found during parse
+
| style="width: 40%;"|Number of ARM INITRD2 Tags found during parse
 
|-
 
|-
 
|}
 
|}
Line 578: Line 578:
 
|-
 
|-
 
| <code>TagSerialCount:LongWord;</code>
 
| <code>TagSerialCount:LongWord;</code>
| style="width: 65%;"|Number of ARM SERIAL Tags found during parse
+
| style="width: 40%;"|Number of ARM SERIAL Tags found during parse
 
|-
 
|-
 
|}
 
|}
Line 584: Line 584:
 
|-
 
|-
 
| <code>TagSerialNoLow:LongWord;</code>
 
| <code>TagSerialNoLow:LongWord;</code>
| style="width: 65%;"|
+
| style="width: 40%;"|
 
|-
 
|-
 
|}
 
|}
Line 590: Line 590:
 
|-
 
|-
 
| <code>TagSerialNoHigh:LongWord;</code>
 
| <code>TagSerialNoHigh:LongWord;</code>
| style="width: 65%;"|
+
| style="width: 40%;"|
 
|-
 
|-
 
|}
 
|}
Line 599: Line 599:
 
|-
 
|-
 
| <code>TagRevisionCount:LongWord;</code>
 
| <code>TagRevisionCount:LongWord;</code>
| style="width: 65%;"|Number of ARM REVISION Tags found during parse
+
| style="width: 40%;"|Number of ARM REVISION Tags found during parse
 
|-
 
|-
 
|}
 
|}
Line 605: Line 605:
 
|-
 
|-
 
| <code>TagRevisionNo:LongWord;</code>
 
| <code>TagRevisionNo:LongWord;</code>
| style="width: 65%;"|
+
| style="width: 40%;"|
 
|-
 
|-
 
|}
 
|}
Line 614: Line 614:
 
|-
 
|-
 
| <code>TagVideoFBCount:LongWord;</code>
 
| <code>TagVideoFBCount:LongWord;</code>
| style="width: 65%;"|Number of ARM VIDEOLFB Tags found during parse
+
| style="width: 40%;"|Number of ARM VIDEOLFB Tags found during parse
 
|-
 
|-
 
|}
 
|}
Line 623: Line 623:
 
|-
 
|-
 
| <code>TagCmdCount:LongWord;</code>
 
| <code>TagCmdCount:LongWord;</code>
| style="width: 65%;"|Number of ARM CMDLINE Tags found during parse
+
| style="width: 40%;"|Number of ARM CMDLINE Tags found during parse
 
|-
 
|-
 
|}
 
|}
Line 629: Line 629:
 
|-
 
|-
 
| <code>TagCommandSize:LongWord;</code>
 
| <code>TagCommandSize:LongWord;</code>
| style="width: 65%;"|Length of the command line in characters (Including null terminator)
+
| style="width: 40%;"|Length of the command line in characters (Including null terminator)
 
|-
 
|-
 
|}
 
|}
Line 635: Line 635:
 
|-
 
|-
 
| <code>TagCommandCount:LongInt;</code>
 
| <code>TagCommandCount:LongInt;</code>
| style="width: 65%;"|Count of parameters (space delimited) in the command line
+
| style="width: 40%;"|Count of parameters (space delimited) in the command line
 
|-
 
|-
 
|}
 
|}
Line 641: Line 641:
 
|-
 
|-
 
| <code>TagCommandAddress:PChar;</code>
 
| <code>TagCommandAddress:PChar;</code>
| style="width: 65%;"|Pointer to the start of the command line
+
| style="width: 40%;"|Pointer to the start of the command line
 
|-
 
|-
 
|}
 
|}
Line 650: Line 650:
 
|-
 
|-
 
| <code>AARCH64WaitHandler:TAARCH64Wait;</code>
 
| <code>AARCH64WaitHandler:TAARCH64Wait;</code>
| style="width: 65%;"|
+
| style="width: 40%;"|
 
|-
 
|-
 
|}
 
|}
Line 656: Line 656:
 
|-
 
|-
 
| <code>AARCH64LongWaitHandler:TAARCH64LongWait;</code>
 
| <code>AARCH64LongWaitHandler:TAARCH64LongWait;</code>
| style="width: 65%;"|
+
| style="width: 40%;"|
 
|-
 
|-
 
|}
 
|}
Line 662: Line 662:
 
|-
 
|-
 
| <code>AARCH64ShortWaitHandler:TAARCH64ShortWait;</code>
 
| <code>AARCH64ShortWaitHandler:TAARCH64ShortWait;</code>
| style="width: 65%;"|
+
| style="width: 40%;"|
 
|-
 
|-
 
|}  
 
|}  
Line 671: Line 671:
 
|-
 
|-
 
| <code>AARCH64SlowBlinkHandler:TAARCH64SlowBlink;</code>
 
| <code>AARCH64SlowBlinkHandler:TAARCH64SlowBlink;</code>
| style="width: 65%;"|
+
| style="width: 40%;"|
 
|-
 
|-
 
|}
 
|}
Line 677: Line 677:
 
|-
 
|-
 
| <code>AARCH64FastBlinkHandler:TAARCH64FastBlink;</code>
 
| <code>AARCH64FastBlinkHandler:TAARCH64FastBlink;</code>
| style="width: 65%;"|
+
| style="width: 40%;"|
 
|-
 
|-
 
|}
 
|}

Revision as of 03:08, 27 March 2017

Return to Unit Reference


Description


Ultibo Platform interface unit for AARCH64 (ARM64)

To be documented

Constants



ARM boot tag 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 type 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)  

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). Must be initialized to remain in .data or else rewritten to zero with .bss
AARCH64BootVectors: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

AARCH64WaitHandler:TAARCH64Wait;
AARCH64LongWaitHandler:TAARCH64LongWait;
AARCH64ShortWaitHandler:TAARCH64ShortWait;

Blink handlers

AARCH64SlowBlinkHandler:TAARCH64SlowBlink;
AARCH64FastBlinkHandler:TAARCH64FastBlink;


Function declarations



Initialization functions

procedure AARCH64Init;
Description: To be documented
Note None documented


AARCH64 platform functions

procedure AARCH64ParseBootTags;
Description: Extract some information from the ARM boot tag list and use it to load the memory manager, some other information is stored in variables for future use
Note None documented


procedure AARCH64ParseCommandLine;
Description: Setup argc, argv and cmdline and process known command line options
Note None documented


procedure AARCH64ParseEnvironment;
Description: Setup envp and process known environment options
Note None documented


function AARCH64GetSP:PtrUInt; assembler; nostackframe;
Description: Get the current stack pointer (SP)
Note None documented


function AARCH64GetPC:PtrUInt; assembler; nostackframe;
Description: Get the current program counter (PC)
Note None documented


function AARCH64GetIRQ:Boolean; assembler; nostackframe;
Description: Get Interrupts (IRQ) state
Return True is enabled, False if disabled (Returned in R0)


procedure AARCH64EnableIRQ; assembler; nostackframe;
Description: Enable Interrupts (IRQ) unconditionally
Note None documented


procedure AARCH64DisableIRQ; assembler; nostackframe;
Description: Disable Interrupts (IRQ) unconditionally
Note None documented


function AARCH64SaveIRQ:TIRQMask; assembler; nostackframe;
Description: Disable Interrupts (IRQ) and return the previous state
Return IRQ state when called (Returned in R0)


function AARCH64RestoreIRQ(IRQMask:TIRQMask):TIRQMask; assembler; nostackframe;
Description: Restore Interrupts (IRQ) to a previous state
IRQMask IRQ state to restore (Passed in R0)
Return IRQ state when called (Returned in R0)


function AARCH64GetFIQ:Boolean; assembler; nostackframe;
Description: Get Fast Interrupts (FIQ) state
Return True is enabled, False if disabled (Returned in R0)


procedure AARCH64EnableFIQ; assembler; nostackframe;
Description: Enable Fast Interrupts (FIQ) unconditionally
Note None documented


procedure AARCH64DisableFIQ; assembler; nostackframe;
Description: Disable Fast Interrupts (FIQ) unconditionally
Note None documented


function AARCH64SaveFIQ:TFIQMask; assembler; nostackframe;
Description: Disable Fast Interrupts (FIQ) and return the previous state
Return FIQ state when called (Returned in R0)


function AARCH64RestoreFIQ(FIQMask:TFIQMask):TFIQMask; assembler; nostackframe;
Description: Restore Fast Interrupts (FIQ) to a previous state
FIQMask FIQ state to restore (Passed in R0)
Return FIQ state when called (Returned in R0)


procedure AARCH64EnableIRQFIQ; assembler; nostackframe;
Description: Enable Interrupts and Fast Interrupts (IRQ/FIQ) unconditionally
Note None documented


procedure AARCH64DisableIRQFIQ; assembler; nostackframe;
Description: Disable Interrupts and Fast Interrupts (IRQ/FIQ) unconditionally
Note None documented


function AARCH64SaveIRQFIQ:TIRQFIQMask; assembler; nostackframe;
Description: Disable Interrupts and Fast Interrupts (IRQ/FIQ) and return the previous state
Return IRQ/FIQ state when called (Returned in R0)


function AARCH64RestoreIRQFIQ(IRQFIQMask:TIRQFIQMask):TIRQFIQMask; assembler; nostackframe;
Description: Restore Interrupts and Fast Interrupts (IRQ/FIQ) to a previous state
IRQFIQMask IRQ/FIQ state to restore (Passed in R0)
Return IRQ/FIQ state when called (Returned in R0)


function AARCH64GetAbort:Boolean; assembler; nostackframe;
Description: Get Abort state
Return True is enabled, False if disabled (Returned in R0)


procedure AARCH64EnableAbort; assembler; nostackframe;
Description: Enable Aborts unconditionally
Note None documented


procedure AARCH64DisableAbort; assembler; nostackframe;
Description: Disable Aborts unconditionally
Note None documented


function AARCH64SaveAbort:TAbortMask; assembler; nostackframe;
Description: Disable Aborts and return the previous state
Return Abort state when called (Returned in R0)


function AARCH64RestoreAbort(AbortMask:TAbortMask):TAbortMask; assembler; nostackframe;
Description: Restore Aborts to a previous state
AbortMask Abort state to restore (Passed in R0)
Return bort state when called (Returned in R0)


AARCH64 helper functions

procedure AARCH64Wait; inline;
Description: To be documented
Note None documented


procedure AARCH64LongWait; inline;
Description: To be documented
Note None documented


procedure AARCH64ShortWait; inline;
Description: To be documented
Note None documented


procedure AARCH64SlowBlink; inline;
Description: To be documented
Note None documented


procedure AARCH64FastBlink; inline;
Description: To be documented
Note None documented


function AARCH64ModeToString(AARCH64Mode:LongWord):String;
Description: To be documented
Note None documented


Return to Unit Reference