?? score.inc
字號:
#ifndef CYGONCE_HAL_SCORE_INC#define CYGONCE_HAL_SCORE_INC##=============================================================================#### score.inc#### Score assembler header file####=============================================================================//####ECOSGPLCOPYRIGHTBEGIN####// -------------------------------------------// This file is part of eCos, the Embedded Configurable Operating System.// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.//// eCos is free software; you can redistribute it and/or modify it under// the terms of the GNU General Public License as published by the Free// Software Foundation; either version 2 or (at your option) any later version.//// eCos is distributed in the hope that it will be useful, but WITHOUT ANY// WARRANTY; without even the implied warranty of MERCHANTABILITY or// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License// for more details.//// You should have received a copy of the GNU General Public License along// with eCos; if not, write to the Free Software Foundation, Inc.,// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.//// As a special exception, if other files instantiate templates or use macros// or inline functions from this file, or you compile this file and link it// with other works to produce a work based on this file, this file does not// by itself cause the resulting work to be covered by the GNU General Public// License. However the source code for this file must still be made available// in accordance with section (3) of the GNU General Public License.//// This exception does not invalidate any other reasons why a work based on// this file might be covered by the GNU General Public License.//// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.// at http://sources.redhat.com/ecos/ecos-license/// -------------------------------------------//####ECOSGPLCOPYRIGHTEND####//=============================================================================//#####DESCRIPTIONBEGIN####//// Author(s): nickg// Contributors: nickg// Date: 2007-07-27// Purpose: Standard Score register names.// Description: // Usage:// #include <cyg/hal/score.inc>// ...// ////####DESCRIPTIONEND####////=============================================================================#define SP r0#define AT r1#define BP r2#define LR r3#define A0 r4#define A1 r5#define A2 r6#define A3 r7#define T0 r8#define T1 r9#define T2 r10#define T3 r11#define S0 r12#define S1 r13#define S2 r14#define S3 r15#define S4 r16#define S5 r17#define S6 r18#define S7 r19#define S8 r20#define S9 r21#define T4 r22#define T5 r23#define T6 r24#define T7 r25#define T8 r26#define T9 r27#define R28 r28#define JP r29#define K0 r30#define K1 r31// CP0 register define#define CP0_STATUS cr0#define CP0_COND cr1#define CP0_CAUSE cr2#define CP0_EXCPVEC cr3#define CP0_CCR cr4#define CP0_EPC cr5#define CP0_BADVA cr6#define CP0_WIRE cr7#define CP0_INDEX cr8#define CP0_CONTEXT cr9#define CP0_RANDOM cr10#define CP0_ENTRYHI cr11#define CP0_ENTRYLO cr12#define CP0_FMARLO cr13#define CP0_FMARHI cr14#define CP0_FMCR cr15#define CP0_FFMR cr16#define CP0_LLADDR cr17#define CP0_PREV cr18#define CP0_DREG cr29#define CP0_DEPC cr30#define CP0_DSAVE cr31#define SPR_HI sr1#define SPR_LO sr2//specification define#define SR_CNT sr0#define SR_LCR sr1#define SR_SCR sr2#------------------------------------------------------------------------------#define FUNC_START(name) \ .type name,@function; \ .globl name; \ .ent name; \ .set volatile; \name:#define FUNC_END(name) \name##_end: \ .end name \#------------------------------------------------------------------------------#endif // ifndef CYGONCE_HAL_SCORE_INC# end of score.inc
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -