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

📄 hal_cygm.h

📁 ecos为实时嵌入式操作系统
💻 H
字号:
#ifndef CYGONCE_HAL_CYGM_H#define CYGONCE_HAL_CYGM_H//=============================================================================////      hal_cygm.h////      HAL CygMon vector definitions////=============================================================================//####COPYRIGHTBEGIN####//// -------------------------------------------// The contents of this file are subject to the Cygnus eCos Public License// Version 1.0 (the "License"); you may not use this file except in// compliance with the License.  You may obtain a copy of the License at// http://sourceware.cygnus.com/ecos// // Software distributed under the License is distributed on an "AS IS"// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See the// License for the specific language governing rights and limitations under// the License.// // The Original Code is eCos - Embedded Cygnus Operating System, released// September 30, 1998.// // The Initial Developer of the Original Code is Cygnus.  Portions created// by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions.  All Rights Reserved.// -------------------------------------------////####COPYRIGHTEND####//=============================================================================//#####DESCRIPTIONBEGIN####//// Author(s):   hmt// Contributors:        hmt// Date:        1999-02-24// Purpose:     Define Interrupt vectors in CygMon// Description: //              // Usage://              #include <cyg/hal/hal_cygm.h>//              ...//              ////####DESCRIPTIONEND####////=============================================================================#include <pkgconf/system.h>#include <pkgconf/hal.h>#include <pkgconf/hal_sparclite.h>#include <pkgconf/hal_sparclite_sleb.h>// *** THIS FILE IS ALSO USED IN ASSEMBLY SOURCE ***// so it does not include eg. cyg_type.h ...#ifdef CYG_HAL_USE_ROM_MONITOR_CYGMON//-----------------------------------------------------------------------------// SPARClite CygMon vector numbers and address#define CYGMON_VECTOR_TABLE_BASE (0x04000000)#define CYGMON_VECTOR_TABLE ((CYG_ADDRESS *)CYGMON_VECTOR_TABLE_BASE)// The ROM vector table is located at 0x04000000 and has the// following layout:#define BSP_EXC_IACCESS     0   /* insn access */#define BSP_EXC_ILL         1   /* illegal insn */#define BSP_EXC_IPRIV       2   /* privileged insn */#define BSP_EXC_FPDIS       3   /* FPU disabled */#define BSP_EXC_WINOVF      4   /* window overflow */#define BSP_EXC_WINUND      5   /* window underflow */#define BSP_EXC_ALIGN       6   /* alignment */#define BSP_EXC_DACCESS     7   /* data access */#define BSP_EXC_TAGOVF      8   /* tag overflow */#define BSP_EXC_INT1        9#define BSP_EXC_INT2       10#define BSP_EXC_INT3       11#define BSP_EXC_INT4       12#define BSP_EXC_INT5       13#define BSP_EXC_INT6       14#define BSP_EXC_INT7       15   /* serial Ch0 rxrdy */#define BSP_EXC_INT8       16#define BSP_EXC_INT9       17#define BSP_EXC_INT10      18   /* serial Ch0 rxrdy */#define BSP_EXC_INT11      19#define BSP_EXC_INT12      20#define BSP_EXC_INT13      21#define BSP_EXC_INT14      22   /* ethernet interrupt */#define BSP_EXC_INT15      23#define BSP_EXC_CPDIS      24   /* CP disabled */#define BSP_EXC_BREAK      25   /* breakpoint "ta 1" */#define BSP_EXC_WINFLUSH   26   /* window flush "ta 3" */#define BSP_EXC_SYSCALL    27   /* syscall "ta 8" */#define BSP_EXC_DEBUG      28   /* DSU exception */#define BSP_EXC_TRAP       29   /* all other traps */#define BSP_VEC_MT_DEBUG   30   /* Multi-Threaded debugging */#define BSP_VEC_STUB_ENTRY 31   /* low level stub entry, eg. ^C rx */// These vectors should be called with:////  %l0 - PSR//  %l1 - PC//  %l2 - NPC// [%l3 - TBR ;  STUB_ENTRY only, TBR from original exception ]#define BSP_NOTVEC_BSP_COMM_PROCS 32 /* pointer to structure for comms */#endif // CYG_HAL_USE_ROM_MONITOR_CYGMON//-----------------------------------------------------------------------------#endif // ifndef CYGONCE_HAL_CYGM_H// End of hal_cygm.h

⌨️ 快捷键说明

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