UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
bootasm.S File Reference
#include "asm.h"
#include "memlayout.h"
#include "mmu.h"

Go to the source code of this file.

Functions

disable xorw ax movw ds movw
es movw ss al al jnz seta20 al
outb al al jnz seta20 al outb
lgdt gdtdesc movl eax orl eax
movl cr0 
ljmp (SEG_KCODE<< 3)
 

Variables

code16 globl start start
 
disable xorw ax
 
disable xorw ax movw ds movw
es movw ss 
seta20
 
disable xorw ax movw ds movw
es movw ss al 
testb
 
disable xorw ax movw ds movw
es movw ss al al jnz seta20 
movb
 
disable xorw ax movw ds movw
es movw ss al al jnz seta20 al
outb 
al
 
disable xorw ax movw ds movw
es movw ss al al jnz seta20 al
outb al al jnz seta20 al outb
lgdt gdtdesc movl 
cr0
 
disable xorw ax movw ds movw
es movw ss al al jnz seta20 al
outb al al jnz seta20 al outb
lgdt gdtdesc movl eax orl 
$CR0_PE
 
disable xorw ax movw ds movw
es movw ss al al jnz seta20 al
outb al al jnz seta20 al outb
lgdt gdtdesc movl eax orl eax
movl 
eax
 
disable xorw ax movw ds movw
es movw ss al al jnz seta20 al
outb al al jnz seta20 al outb
lgdt gdtdesc movl eax orl eax
movl cr0 $start32 code32 
start32
 
disable xorw ax movw ds movw
es movw ss al al jnz seta20 al
outb al al jnz seta20 al outb
lgdt gdtdesc movl eax orl eax
movl cr0 $start32 code32 ax
movw ds movw es movw ss 
movw
 
disable xorw ax movw ds movw
es movw ss al al jnz seta20 al
outb al al jnz seta20 al outb
lgdt gdtdesc movl eax orl eax
movl cr0 $start32 code32 ax
movw ds movw es movw ss ax
movw fs movw gs movl 
$start
 
disable xorw ax movw ds movw
es movw ss al al jnz seta20 al
outb al al jnz seta20 al outb
lgdt gdtdesc movl eax orl eax
movl cr0 $start32 code32 ax
movw ds movw es movw ss ax
movw fs movw gs movl esp call
bootmain ax movw dx outw dx ax
outw dx 
spin
 

Function Documentation

disable xorw ax movw ds movw es movw ss al al jnz seta20 al outb al al jnz seta20 al outb lgdt gdtdesc movl eax orl eax movl cr0 ljmp ( SEG_KCODE<<  3)

Variable Documentation

disable xorw ax movw ds movw es movw ss al al jnz seta20 al outb al al jnz seta20 al outb lgdt gdtdesc movl eax orl $CR0_PE

Definition at line 16 of file bootasm.S.

disable xorw ax movw ds movw es movw ss al al jnz seta20 al outb al al jnz seta20 al outb lgdt gdtdesc movl eax orl eax movl cr0 $start32 code32 ax movw ds movw es movw ss ax movw fs movw gs movl $start

Definition at line 56 of file bootasm.S.

disable xorw ax movw ds movw es movw ss al al jnz seta20 al outb al al jnz seta20 al outb al

Definition at line 16 of file bootasm.S.

globl alltraps ax movw ds movw es ax movw fs movw ax

Definition at line 16 of file bootasm.S.

code16 globl start ax movw ds movw es movw ss lgdt gdtdesc movl eax orl eax movl cr0 start32 code32 ax movw ds movw es movw ss ax movw fs movw gs movl eax eax movl cr4 eax movl cr3 movl cr0

Definition at line 16 of file bootasm.S.

code16 globl start ax movw ds movw es movw ss lgdt gdtdesc movl eax orl eax movl cr0 start32 code32 ax movw ds movw es movw ss ax movw fs movw gs movl eax eax movl cr4 eax movl cr3 movl eax eax movl eax

Definition at line 16 of file bootasm.S.

disable xorw ax movw ds movw es movw ss al al jnz seta20 al outb al al jnz seta20 movb

Definition at line 16 of file bootasm.S.

code16 globl start ax movw ds movw es movw ss lgdt gdtdesc movl eax orl eax movl cr0 start32 code32 ax movw ds movw es movw ss ax movw fs movw gs movl eax eax movl cr4 eax movl cr3 movl eax eax movl cr0 esp call *start ax movw dx outw dx movw

Definition at line 56 of file bootasm.S.

disable xorw ax movw ds movw es movw ss al al jnz seta20 al outb seta20

Definition at line 16 of file bootasm.S.

disable xorw ax movw ds movw es movw ss al al jnz seta20 al outb al al jnz seta20 al outb lgdt gdtdesc movl eax orl eax movl cr0 $start32 code32 ax movw ds movw es movw ss ax movw fs movw gs movl esp call bootmain ax movw dx outw dx ax outw dx spin

Definition at line 56 of file bootasm.S.

code16 globl start start

Definition at line 13 of file bootasm.S.

disable xorw ax movw ds movw es movw ss al al jnz seta20 al outb al al jnz seta20 al outb lgdt gdtdesc movl eax orl eax movl cr0 $start32 code32 start32

Definition at line 56 of file bootasm.S.

disable xorw ax movw ds movw es movw ss al al jnz seta20 al outb al testb

Definition at line 16 of file bootasm.S.