Quellcode durchsuchen

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

always saves 32 bits).
tags/v0.9.3
Michael Brown vor 19 Jahren
Ursprung
Commit
2fa14f2f1d
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      src/arch/i386/transitions/librm.S

+ 1
- 1
src/arch/i386/transitions/librm.S Datei anzeigen

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

Laden…
Abbrechen
Speichern