X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Floader.S;fp=src%2Fthreads%2Floader.S;h=b7842d3840743c6f25ab0bceaafcbd97e74e65fd;hb=fc645de2c1499c0069ba0bb76240a5d93c94717b;hp=ca79cdfda730cf75ba173750feb1aa76d0776bc2;hpb=e928b6a40e8bd2ef7cd5c033ba59939c7396088b;p=pintos-anon 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