📄 plugbox.cc.svn-base
字号:
/*****************************************************************************//* Betriebssysteme *//*---------------------------------------------------------------------------*//* *//* P L U G B O X *//* *//*---------------------------------------------------------------------------*//* Abstraktion einer Interruptvektortabelle. Damit kann man die Behandlungs- *//* routine fuer jeden Hardware-, Softwareinterrupt und jede Prozessor- *//* exception festlegen. *//*****************************************************************************/#include "machine/plugbox.h"#include "device/panic.h"extern Panic panic;Plugbox::Plugbox(){ for(int i = 0; i < parameter::slots; i++) m_gates[i] = &panic;}Plugbox::Plugbox(Plugbox &plugbox){ for(int i = 0; i < parameter::slots; i++) m_gates[i] = plugbox.m_gates[i];}Plugbox::~Plugbox(){}void Plugbox::assign (unsigned int slot, Gate& gate){ if(slot < parameter::slots) m_gates[slot] = &gate;}Gate& Plugbox::report (unsigned int slot){ return *m_gates[slot & parameter::slot_mask];}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -