xv6/bootmain.c File Reference

#include "types.h"
#include "elf.h"
#include "x86.h"

Go to the source code of this file.

Defines

#define SECTSIZE   512

Functions

void readseg (uchar *, uint, uint)
void bootmain (void)
void waitdisk (void)
void readsect (void *dst, uint offset)


Define Documentation

#define SECTSIZE   512

Definition at line 12 of file bootmain.c.

Referenced by readsect(), and readseg().


Function Documentation

void bootmain ( void   ) 

void readsect ( void *  dst,
uint  offset 
)

Definition at line 59 of file bootmain.c.

References insl(), outb(), SECTSIZE, and waitdisk().

Referenced by readseg().

void readseg ( uchar va,
uint  count,
uint  offset 
)

Definition at line 78 of file bootmain.c.

References readsect(), and SECTSIZE.

Referenced by bootmain().

void waitdisk ( void   ) 

Definition at line 50 of file bootmain.c.

References inb().

Referenced by readsect().


Generated on Fri Jan 7 12:25:49 2011 for xv6 by  doxygen 1.5.6