📄 hardware_gfd.h
字号:
;/////////////////////////////////////////////////////////////////
;file name: asixos.s //
;description: the kernel,dispatch //
;modify history: 2003-1-6 9:18 prot to ARM core
; 2003-4-1 12:16 ADD THE MACRO DEF HA_DEBUG
;notice:2003-3-22 13:59, in cvs ka_gfd project only the LC can modify this file
; othe project member can ont modify the file
;/////////////////////////////////////////////////////////////////
;define the macro HA_DEBUG
GBLL HA_DEBUG
;////////////////////////////////////////////////////////////////////
;// Rules of Registers' Use
;////////////////////////////////////////////////////////////////////
R_RETURN RN r0 ; //with some problem,depend on the compiler,the gcc cmpiler,single return value is r0
;#define R_SWI_ARGS_1 r12
;#define R_SWI_ARGS_2 r13
;#define R_SWI_ARGS_3 r14
;#define R_SWI_ARGS_4 r15
RTA RN r4
RTB RN r5
RTC RN r6
RLA RN r7
RLB RN r8
RLC RN r9
RLD RN r10
RVA RN r11
RVB RN r12
RVC RN r13
R_ALL_0_12 RLIST { r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12 }
;R_ALL_16_28 RN r0
;//******************************************************
;//*define the onchip register of GFD
;//*******************************************************
SP_USR EQU 0x80000
SP_SYS EQU 0x81000
SP_SVC EQU 0x82000
SP_IRQ EQU 0x83000
SP_FIQ EQU 0x84000
SP_UND EQU 0x85000
SP_ABT EQU 0x86000
;THE register OF INTC
BASE_INTC EQU 0x10000000 ;BASE ADDRESS OF INTC
INTC_EN EQU BASE_INTC+0X0
INTC_MSK EQU BASE_INTC+0X8
INTC_FC EQU BASE_INTC+0X10
INTC_RWSTS EQU BASE_INTC+0X18
INTC_STS EQU BASE_INTC+0X20
INTC_MSKSTS EQU BASE_INTC+0X28
INTC_FNLSTS EQU BASE_INTC+0X30
INTC_PLV EQU BASE_INTC+0XD8
INTC_EN_FIQ EQU BASE_INTC+0XC0
INTC_MSK_FIQ EQU BASE_INTC+0XC4
INTC_FC_FIQ EQU BASE_INTC+0XC8
INTC_RWSTS_FIQ EQU BASE_INTC+0XCC
INTC_STS_FIQ EQU BASE_INTC+0XD0
INTC_FNL_FIQ EQU BASE_INTC+0XD4
LAB_GPT EQU 1
LAB_KBC EQU 2
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -