From dd13d207efd2c5de69623bd7fcfa22c1a0788fd3 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 15 Jul 2012 21:18:43 +0000 Subject: [PATCH] [FREELDR] Don't set the ebp register when doing INTs. We only need the output after the int and since the REGS structure is usually not fully initialized before calling Int386, we would load random values. This can cause crashes on VPC. Thanks to hbelusca fo testing. svn path=/trunk/; revision=56903 --- reactos/boot/freeldr/freeldr/arch/realmode/int386.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/boot/freeldr/freeldr/arch/realmode/int386.inc b/reactos/boot/freeldr/freeldr/arch/realmode/int386.inc index f629fad174a..8ff9e1596ce 100644 --- a/reactos/boot/freeldr/freeldr/arch/realmode/int386.inc +++ b/reactos/boot/freeldr/freeldr/arch/realmode/int386.inc @@ -47,7 +47,7 @@ Int386: mov edx, dword ptr cs:[BSS_RegisterSet + REGS_EDX] mov esi, dword ptr cs:[BSS_RegisterSet + REGS_ESI] mov edi, dword ptr cs:[BSS_RegisterSet + REGS_EDI] - mov ebp, dword ptr cs:[BSS_RegisterSet + REGS_EBP] + // Don't setup ebp, we only use it as output! /* Call the interrupt vector */ /*int Int386_vector*/