/******************************************************************************* | |
* Copyright (C) 2007, ZTE Corporation. | |
* | |
* File Name: icu_irq.h | |
* File Mark: | |
* Description: | |
* Others: | |
* Version: v0.5 | |
* Author: wangxia | |
* Date: 2008-1-5 | |
* History 1: | |
* Date: | |
* Version: | |
* Author: | |
* Modification: | |
* History 2: | |
********************************************************************************/ | |
#if !defined (_ICU_IRQ_H) | |
#define _ICU_IRQ_H | |
#ifndef _OS_WIN | |
#include "cpu_intlock.h" /* intrruput enable/disable */ | |
/* | |
#define ICU_Disable_IRQ() unsigned long msr;\ | |
LOCK_SAVE(msr);*/ | |
#define ICU_Disable_IRQ() LOCK_SAVE(msr); | |
#define ICU_Enable_IRQ() LOCK_RESTORE(msr); | |
#else | |
#define ICU_Disable_IRQ() | |
#define ICU_Enable_IRQ() | |
#endif | |
#endif /* _ICU_IRQ_H*/ |