lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /*******************************************************************************
|
| 2 | * Copyright (C) 2007, ZTE Corporation.
|
| 3 | *
|
| 4 | * File Name: icu_irq.h
|
| 5 | * File Mark:
|
| 6 | * Description:
|
| 7 | * Others:
|
| 8 | * Version: v0.5
|
| 9 | * Author: wangxia
|
| 10 | * Date: 2008-1-5
|
| 11 | * History 1:
|
| 12 | * Date:
|
| 13 | * Version:
|
| 14 | * Author:
|
| 15 | * Modification:
|
| 16 | * History 2:
|
| 17 | ********************************************************************************/
|
| 18 |
|
| 19 | #if !defined (_ICU_IRQ_H)
|
| 20 | #define _ICU_IRQ_H
|
| 21 |
|
| 22 | #ifndef _OS_WIN
|
| 23 | #include "cpu_intlock.h" /* intrruput enable/disable */
|
| 24 | /*
|
| 25 | #define ICU_Disable_IRQ() unsigned long msr;\
|
| 26 | LOCK_SAVE(msr);*/
|
| 27 |
|
| 28 | #define ICU_Disable_IRQ() LOCK_SAVE(msr);
|
| 29 |
|
| 30 | #define ICU_Enable_IRQ() LOCK_RESTORE(msr);
|
| 31 |
|
| 32 | #else
|
| 33 | #define ICU_Disable_IRQ()
|
| 34 | #define ICU_Enable_IRQ()
|
| 35 |
|
| 36 | #endif
|
| 37 | #endif /* _ICU_IRQ_H*/ |