Retro Rocket Kernel BASIC-Powered Operating System

Macros | Functions
apic.h File Reference

## Macros
#define | APIC_ADDRESS 0x4000
#define | APIC_BASE_MSR 0x1B
#define | APIC_BASE_MSR_ENABLE 0x800
#define | APIC_ID 0x0020
#define | APIC_VERSION 0x0030

## Functions
uint32_t | apic_read (uint64_t reg)
void | apic_write (uint64_t reg, uint32_t value)
uint8_t | cpu_id ()

## Detailed Description

Author
  Craig Edwards (craig.nosp@m.edwa.nosp@m.rds@b.nosp@m.rain.nosp@m.box.c.nosp@m.c)

Copyright
  Copyright (c) 2012-2023

## Macro Definition Documentation

## ◆ APIC_ADDRESS

#define APIC_ADDRESS 0x4000

## ◆ APIC_BASE_MSR

#define APIC_BASE_MSR 0x1B

## ◆ APIC_BASE_MSR_ENABLE

#define APIC_BASE_MSR_ENABLE 0x800

## ◆ APIC_ID

#define APIC_ID 0x0020

## ◆ APIC_VERSION

#define APIC_VERSION 0x0030

## Function Documentation

## ◆ apic_read()

uint32_t apic_read | ( | uint64_t | reg | ) |

## ◆ apic_write()

void apic_write | ( | uint64_t | reg,
|  | uint32_t | value
| ) |  |

## ◆ cpu_id()

uint8_t cpu_id | ( |  | ) |