Slowly continuing the work
This commit is contained in:
parent
38775a235f
commit
bfd0595926
|
@ -2,6 +2,7 @@
|
|||
#define _S_INTR_H_
|
||||
|
||||
#include "g_abi.h"
|
||||
#include "g_type.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
|
@ -61,7 +61,7 @@ void KAPI hal_issue_interrupt(uint32_t target_core, uint32_t vector)
|
|||
// TODO
|
||||
}
|
||||
|
||||
void KAPI hal_register_interrupt_handler(uint32_t index, k_intr_handler_t handler, void* context)
|
||||
void KAPI hal_register_interrupt_handler(uint32_t index, hal_intr_handler_t handler, void* context)
|
||||
{
|
||||
if (index < IDT_ENTRY_NUM && index >= 0)
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef _HAL_IO_H_
|
||||
#define _HAL_IO_H_
|
||||
|
||||
#include "s_intr.h"
|
||||
#include <s_intr.h>
|
||||
#include "g_abi.h"
|
||||
#include "g_type.h"
|
||||
|
||||
|
@ -31,6 +31,8 @@
|
|||
#define APIC_LVT_LINT1_REG 0x360
|
||||
#define APIC_LVT_ERROR_REG 0x370
|
||||
|
||||
typedef k_intr_handler_t hal_intr_handler_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
const uint64_t rip;
|
||||
|
@ -554,7 +556,7 @@ extern void KAPI hal_interrupt_handler_254(void);
|
|||
|
||||
extern void KAPI hal_interrupt_handler_255(void);
|
||||
|
||||
void KAPI hal_register_interrupt_handler(uint32_t index, k_intr_handler_t handler, void* context);
|
||||
void KAPI hal_register_interrupt_handler(uint32_t index, hal_intr_handler_t handler, void* context);
|
||||
|
||||
void KAPI hal_deregister_interrupt_handler(uint32_t index);
|
||||
|
||||
|
|
Loading…
Reference in New Issue