24 lines
398 B
C
24 lines
398 B
C
//
|
|
// 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
|