XenevaOS
Loading...
Searching...
No Matches
aa64cpu.h
Go to the documentation of this file.
1
32#ifndef __AA64_CPU_H__
33#define __AA64_CPU_H__
34
35#include <stdint.h>
36#include <aurora.h>
37
38#define CPU_IMPLEMENTER_ARM 0x41
39#define CPU_IMPLEMENTER_BROADCOM 0x42
40#define CPU_IMPLEMENTER_CAVIUM 0x43
41#define CPU_IMPLEMENTER_FUJITSU 0x46
42#define CPU_IMPLEMENTER_INTEL 0x49
43#define CPU_IMPLEMENTER_APPLIED_MICRO 0x50
44#define CPU_IMPLEMENTER_QUALCOMM 0x51
45#define CPU_IMPLEMENTER_MARVELL 0x56
46#define CPU_IMPLEMENTER_APPLE 0x61
47
48//#pragma pack(push,1)
49typedef struct _aa64_regs_ {
63 int64_t x19; //104
64 int64_t x16; //112
65 int64_t x17; //120
66 int64_t x14; //128
67 int64_t x15; //136
68 int64_t x12; //144
69 int64_t x13; //152
70 int64_t x10; //160
71 int64_t x11; //168
72 int64_t x8; //176
73 int64_t x9; //184
74 int64_t x6; //192
75 int64_t x7; //200
76 int64_t x4; //208
77 int64_t x5; //216
78 int64_t x2; //224
79 int64_t x3; //232
80 int64_t x0; //240
81 int64_t x1; //248
83//#pragma pack(pop)
84
85
86
90extern void AA64CpuInitialize();
91
97
102extern void AA64SleepUS(uint32_t us);
103
108extern void AA64SleepMS(uint32_t ms);
109
114extern void AuAA64SyscallHandler(AA64Registers* regs);
115#endif
void AA64SleepUS(uint32_t us)
AA64SleepUS – sleep for sometimes.
Definition aa64cpu.c:129
void AuAA64SyscallHandler(AA64Registers *regs)
AuAA64SyscalHandler – common system call handler for aarch64.
Definition systable.c:128
void AA64CpuInitialize()
AA64CpuInitialize – initialize aa64 cpu.
Definition aa64cpu.c:145
void AA64SleepMS(uint32_t ms)
AA64SleepMS – sleep for sometimes.
Definition aa64cpu.c:137
struct _aa64_regs_ AA64Registers
void AA64CPUPostInitialize(KERNEL_BOOT_INFO *info)
AA64CPUPostInitialize – initilaize post cpu requirements.
Definition aa64cpu.c:194
unsigned int uint32_t
Definition acefiex.h:163
COMPILER_DEPENDENT_INT64 int64_t
Definition acefiex.h:164
Definition aurora.h:99
Definition aa64cpu.h:49
int64_t x23
Definition aa64cpu.h:59
int64_t x2
Definition aa64cpu.h:78
int64_t x26
Definition aa64cpu.h:54
int64_t x25
Definition aa64cpu.h:57
int64_t x16
Definition aa64cpu.h:64
int64_t x18
Definition aa64cpu.h:62
int64_t x1
Definition aa64cpu.h:81
int64_t x17
Definition aa64cpu.h:65
int64_t x11
Definition aa64cpu.h:71
int64_t x21
Definition aa64cpu.h:61
int64_t x4
Definition aa64cpu.h:76
int64_t x3
Definition aa64cpu.h:79
int64_t x24
Definition aa64cpu.h:56
int64_t x13
Definition aa64cpu.h:69
int64_t x0
Definition aa64cpu.h:80
int64_t x7
Definition aa64cpu.h:75
int64_t x19
Definition aa64cpu.h:63
int64_t x5
Definition aa64cpu.h:77
int64_t x8
Definition aa64cpu.h:72
int64_t x10
Definition aa64cpu.h:70
int64_t x30
Definition aa64cpu.h:50
int64_t x14
Definition aa64cpu.h:66
int64_t x6
Definition aa64cpu.h:74
int64_t x20
Definition aa64cpu.h:60
int64_t x29
Definition aa64cpu.h:53
int64_t x9
Definition aa64cpu.h:73
int64_t x12
Definition aa64cpu.h:68
int64_t EL0SP
Definition aa64cpu.h:51
int64_t x27
Definition aa64cpu.h:55
int64_t x22
Definition aa64cpu.h:58
int64_t x28
Definition aa64cpu.h:52
int64_t x15
Definition aa64cpu.h:67