xv6/x86.h File Reference
Go to the source code of this file.
|
Data Structures |
| struct | trapframe |
Functions |
| static uchar | inb (ushort port) |
| static void | insl (int port, void *addr, int cnt) |
| static void | outb (ushort port, uchar data) |
| static void | outw (ushort port, ushort data) |
| static void | outsl (int port, const void *addr, int cnt) |
| static void | stosb (void *addr, int data, int cnt) |
| static void | lgdt (struct segdesc *p, int size) |
| static void | lidt (struct gatedesc *p, int size) |
| static void | ltr (ushort sel) |
| static uint | readeflags (void) |
| static uint | xchg (volatile uint *addr, uint newval) |
| static void | loadgs (ushort v) |
| static void | cli (void) |
| static void | sti (void) |
Function Documentation
| static void cli |
( |
void |
|
) |
[inline, static] |
| static void insl |
( |
int |
port, |
|
|
void * |
addr, |
|
|
int |
cnt | |
|
) |
| | [inline, static] |
| static void lgdt |
( |
struct segdesc * |
p, |
|
|
int |
size | |
|
) |
| | [inline, static] |
| static void lidt |
( |
struct gatedesc * |
p, |
|
|
int |
size | |
|
) |
| | [inline, static] |
| static void loadgs |
( |
ushort |
v |
) |
[inline, static] |
| static void ltr |
( |
ushort |
sel |
) |
[inline, static] |
| static void outb |
( |
ushort |
port, |
|
|
uchar |
data | |
|
) |
| | [inline, static] |
Definition at line 22 of file x86.h.
Referenced by cgaputc(), ideinit(), idestart(), lapicstartap(), mpinit(), picinit(), picsetmask(), readsect(), timerinit(), uartinit(), and uartputc().
| static void outsl |
( |
int |
port, |
|
|
const void * |
addr, |
|
|
int |
cnt | |
|
) |
| | [inline, static] |
| static void outw |
( |
ushort |
port, |
|
|
ushort |
data | |
|
) |
| | [inline, static] |
Definition at line 28 of file x86.h.
| static uint readeflags |
( |
void |
|
) |
[inline, static] |
| static void sti |
( |
void |
|
) |
[inline, static] |
| static void stosb |
( |
void * |
addr, |
|
|
int |
data, |
|
|
int |
cnt | |
|
) |
| | [inline, static] |
| static uint xchg |
( |
volatile uint * |
addr, |
|
|
uint |
newval | |
|
) |
| | [inline, static] |