intr.h
来自「r&s1.10版本+文档是国内一个自主开发的操作系统还在升级完善中」· C头文件 代码 · 共 40 行
H
40 行
/*
===============================================================================
| Copyright (C) 2004 RuanHaiShen, All rights reserved.
| SUMMARY:
| Interrupt and clock support.
|
| DESCRIPTION:
| See http://www.01s.org for documentation, latest information, license
| and contact details.
| email:ruanhaishen@01s.org
=============================================================================*/
#ifndef __arch_intr_h__
#define __arch_intr_h__
/*===========================================================================*/
#define disable_irq() asm { cli }
#define CRITICAL_ENTER asm { pushf; cli }
#define CRITICAL_EXIT asm { popf }
#define TICKS_PER_SEC 200
#define __dos_tick() asm int 0x81
#define __eoi_to_8259a() \
do { \
asm { \
mov al, 0x20; \
mov dx, 0x20; \
out dx, al; \
} \
} while (0)
/*contex.asm-------------------------------------------------------*/
void __timer_intr_s(void);
/*===========================================================================*/
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?