From: Ben Pfaff Date: Mon, 13 Sep 2004 22:58:51 +0000 (+0000) Subject: For some reason i386-elf-as doesn't like 512/4, so replace it by 128. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=527a14835e3b830b7a9d334cdde5e7dc2cc8cac0;p=pintos-anon For some reason i386-elf-as doesn't like 512/4, so replace it by 128. Actually, replace it by 256 and use insw instead of insl. --- diff --git a/src/threads/loader.S b/src/threads/loader.S index 7dfb7e0..e87a6c6 100644 --- a/src/threads/loader.S +++ b/src/threads/loader.S @@ -253,9 +253,9 @@ read_sector: # Transfer sector. - movl $512 / 4, %ecx + movl $256, %ecx movl $0x1f0, %edx - rep insl + rep insw # Next sector.