coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
apic_timer.c File Reference
#include <stdint.h>
#include <console/console.h>
#include <delay.h>
#include <thread.h>
#include <cpu/x86/lapic.h>
Include dependency graph for apic_timer.c:

Go to the source code of this file.

Functions

void init_timer (void)
 
void udelay (u32 usecs)
 

Function Documentation

◆ init_timer()

void init_timer ( void  )

Definition at line 9 of file apic_timer.c.

References LAPIC_LVT_MASKED, LAPIC_LVT_TIMER_PERIODIC, LAPIC_LVTT, LAPIC_TDCR, LAPIC_TDR_DIV_1, LAPIC_TMICT, and lapic_write().

Referenced by udelay().

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

◆ udelay()

void udelay ( u32  usecs)

Definition at line 21 of file apic_timer.c.

References get_timer_fsb(), init_timer(), LAPIC_LVT_MASKED, LAPIC_LVT_TIMER_PERIODIC, LAPIC_LVTT, lapic_read(), LAPIC_TMCCT, thread_yield_microseconds(), timer_fsb, and value.

Here is the call graph for this function: