xv6/mp.c File Reference

#include "types.h"
#include "defs.h"
#include "param.h"
#include "mp.h"
#include "x86.h"
#include "mmu.h"
#include "proc.h"

Go to the source code of this file.

Functions

int mpbcpu (void)
static uchar sum (uchar *addr, int len)
static struct mpmpsearch1 (uchar *addr, int len)
static struct mpmpsearch (void)
static struct mpconfmpconfig (struct mp **pmp)
void mpinit (void)

Variables

struct cpu cpus [NCPU]
static struct cpubcpu
int ismp
int ncpu
uchar ioapicid


Function Documentation

int mpbcpu ( void   ) 

Definition at line 20 of file mp.c.

References cpus.

Referenced by mpmain().

static struct mpconf* mpconfig ( struct mp **  pmp  )  [static, read]

Definition at line 79 of file mp.c.

References mpconf::length, memcmp(), mpsearch(), mp::physaddr, sum(), and mpconf::version.

Referenced by mpinit().

void mpinit ( void   ) 

static struct mp* mpsearch ( void   )  [static, read]

Definition at line 55 of file mp.c.

References mpsearch1().

Referenced by mpconfig().

static struct mp* mpsearch1 ( uchar addr,
int  len 
) [static, read]

Definition at line 38 of file mp.c.

References e, and sum().

Referenced by mpsearch().

static uchar sum ( uchar addr,
int  len 
) [static]

Definition at line 26 of file mp.c.

Referenced by mpconfig(), and mpsearch1().


Variable Documentation

struct cpu* bcpu [static]

Definition at line 14 of file mp.c.

struct cpu cpus[NCPU]

Definition at line 13 of file mp.c.

Referenced by bootothers(), ksegment(), mpbcpu(), mpinit(), and mpmain().

Definition at line 17 of file mp.c.

Referenced by ioapicinit(), and mpinit().

int ismp

Definition at line 15 of file mp.c.

Referenced by ioapicenable(), ioapicinit(), mpinit(), and mpmain().

int ncpu

Definition at line 16 of file mp.c.

Referenced by bootothers(), ideinit(), and mpinit().


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