main_run.h

来自「一个用在mips体系结构中的操作系统」· C头文件 代码 · 共 63 行

H
63
字号
/* * Copyright (C) 1996-1998 by the Board of Trustees *    of Leland Stanford Junior University. *  * This file is part of the SimOS distribution.  * See LICENSE file for terms of the license.  * */#ifndef MAIN_RUN_H#define MAIN_RUN_H#ifndef _LANGUAGE_ASSEMBLY/* This restores the stack pointer and the s registers, so routines *//* can correctly reetner emitted code (via continue_run) without causing an *//*   eventual stack overflow */C_LINK  void (*EnterTC)( EmbraState* );/* Same as above except also do a context switch */C_LINK  void (*EnterTC_CX)( EmbraState* );/* This is a variant of the main dispatch loop *//* which does not chain.  This is used by exceptions, and returns *//* after TC flushes */C_LINK  void (*continue_run_without_chaining)( void );/* This is the standard dispatch loop.  It looks up the next *//* instruction and translates the next block (if need be) */C_LINK  void (*continue_run)( void );C_LINK  void (*UPperiodic_callout)(void);/* For MP in UP. */C_LINK  void (*Embra_CX)(void);C_LINK void (*Embra_CX_nochain)(void);C_LINK void SyncInstr(void);/* **************************************************************** * SpillFP and RestoreFP can only be called from assembly  * as they access VSS_BASE  * ****************************************************************/C_LINK void (*SpillFP)(EmbraState*);C_LINK void (*RestoreFP)(EmbraState*);/* Called from translator.c to generate interface code dynamically */void GenInterfaceCode(void);  #endif /* _LANGUAGE_ASSEMBLY */#endif /* MAIN_RUN_H */

⌨️ 快捷键说明

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