瀏覽代碼

lgdt needs data32 prefix, otherwise it loads only 24 bits. (sgdt

always saves 32 bits).
tags/v0.9.3
Michael Brown 19 年之前
父節點
當前提交
2fa14f2f1d
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/arch/i386/transitions/librm.S

+ 1
- 1
src/arch/i386/transitions/librm.S 查看文件

@@ -287,7 +287,7 @@ EXPORT(real_to_prot):
287 287
 	pushl	%eax
288 288
 	
289 289
 	/* Restore protected-mode GDT */
290
-	lgdt	%ds:OFFSET(pm_gdt)
290
+	data32 lgdt	%ds:OFFSET(pm_gdt)
291 291
 
292 292
 	/* Switch to protected mode */
293 293
 	movl	%cr0, %eax

Loading…
取消
儲存