#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 mp * | mpsearch1 (uchar *addr, int len) |
| static struct mp * | mpsearch (void) |
| static struct mpconf * | mpconfig (struct mp **pmp) |
| void | mpinit (void) |
Variables | |
| struct cpu | cpus [NCPU] |
| static struct cpu * | bcpu |
| int | ismp |
| int | ncpu |
| uchar | ioapicid |
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 | ) |
Definition at line 98 of file mp.c.
References mpproc::apicid, mpioapic::apicno, cprintf(), cpus, e, mpproc::flags, cpu::id, mp::imcrp, inb(), ioapicid, ismp, lapic, mpconf::lapicaddr, mpconf::length, MPBOOT, MPBUS, mpconfig(), MPIOAPIC, MPIOINTR, MPLINTR, MPPROC, ncpu, outb(), and panic().
Referenced by mpmain().
| static struct mp* mpsearch | ( | void | ) | [static, read] |
Definition at line 13 of file mp.c.
Referenced by bootothers(), ksegment(), mpbcpu(), mpinit(), and mpmain().
| int ismp |
Definition at line 15 of file mp.c.
Referenced by ioapicenable(), ioapicinit(), mpinit(), and mpmain().
1.5.6