boot.c File Reference

#include <console/console.h>
#include <ip_checksum.h>
#include <boot/elf.h>
#include <boot/elf_boot.h>
#include <string.h>
#include <cpu/x86/multiboot.h>

Include dependency graph for boot.c:

Go to the source code of this file.

Defines

#define CMD_LINE   ""
#define UPSZ(X)   ((sizeof(X) + 3) &~3)

Functions

int elf_check_arch (Elf_ehdr *ehdr)
void jmp_to_elf_entry (void *entry, unsigned long buffer)

Variables

struct {
   Elf_Bhdr   hdr
   Elf_Nhdr   ft_hdr
   unsigned char   ft_desc [UPSZ(FIRMWARE_TYPE)]
   Elf_Nhdr   bl_hdr
   unsigned char   bl_desc [UPSZ(BOOTLOADER)]
   Elf_Nhdr   blv_hdr
   unsigned char   blv_desc [UPSZ(BOOTLOADER_VERSION)]
   Elf_Nhdr   cmd_hdr
   unsigned char   cmd_desc [UPSZ(CMD_LINE)]
elf_boot_notes


Define Documentation

#define CMD_LINE   ""

Definition at line 10 of file boot.c.

#define UPSZ (  )     ((sizeof(X) + 3) &~3)

Definition at line 15 of file boot.c.


Function Documentation

int elf_check_arch ( Elf_ehdr *  ehdr  ) 

Definition at line 61 of file boot.c.

Referenced by elfboot().

Here is the caller graph for this function:

void jmp_to_elf_entry ( void *  entry,
unsigned long  buffer 
)

Definition at line 71 of file boot.c.

Referenced by elfload().

Here is the caller graph for this function:


Variable Documentation

unsigned char bl_desc[UPSZ(BOOTLOADER)]

Definition at line 22 of file boot.c.

Definition at line 21 of file boot.c.

unsigned char blv_desc[UPSZ(BOOTLOADER_VERSION)]

Definition at line 24 of file boot.c.

Definition at line 23 of file boot.c.

unsigned char cmd_desc[UPSZ(CMD_LINE)]

Definition at line 26 of file boot.c.

Definition at line 25 of file boot.c.

struct { ... } elf_boot_notes [static]

Referenced by jmp_to_elf_entry().

unsigned char ft_desc[UPSZ(FIRMWARE_TYPE)]

Definition at line 20 of file boot.c.

Definition at line 19 of file boot.c.

Definition at line 18 of file boot.c.

Referenced by main(), print_option_table(), and process_elf_notes().


Generated on Mon Dec 29 10:54:23 2008 for coreboot by  doxygen 1.5.5