mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 01:11:03 +08:00
[HALX86] HalpBiosDisplayReset: Return x86BiosCall result (#5513)
This commit is contained in:
@@ -502,22 +502,19 @@ HalpBiosDisplayReset(VOID)
|
||||
#if 0
|
||||
X86_BIOS_REGISTERS Registers;
|
||||
ULONG OldEflags;
|
||||
BOOLEAN Success;
|
||||
|
||||
/* Save flags and disable interrupts */
|
||||
OldEflags = __readeflags();
|
||||
_disable();
|
||||
|
||||
/* Set AH = 0 (Set video mode), AL = 0x12 (640x480x16 vga) */
|
||||
Registers.Eax = 0x12;
|
||||
|
||||
/* Call INT 0x10 */
|
||||
x86BiosCall(0x10, &Registers);
|
||||
|
||||
// FIXME: check result
|
||||
/* Call INT 0x10, AH = 0 (Set video mode), AL = 0x12 (640x480x16 VGA) */
|
||||
Registers.Eax = 0x0012;
|
||||
Success = x86BiosCall(0x10, &Registers);
|
||||
|
||||
/* Restore previous flags */
|
||||
__writeeflags(OldEflags);
|
||||
return TRUE;
|
||||
return Success;
|
||||
#else
|
||||
/* This x64 HAL does NOT currently handle display reset (TODO) */
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user