For some reason i386-elf-as doesn't like 512/4, so replace it by 128.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 13 Sep 2004 22:58:51 +0000 (22:58 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 13 Sep 2004 22:58:51 +0000 (22:58 +0000)
Actually, replace it by 256 and use insw instead of insl.

src/threads/loader.S

index 7dfb7e006f7d9bb2d3cdee074632741667a2a051..e87a6c6530a3c3b2550b9376c94750d25942d5e3 100644 (file)
@@ -253,9 +253,9 @@ read_sector:
 
 # Transfer sector.
 
-       movl $512 / 4, %ecx
+       movl $256, %ecx
        movl $0x1f0, %edx
-       rep insl
+       rep insw
 
 # Next sector.