#include "types.h"#include "defs.h"#include "traps.h"#include "mmu.h"#include "x86.h"Go to the source code of this file.
Defines | |
| #define | ID (0x0020/4) |
| #define | VER (0x0030/4) |
| #define | TPR (0x0080/4) |
| #define | EOI (0x00B0/4) |
| #define | SVR (0x00F0/4) |
| #define | ENABLE 0x00000100 |
| #define | ESR (0x0280/4) |
| #define | ICRLO (0x0300/4) |
| #define | INIT 0x00000500 |
| #define | STARTUP 0x00000600 |
| #define | DELIVS 0x00001000 |
| #define | ASSERT 0x00004000 |
| #define | LEVEL 0x00008000 |
| #define | BCAST 0x00080000 |
| #define | ICRHI (0x0310/4) |
| #define | TIMER (0x0320/4) |
| #define | X1 0x0000000B |
| #define | PERIODIC 0x00020000 |
| #define | PCINT (0x0340/4) |
| #define | LINT0 (0x0350/4) |
| #define | LINT1 (0x0360/4) |
| #define | ERROR (0x0370/4) |
| #define | MASKED 0x00010000 |
| #define | TICR (0x0380/4) |
| #define | TCCR (0x0390/4) |
| #define | TDCR (0x03E0/4) |
| #define | IO_RTC 0x70 |
Functions | |
| static void | lapicw (int index, int value) |
| void | lapicinit (int c) |
| int | cpunum (void) |
| void | lapiceoi (void) |
| void | microdelay (int us) |
| void | lapicstartap (uchar apicid, uint addr) |
Variables | |
| volatile uint * | lapic |
| #define ASSERT 0x00004000 |
| #define BCAST 0x00080000 |
| #define DELIVS 0x00001000 |
| #define ENABLE 0x00000100 |
| #define EOI (0x00B0/4) |
| #define ERROR (0x0370/4) |
| #define ESR (0x0280/4) |
| #define ICRHI (0x0310/4) |
| #define ICRLO (0x0300/4) |
| #define INIT 0x00000500 |
| #define IO_RTC 0x70 |
| #define LEVEL 0x00008000 |
| #define LINT0 (0x0350/4) |
| #define LINT1 (0x0360/4) |
| #define MASKED 0x00010000 |
| #define PCINT (0x0340/4) |
| #define PERIODIC 0x00020000 |
| #define STARTUP 0x00000600 |
| #define SVR (0x00F0/4) |
| #define TDCR (0x03E0/4) |
| #define TICR (0x0380/4) |
| #define TIMER (0x0320/4) |
| #define TPR (0x0080/4) |
| #define VER (0x0030/4) |
| #define X1 0x0000000B |
| int cpunum | ( | void | ) |
Definition at line 94 of file lapic.c.
References cprintf(), FL_IF, ID, lapic, and readeflags().
Referenced by bootothers(), and ksegment().
| void lapiceoi | ( | void | ) |
| void lapicinit | ( | int | c | ) |
| static void lapicw | ( | int | index, | |
| int | value | |||
| ) | [static] |
| void microdelay | ( | int | us | ) |
Definition at line 38 of file lapic.c.
Referenced by cpunum(), lapiceoi(), lapicinit(), lapicw(), and mpinit().
1.5.6