⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mn10300_stub.h

📁 ecos为实时嵌入式操作系统
💻 H
字号:
#ifndef CYGONCE_HAL_MN10300_STUB_H#define CYGONCE_HAL_MN10300_STUB_H/* mn10300_stub.h - MN10300-specific definitions for generic stub *  * Copyright (c) 1998,1999 Cygnus Solutions * * The authors hereby grant permission to use, copy, modify, distribute, * and license this software and its documentation for any purpose, provided * that existing copyright notices are retained in all copies and that this * notice is included verbatim in any distributions. No written agreement, * license, or royalty fee is required for any of the authorized uses. * Modifications to this software may be copyrighted by their authors * and need not follow the licensing terms described here, provided that * the new terms are clearly indicated on the first page of each file where * they apply. */#define NUMREGS    32#define REGSIZE( _x_ ) (4)typedef unsigned long target_register_t;enum regnames {  D0, D1, D2, D3, A0, A1, A2, A3,  SP, PC, MDR, PSW, LIR, LAR};typedef enum regnames regnames_t;/* Given a trap value TRAP, return the corresponding signal. */extern int __computeSignal (unsigned int trap_number);/* Return the SPARC trap number corresponding to the last-taken trap. */extern int __get_trap_number (void);/* Return the currently-saved value corresponding to register REG. */extern target_register_t get_register (regnames_t reg);/* Store VALUE in the register corresponding to WHICH. */extern void put_register (regnames_t which, target_register_t value);/* Set the currently-saved pc register value to PC. This also updates NPC   as needed. */extern void set_pc (target_register_t pc);/* Set things up so that the next user resume will execute one instruction.   This may be done by setting breakpoints or setting a single step flag   in the saved user registers, for example. */void __single_step (void);/* Clear the single-step state. */void __clear_single_step (void);/* If the breakpoint we hit is in the breakpoint() instruction, return a   non-zero value. */extern int __is_breakpoint_function (void);/* Skip the current instruction. */extern void __skipinst (void);extern void __install_breakpoints (void);extern void __clear_breakpoints (void);#endif // ifndef CYGONCE_HAL_MN10300_STUB_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -