reg.h
来自「Ibmstb02500 miniboot 源码」· C头文件 代码 · 共 115 行
H
115 行
/* openbios/include/sys/reg.h, redbios, redbios_iii_1.0 3/23/98 11:41:45 *//*-----------------------------------------------------------------------------+|| This source code has been made available to you by IBM on an AS-IS| basis. Anyone receiving this source is licensed under IBM| copyrights to use it in any way he or she deems fit, including| copying it, modifying it, compiling it, and redistributing it either| with or without modifications. No license under IBM patents or| patent applications is to be implied by the copyright license.|| Any user of this software should understand that IBM cannot provide| technical support for this software and will not be responsible for| any consequences resulting from the use of this software.|| Any person who transfers this source code or any derivative work| must include the IBM copyright notice, this paragraph, and the| preceding two paragraphs in the transferred software.|| COPYRIGHT I B M CORPORATION 1995| LICENSED MATERIAL - PROGRAM PROPERTY OF I B M+-----------------------------------------------------------------------------*//*-----------------------------------------------------------------------------+|| File Name: sys/reg.h|| Function: define PowerPC registers for debugger|| Author: R. Olson|| Change Activity-|| Date Description of Change BY| --------- --------------------- ---| 23-Aug-93 Created rpo| 19-Oct-93 Port to 603 MPT| 15-Nov-93 Port to 403ga MPT| 15-Nov-95 Added HID0 value KDW| 15-JUL-96 Added DBAT values KDW|+-----------------------------------------------------------------------------*/#ifndef _sys_reg_h_#define _sys_reg_h_/*-----------------------------------------------------------------------------+| Macro defines for general purpose registers, all 32-bit, sequential no's.+-----------------------------------------------------------------------------*/#define GPR0 0#define GPR1 1#define GPR2 2#define GPR3 3#define GPR4 4#define GPR5 5#define GPR6 6#define GPR7 7#define GPR8 8#define GPR9 9#define GPR10 10#define GPR11 11#define GPR12 12#define GPR13 13#define GPR14 14#define GPR15 15#define GPR16 16#define GPR17 17#define GPR18 18#define GPR19 19#define GPR20 20#define GPR21 21#define GPR22 22#define GPR23 23#define GPR24 24#define GPR25 25#define GPR26 26#define GPR27 27#define GPR28 28#define GPR29 29#define GPR30 30#define GPR31 31/*-----------------------------------------------------------------------------+| miscellaneous special purpose registers - 32-bit, sequential no's.+-----------------------------------------------------------------------------*/#define IAR 128 /* instruction address register */#define MSR 129 /* machine state register */#define CR 130 /* condition register */#define LR 131 /* link register */#define CTR 132 /* count register */#define XER 133 /* fixed point exception */#define MQ 134 /* 601 ONLY !!! multiply/quotient register */#define SRR0 139 /* mach stat save/restore reg 0 */#define SRR1 140 /* mach stat save/restore reg 1 */#define SRR2 166 /* mach stat save/restore reg 0 */#define SRR3 167 /* mach stat save/restore reg 1 */#define TCR 984 /* Timer Control Register */#define HID0 1008 /* Hardware Implementation Dependent Reg */#define DBAT0L 536#define DBAT0U 537#define DBAT1L 538#define DBAT1U 539#define DBAT2L 540#define DBAT2U 541#define DBAT3L 542#define DBAT3U 543/*-----------------------------------------------------------------------------+| Additional registers.+-----------------------------------------------------------------------------*/#define SPRG0 272 /* SPR general 0 */#define SPRG1 273 /* SPR general 1 */#define SPRG2 274 /* SPR general 2 */#define SPRG3 275 /* SPR general 3 */#endif /* _sys_reg_h_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?