aboutsummaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
Diffstat (limited to 'boot')
-rw-r--r--boot/head.S41
1 files changed, 0 insertions, 41 deletions
diff --git a/boot/head.S b/boot/head.S
deleted file mode 100644
index 9118c20..0000000
--- a/boot/head.S
+++ /dev/null
@@ -1,41 +0,0 @@
- .set ALIGN, 1<<0
- .set MEMINFO, 1<<1
- .set GFXMODE, 1<<2 # this flag enables the graphics fields
- .set FLAGS, ALIGN | MEMINFO | GFXMODE
- .set MAGIC, 0x1BADB002 # multiboot magic
- .set CHECKSUM, -(MAGIC + FLAGS)
-
-.section .multiboot
- .align 4
-multiboot_header:
- .long MAGIC
- .long FLAGS
- .long CHECKSUM
- .long 0
- .long 0
- .long 0
- .long 0
- .long 0
- .long 0 # 1=text mode, 0=graphics mode
- .long 0 # screen width (don't care)
- .long 0 # screen height (don't care)
- .long 32 # screen BPP: MUST be 32
-
-.section .stack
-stack_bottom: # Stack grows up in addresses, so bottom is
- # lower in memory than the top
- .skip 32768 # 32KB stack
-stack_top:
-
-.section .text
- .global _start
-_start:
- cli
- movl $stack_top, %esp
- push %eax # multiboot magic
- push %ebx # multiboot header
- call main
-.Lhang: # Idle
- cli
- hlt
- jmp .Lhang