Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
This commit is contained in:
commit
1eadf4a8fc
2 changed files with 3 additions and 5 deletions
7
entry.S
7
entry.S
|
@ -17,8 +17,7 @@
|
|||
#include "asm.h"
|
||||
#include "memlayout.h"
|
||||
#include "mmu.h"
|
||||
|
||||
#define STACK 4096
|
||||
#include "param.h"
|
||||
|
||||
# Multiboot header. Data to direct multiboot loader.
|
||||
.p2align 2
|
||||
|
@ -52,7 +51,7 @@ entry:
|
|||
movl %eax, %cr0
|
||||
|
||||
# Set up the stack pointer.
|
||||
movl $(stack + STACK), %esp
|
||||
movl $(stack + KSTACKSIZE), %esp
|
||||
|
||||
# Jump to main(), and switch to executing at
|
||||
# high addresses. The indirect call is needed because
|
||||
|
@ -61,4 +60,4 @@ entry:
|
|||
mov $main, %eax
|
||||
jmp *%eax
|
||||
|
||||
.comm stack, STACK
|
||||
.comm stack, KSTACKSIZE
|
||||
|
|
1
x86.h
1
x86.h
|
@ -170,7 +170,6 @@ xchg(volatile uint *addr, uint newval)
|
|||
return result;
|
||||
}
|
||||
|
||||
//PAGEBREAK!
|
||||
static inline void
|
||||
lcr0(uint val)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue