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

Go to the source code of this file.

Macros

#define magic   0x1badb002
 
#define flags   0
 

Functions

p2align text globl
multiboot_header eax 
orl (CR4_PSE)
 
p2align text globl
multiboot_header eax eax movl
cr4 
movl (V2P_WO(entrypgdir))
 
p2align text globl
multiboot_header eax eax movl
cr4 eax movl cr3 movl eax 
orl (CR0_PG|CR0_WP)
 
p2align text globl
multiboot_header eax eax movl
cr4 eax movl cr3 movl eax eax
movl cr0 
movl (stack+KSTACKSIZE)
 

Variables

p2align text globl multiboot_header multiboot_header
 
p2align text globl
multiboot_header eax eax movl 
eax
 
p2align text globl
multiboot_header eax eax movl
cr4 eax movl cr3 movl 
cr0
 
p2align text globl
multiboot_header eax eax movl
cr4 eax movl cr3 movl eax eax
movl cr0 esp mov 
$main
 
p2align text globl
multiboot_header eax eax movl
cr4 eax movl cr3 movl eax eax
movl cr0 esp mov eax jmp *eax
comm 
stack
 

Macro Definition Documentation

#define flags   0
#define magic   0x1badb002

Function Documentation

p2align text globl multiboot_header eax eax movl cr4 movl ( V2P_WO(entrypgdir )
p2align text globl multiboot_header eax eax movl cr4 eax movl cr3 movl eax eax movl cr0 movl ( stack KSTACKSIZE)
p2align text globl multiboot_header eax orl ( CR4_PSE  )
p2align text globl multiboot_header eax eax movl cr4 eax movl cr3 movl eax orl ( CR0_PG CR0_WP)

Variable Documentation

p2align text globl multiboot_header eax eax movl cr4 eax movl cr3 movl eax eax movl cr0 esp mov $main

Definition at line 61 of file entry.S.

p2align text globl multiboot_header eax eax movl cr4 eax movl cr3 movl cr0

Definition at line 48 of file entry.S.

p2align text globl multiboot_header eax eax movl cr4 eax movl cr3 movl eax eax movl eax

Definition at line 45 of file entry.S.

p2align text globl multiboot_header multiboot_header

Definition at line 43 of file entry.S.

p2align text globl multiboot_header eax eax movl cr4 eax movl cr3 movl eax eax movl cr0 esp mov eax jmp* eax comm stack

Definition at line 61 of file entry.S.