feat: added missing lapic code
This commit is contained in:
23
include/myke/cpu/lapic.h
Normal file
23
include/myke/cpu/lapic.h
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// Created by rick on 23-08-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_LAPIC_H
|
||||
#define NEW_KERNEL_LAPIC_H
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#define LAPIC_REG_ID 0x20
|
||||
#define LAPIC_REG_VERSION 0x30
|
||||
|
||||
void lapic_set_addr(uint32_t addr);
|
||||
|
||||
void lapic_write(uint32_t offset, uint32_t value);
|
||||
|
||||
uint32_t lapic_read(uint32_t offset);
|
||||
|
||||
uint32_t lapic_get_id();
|
||||
|
||||
uint32_t lapic_get_version();
|
||||
|
||||
#endif //NEW_KERNEL_LAPIC_H
|
||||
Reference in New Issue
Block a user