Xen Test Framework
Functions | Variables
apic.c File Reference

Basic x86 APIC driver. More...

#include <xtf/lib.h>
#include <arch/apic.h>
#include <arch/cpuid.h>
#include <arch/lib.h>
#include <arch/page.h>
+ Include dependency graph for apic.c:

Go to the source code of this file.

Functions

static enum apic_mode apicbase_to_mode (uint64_t apicbase)
 
int apic_init (enum apic_mode mode)
 Discover and initialise the local APIC to the requested mode. More...
 

Variables

enum apic_mode cur_apic_mode
 

Detailed Description

Basic x86 APIC driver.

Definition in file apic.c.

Function Documentation

◆ apicbase_to_mode()

static enum apic_mode apicbase_to_mode ( uint64_t  apicbase)
static

Definition at line 15 of file apic.c.

+ Here is the caller graph for this function:

◆ apic_init()

int apic_init ( enum apic_mode  mode)

Discover and initialise the local APIC to the requested mode.

May fail if there is no APIC, or the requested mode is not available.

Definition at line 33 of file apic.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ cur_apic_mode

enum apic_mode cur_apic_mode

Definition at line 13 of file apic.c.