亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? interrupt.h

?? nachos test nachos 有關實驗
?? H
字號:
// interrupt.h //	Data structures to emulate low-level interrupt hardware.////	The hardware provides a routine (SetLevel) to enable or disable//	interrupts.////	In order to emulate the hardware, we need to keep track of all//	interrupts the hardware devices would cause, and when they//	are supposed to occur.  ////	This module also keeps track of simulated time.  Time advances//	only when the following occur: //		interrupts are re-enabled//		a user instruction is executed//		there is nothing in the ready queue////	As a result, unlike real hardware, interrupts (and thus time-slice //	context switches) cannot occur anywhere in the code where interrupts//	are enabled, but rather only at those places in the code where //	simulated time advances (so that it becomes time to invoke an//	interrupt in the hardware simulation).////	NOTE: this means that incorrectly synchronized code may work//	fine on this hardware simulation (even with randomized time slices),//	but it wouldn't work on real hardware.  (Just because we can't//	always detect when your program would fail in real life, does not //	mean it's ok to write incorrectly synchronized code!)////  DO NOT CHANGE -- part of the machine emulation//// Copyright (c) 1992-1993 The Regents of the University of California.// All rights reserved.  See copyright.h for copyright notice and limitation // of liability and disclaimer of warranty provisions.#ifndef INTERRUPT_H#define INTERRUPT_H#include "copyright.h"#include "list.h"// Interrupts can be disabled (IntOff) or enabled (IntOn)enum IntStatus { IntOff, IntOn };// Nachos can be running kernel code (SystemMode), user code (UserMode),// or there can be no runnable thread, because the ready list // is empty (IdleMode).enum MachineStatus {IdleMode, SystemMode, UserMode};// IntType records which hardware device generated an interrupt.// In Nachos, we support a hardware timer device, a disk, a console// display and keyboard, and a network.enum IntType { TimerInt, DiskInt, ConsoleWriteInt, ConsoleReadInt, 				NetworkSendInt, NetworkRecvInt};// The following class defines an interrupt that is scheduled// to occur in the future.  The internal data structures are// left public to make it simpler to manipulate.class PendingInterrupt {  public:    PendingInterrupt(VoidFunctionPtr func, int param, int time, IntType kind);				// initialize an interrupt that will				// occur in the future    VoidFunctionPtr handler;    // The function (in the hardware device				// emulator) to call when the interrupt occurs    int arg;                    // The argument to the function.    int when;			// When the interrupt is supposed to fire    IntType type;		// for debugging};// The following class defines the data structures for the simulation// of hardware interrupts.  We record whether interrupts are enabled// or disabled, and any hardware interrupts that are scheduled to occur// in the future.class Interrupt {  public:    Interrupt();			// initialize the interrupt simulation    ~Interrupt();			// de-allocate data structures        IntStatus SetLevel(IntStatus level);// Disable or enable interrupts 					// and return previous setting.    void Enable();			// Enable interrupts.    IntStatus getLevel() {return level;}// Return whether interrupts					// are enabled or disabled        void Idle(); 			// The ready queue is empty, roll 					// simulated time forward until the 					// next interrupt    void Halt(); 			// quit and print out stats        void YieldOnReturn();		// cause a context switch on return 					// from an interrupt handler    MachineStatus getStatus() { return status; } // idle, kernel, user    void setStatus(MachineStatus st) { status = st; }    void DumpState();			// Print interrupt state        // NOTE: the following are internal to the hardware simulation code.    // DO NOT call these directly.  I should make them "private",    // but they need to be public since they are called by the    // hardware device simulators.    void Schedule(VoidFunctionPtr handler,// Schedule an interrupt to occur	int arg, int when, IntType type);// at time ``when''.  This is called    					// by the hardware device simulators.        void OneTick();       		// Advance simulated time  private:    IntStatus level;		// are interrupts enabled or disabled?    List *pending;		// the list of interrupts scheduled				// to occur in the future    bool inHandler;		// TRUE if we are running an interrupt handler    bool yieldOnReturn; 	// TRUE if we are to context switch				// on return from the interrupt handler    MachineStatus status;	// idle, kernel mode, user mode    // these functions are internal to the interrupt simulation code    bool CheckIfDue(bool advanceClock); // Check if an interrupt is supposed					// to occur now    void ChangeLevel(IntStatus old, 	// SetLevel, without advancing the	IntStatus now);  		// simulated time};#endif // INTERRRUPT_H

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品国产91久久久久久 | 欧亚一区二区三区| 欧美老肥妇做.爰bbww视频| 欧美变态口味重另类| 亚洲欧美日韩系列| 韩国av一区二区| 欧美日韩一区二区三区在线| 国产视频一区在线播放| 日韩精品成人一区二区在线| 成人午夜av在线| 亚洲精品在线电影| 日本欧美久久久久免费播放网| 成人激情图片网| 日韩三级中文字幕| 天天影视涩香欲综合网| 成人免费不卡视频| 久久久91精品国产一区二区三区| 日韩和欧美的一区| 色综合久久久久综合体桃花网| 久久久久久久网| 激情综合五月婷婷| 精品国产不卡一区二区三区| 天天色天天操综合| 欧美体内she精高潮| 自拍偷拍亚洲激情| 91网站视频在线观看| 亚洲国产欧美日韩另类综合 | 久久9热精品视频| 欧美精品视频www在线观看| 尤物视频一区二区| 欧美图区在线视频| 午夜激情久久久| 欧美乱熟臀69xxxxxx| 亚洲午夜羞羞片| 欧美日韩美少妇 | 欧美激情一区二区三区蜜桃视频 | 国产成人精品三级| 国产精品欧美久久久久一区二区| 国产精品羞羞答答xxdd| 精品国产免费人成电影在线观看四季 | 日韩中文字幕一区二区三区| 欧美日韩中文一区| 午夜视频在线观看一区| 91精品欧美一区二区三区综合在 | 亚洲成a人片综合在线| 欧洲另类一二三四区| 亚洲一区二区三区四区在线观看 | 亚洲精品视频一区二区| 日本韩国视频一区二区| 亚洲一区二区视频| 日韩一区二区精品葵司在线| 久久97超碰色| 国产精品国产三级国产普通话蜜臀| 成人h精品动漫一区二区三区| 亚洲精品中文字幕乱码三区 | 亚洲一区免费视频| 欧美成va人片在线观看| 国产大陆a不卡| 一区二区免费在线| 日韩美女在线视频| 成人性生交大片免费看中文网站 | 天天综合天天综合色| 久久综合色婷婷| 色丁香久综合在线久综合在线观看| 亚洲大片免费看| 久久中文字幕电影| 99久久精品免费| 美腿丝袜亚洲色图| 国产精品国产三级国产普通话99 | 国产三级一区二区三区| 在线精品亚洲一区二区不卡| 美女一区二区视频| 亚洲欧美一区二区三区久本道91 | 亚洲成av人片在www色猫咪| 欧美tickling挠脚心丨vk| 91免费国产在线| 国产在线不卡一区| 亚洲综合色区另类av| 欧美精品一区二区久久久| 色婷婷激情综合| 福利一区二区在线| 日韩国产在线观看一区| 成人欧美一区二区三区| 日韩精品最新网址| 91福利在线看| 国产盗摄一区二区三区| 日韩国产成人精品| 一区二区在线观看不卡| 久久亚洲精精品中文字幕早川悠里| 欧美在线制服丝袜| 9i看片成人免费高清| 欧洲精品中文字幕| 丁香网亚洲国际| 国产呦萝稀缺另类资源| 日韩高清一区在线| 一区二区三区久久| 中文字幕一区二区三区不卡| 欧美mv和日韩mv国产网站| 欧美日韩一二三| 色猫猫国产区一区二在线视频| 国产精选一区二区三区| 久久电影国产免费久久电影| 五月天视频一区| 亚洲成人激情社区| 亚洲成人免费视| 亚洲一区日韩精品中文字幕| 亚洲免费av高清| 亚洲欧洲综合另类| 亚洲人午夜精品天堂一二香蕉| 亚洲国产成人私人影院tom| 久久免费视频色| 欧美不卡一区二区三区四区| 欧美一卡二卡在线| 日韩午夜精品电影| 日韩欧美一区中文| 欧美一区二区三区视频在线 | 日韩精品一区国产麻豆| 欧美岛国在线观看| 26uuu久久天堂性欧美| 日韩精品中午字幕| 精品国产亚洲在线| 国产亚洲精品福利| 欧美激情综合五月色丁香| 国产精品热久久久久夜色精品三区 | 中文字幕色av一区二区三区| 国产精品乱码妇女bbbb| 亚洲欧美综合色| 成人激情免费电影网址| av不卡一区二区三区| 91国产成人在线| 91精品欧美福利在线观看| 日韩视频一区二区三区在线播放| 欧美tk丨vk视频| 国产精品少妇自拍| 亚洲女与黑人做爰| 亚洲国产毛片aaaaa无费看| 日韩av网站在线观看| 国产一区二区0| 91蜜桃免费观看视频| 欧美无砖专区一中文字| 日韩免费高清av| 亚洲欧洲www| 日韩国产成人精品| 成年人网站91| 欧美人xxxx| 欧美国产精品一区| 亚洲国产三级在线| 国产精品自拍网站| 在线观看精品一区| 欧美精品一区二区三| 亚洲精品ww久久久久久p站| 美女脱光内衣内裤视频久久影院| 国产高清在线精品| 欧美日韩中文精品| 日本一区二区高清| 日韩黄色小视频| 不卡一区在线观看| 欧美一区二区三区不卡| 国产精品久久久久久久久晋中| 日韩成人精品在线观看| av日韩在线网站| 精品国产自在久精品国产| 亚洲免费观看在线视频| 久久99日本精品| 欧美色中文字幕| 国产精品不卡一区二区三区| 奇米四色…亚洲| 在线观看三级视频欧美| 久久久久久久免费视频了| 天堂在线一区二区| 91在线观看免费视频| 2欧美一区二区三区在线观看视频| 亚洲美女少妇撒尿| 大白屁股一区二区视频| 91精品国产色综合久久ai换脸| 亚洲欧美在线观看| 国产成人午夜片在线观看高清观看| 在线观看一区二区精品视频| 国产精品丝袜黑色高跟| 久久国产精品99久久久久久老狼 | 精品剧情在线观看| 怡红院av一区二区三区| 国产成人午夜精品影院观看视频 | 久久九九99视频| 久久99久久久欧美国产| 欧美日韩日日夜夜| 一级做a爱片久久| 99re热视频精品| 中文字幕中文字幕一区二区| 国产精品一线二线三线精华| 日韩欧美电影一区| 天使萌一区二区三区免费观看| 在线观看三级视频欧美| 有码一区二区三区| 91蜜桃免费观看视频| 亚洲精品视频自拍| 在线看国产日韩| 五月婷婷综合在线| 亚洲精品视频观看| 99re热视频精品|