📄 intr.h
字号:
/*
===============================================================================
| 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)
/*===========================================================================*/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -