From fc645de2c1499c0069ba0bb76240a5d93c94717b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 14 Jun 2006 16:00:20 +0000 Subject: [PATCH] Add some comments. From chris@seberino.org. --- src/threads/loader.S | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/threads/loader.S b/src/threads/loader.S index ca79cdf..b7842d3 100644 --- a/src/threads/loader.S +++ b/src/threads/loader.S @@ -56,14 +56,16 @@ #define CR0_PG 0x80000000 /* Paging. */ #define CR0_WP 0x00010000 /* Write-Protect enable in kernel mode. */ -# Code runs in real mode, which is a 16-bit segment. .globl start start: + +# Code runs in real mode, which is a 16-bit segment. .code16 -# Disable interrupts. -# String instructions go upward. +# Disable interrupts, because we will not be prepared to handle them +# in protected mode until much later. +# String instructions go upward (e.g. for "rep stosl" below). cli cld -- 2.30.2