coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
x86.h File Reference
#include <arch/cpu.h>
Include dependency graph for x86.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  realmode_idt
 

Macros

#define REALMODE_BASE   ((void *)0x600)
 
#define FAKE_MEMORY_SIZE   (1024*1024)
 
#define INITIAL_EBDA_SEGMENT   0xF600
 
#define INITIAL_EBDA_SIZE   0x400
 

Functions

void x86_exception (struct eregs *info)
 
int int10_handler (void)
 
int int12_handler (void)
 
int int16_handler (void)
 
int int1a_handler (void)
 

Variables

unsigned char __idt_handler
 
unsigned int __idt_handler_size
 
unsigned char __realmode_code
 
unsigned int __realmode_code_size
 
unsigned int(* realmode_call )(u32 addr, u32 eax, u32 ebx, u32 ecx, u32 edx, u32 esi, u32 edi) asmlinkage
 
unsigned int(* realmode_interrupt )(u32 intno, u32 eax, u32 ebx, u32 ecx, u32 edx, u32 esi, u32 edi) asmlinkage
 

Macro Definition Documentation

◆ FAKE_MEMORY_SIZE

#define FAKE_MEMORY_SIZE   (1024*1024)

Definition at line 28 of file x86.h.

◆ INITIAL_EBDA_SEGMENT

#define INITIAL_EBDA_SEGMENT   0xF600

Definition at line 29 of file x86.h.

◆ INITIAL_EBDA_SIZE

#define INITIAL_EBDA_SIZE   0x400

Definition at line 30 of file x86.h.

◆ REALMODE_BASE

#define REALMODE_BASE   ((void *)0x600)

Definition at line 8 of file x86.h.

Function Documentation

◆ int10_handler()

int int10_handler ( void  )

Definition at line 23 of file x86_interrupts.c.

References BIOS_INFO, BIOS_WARNING, printk, X86_EAX, X86_EBX, X86_ECX, and X86_EDX.

Referenced by setup_interrupt_handlers().

Here is the caller graph for this function:

◆ int12_handler()

int int12_handler ( void  )

Definition at line 72 of file x86_interrupts.c.

References X86_EAX.

Referenced by setup_interrupt_handlers().

Here is the caller graph for this function:

◆ int16_handler()

int int16_handler ( void  )

Definition at line 78 of file x86_interrupts.c.

References BIOS_WARNING, printk, X86_EAX, and X86_EFLAGS.

Referenced by setup_interrupt_handlers().

Here is the caller graph for this function:

◆ int1a_handler()

◆ x86_exception()

void x86_exception ( struct eregs info)

Definition at line 378 of file exception.c.

References addr, ALIGN_DOWN, ARRAY_SIZE, BIOS_EMERG, CONFIG, cpu_index(), die(), info, lapicid(), length, MDUMP_SIZE, memcpy(), printk, and read_cr2().

Referenced by intXX_exception_handler().

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

Variable Documentation

◆ __idt_handler

unsigned char __idt_handler
extern

Referenced by write_idt_stub().

◆ __idt_handler_size

unsigned int __idt_handler_size
extern

◆ __realmode_code

unsigned char __realmode_code
extern

Referenced by setup_realmode_code().

◆ __realmode_code_size

unsigned int __realmode_code_size
extern

Referenced by setup_realmode_code().

◆ realmode_call

unsigned int(* realmode_call) (u32 addr, u32 eax, u32 ebx, u32 ecx, u32 edx, u32 esi, u32 edi) asmlinkage ( u32  addr,
u32  eax,
u32  ebx,
u32  ecx,
u32  edx,
u32  esi,
u32  edi 
)
extern

Definition at line 47 of file x86.c.

Referenced by run_bios(), and setup_realmode_code().

◆ realmode_interrupt

unsigned int(* realmode_interrupt) (u32 intno, u32 eax, u32 ebx, u32 ecx, u32 edx, u32 esi, u32 edi) asmlinkage ( u32  intno,
u32  eax,
u32  ebx,
u32  ecx,
u32  edx,
u32  esi,
u32  edi 
)
extern

Definition at line 50 of file x86.c.

Referenced by setup_realmode_code().