www.pudn.com > r&s1.10°æ±¾£«Îĵµ.rar > 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)
/*contex.asm-------------------------------------------------------*/
void __timer_intr_s(void);
/*===========================================================================*/
#endif