2024-02-06 21:10:51 +08:00
|
|
|
#ifndef INTERRUPT_H
|
|
|
|
#define INTERRUPT_H 1
|
|
|
|
|
2024-03-10 01:27:42 +08:00
|
|
|
|
|
|
|
#ifdef __x86_64__
|
|
|
|
#include <kernel/arch/x86_64/interrupt.h>
|
|
|
|
#endif
|
|
|
|
|
2024-02-18 03:53:54 +08:00
|
|
|
/**
|
|
|
|
* @name interrupt_open
|
|
|
|
* @addindex 平台定制函数
|
|
|
|
*
|
|
|
|
* ```c
|
|
|
|
* void interrupt_open();
|
|
|
|
* ```
|
|
|
|
*
|
|
|
|
* 开启中断
|
|
|
|
*/
|
2024-02-06 21:10:51 +08:00
|
|
|
void interrupt_open();
|
2024-02-18 03:53:54 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @name interrupt_close
|
|
|
|
* @addindex 平台定制函数
|
|
|
|
*
|
|
|
|
* ```c
|
|
|
|
* void interrupt_close();
|
|
|
|
* ```
|
|
|
|
*
|
|
|
|
* 开启中断
|
|
|
|
*/
|
2024-02-06 21:10:51 +08:00
|
|
|
void interrupt_close();
|
|
|
|
|
2024-03-10 01:27:42 +08:00
|
|
|
/**
|
|
|
|
* @name interrupt_init
|
|
|
|
* @addindex 平台定制函数
|
|
|
|
*
|
|
|
|
* ```c
|
|
|
|
* void interrupt_init();
|
|
|
|
* ```
|
|
|
|
*
|
|
|
|
* 初始化中断功能。
|
|
|
|
*/
|
|
|
|
void interrupt_init();
|
|
|
|
|
2024-02-06 21:10:51 +08:00
|
|
|
#endif
|