From bc8f16e2702004723f64f5f48f16d7a8065c8b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Wed, 1 Nov 2017 19:57:12 +0100 Subject: [PATCH] Also simplify the kernel code as much as possible. --- src/kernel/boot/boot.S | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/kernel/boot/boot.S b/src/kernel/boot/boot.S index b4a0a83..48c2123 100644 --- a/src/kernel/boot/boot.S +++ b/src/kernel/boot/boot.S @@ -1,4 +1,3 @@ -#include .intel_syntax noprefix .section .text @@ -7,27 +6,4 @@ _start: cli -mov ecx, eax - -// Print a red digit in the upper left corner to indicate the multiboot version -// If not loaded by multiboot, print an exclamation mark -cmp eax, MBOOT1_REPLY -je mboot1 -cmp eax, MBOOT2_REPLY -je mboot2 -mov eax, 0x0421 // Red exclamation point -jmp print - -mboot1: -mov eax, 0x0431 // Red 1 -jmp print - -mboot2: -mov eax, 0x0432 // Red 2 -jmp print - -print: -mov short [0xB8000], ax // Place in upper left corner - -// loop infinitely jmp $