coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
interrupt.c File Reference
#include <types.h>
#include "compat/rtas.h"
#include "biosemu.h"
#include "mem.h"
#include "device.h"
#include "debug.h"
#include "pmm.h"
#include "interrupt.h"
#include <x86emu/x86emu.h>
#include "../x86emu/prim_ops.h"
#include <device/pci.h>
#include <device/pci_ops.h>
Include dependency graph for interrupt.c:

Go to the source code of this file.

Functions

static void setupInt (int intNum)
 
static void handleInt10 (void)
 
static void translate_keycode (u64 *keycode)
 
static void handleInt16 (void)
 
static void handleInt1a (void)
 
void handleInterrupt (int intNum)
 
void runInt10 (void)
 
void runInt13 (void)
 

Variables

static u8 keycode_table [256]
 

Function Documentation

◆ handleInt10()

static void handleInt10 ( void  )
static

Definition at line 72 of file interrupt.c.

References CHECK_DBG, DEBUG_PRINT_INT10, DEBUG_PRINTF_INTR, HALT_SYS, M, my_rdb(), my_rdw(), my_wrb(), my_wrw(), and printf.

Referenced by handleInterrupt().

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

◆ handleInt16()

static void handleInt16 ( void  )
static

Definition at line 255 of file interrupt.c.

References c, CLEAR_FLAG, DEBUG_PRINTF, DEBUG_PRINTF_INTR, F_ZF, HALT_SYS, M, printf, SET_FLAG, and translate_keycode().

Referenced by handleInterrupt().

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

◆ handleInt1a()

◆ handleInterrupt()

void handleInterrupt ( int  intNum)

Definition at line 550 of file interrupt.c.

References DEBUG_PRINTF_INTR, HALT_SYS, handleInt10(), handleInt16(), handleInt1a(), M, my_rdl(), pmm_handleInt(), PMM_INT_NUM, printf, setupInt(), and yabel_intFuncArray.

Referenced by biosemu().

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

◆ runInt10()

◆ runInt13()

◆ setupInt()

static void setupInt ( int  intNum)
static

Definition at line 53 of file interrupt.c.

References CLEAR_FLAG, DEBUG_PRINTF_INTR, F_IF, F_TF, M, my_rdl(), my_rdw(), and push_word().

Referenced by handleInterrupt(), runInt10(), and runInt13().

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

◆ translate_keycode()

static void translate_keycode ( u64 keycode)
static

Definition at line 229 of file interrupt.c.

References keycode_table, and printf.

Referenced by handleInt16().

Here is the caller graph for this function:

Variable Documentation

◆ keycode_table

u8 keycode_table[256]
static

Definition at line 191 of file interrupt.c.

Referenced by translate_keycode().