From: jljusten Date: Mon, 4 Jan 2010 16:18:06 +0000 (+0000) Subject: OVMF VTF0 Reset Vector: Set 'accessed' bit in GDT descriptors X-Git-Tag: edk2-stable201903~16646 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=d22d1f535bd13dfa6c94d9ed61631813fe205c2f OVMF VTF0 Reset Vector: Set 'accessed' bit in GDT descriptors In some environments, the accessed bit should be set to allow the global descriptor table (GDT) to reside in unmodifiable flash memory. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9675 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/OvmfPkg/ResetVector/Bin/ResetVector.ia32.port80.raw b/OvmfPkg/ResetVector/Bin/ResetVector.ia32.port80.raw index b136e69af9..ad5f156b97 100644 Binary files a/OvmfPkg/ResetVector/Bin/ResetVector.ia32.port80.raw and b/OvmfPkg/ResetVector/Bin/ResetVector.ia32.port80.raw differ diff --git a/OvmfPkg/ResetVector/Bin/ResetVector.ia32.raw b/OvmfPkg/ResetVector/Bin/ResetVector.ia32.raw index f772255004..5761a75af6 100644 Binary files a/OvmfPkg/ResetVector/Bin/ResetVector.ia32.raw and b/OvmfPkg/ResetVector/Bin/ResetVector.ia32.raw differ diff --git a/OvmfPkg/ResetVector/Bin/ResetVector.ia32.serial.raw b/OvmfPkg/ResetVector/Bin/ResetVector.ia32.serial.raw index 7b17db95e3..779553e4ae 100644 Binary files a/OvmfPkg/ResetVector/Bin/ResetVector.ia32.serial.raw and b/OvmfPkg/ResetVector/Bin/ResetVector.ia32.serial.raw differ diff --git a/OvmfPkg/ResetVector/Bin/ResetVector.x64.port80.raw b/OvmfPkg/ResetVector/Bin/ResetVector.x64.port80.raw index 307fc666a5..5c9a7a3d54 100644 Binary files a/OvmfPkg/ResetVector/Bin/ResetVector.x64.port80.raw and b/OvmfPkg/ResetVector/Bin/ResetVector.x64.port80.raw differ diff --git a/OvmfPkg/ResetVector/Bin/ResetVector.x64.raw b/OvmfPkg/ResetVector/Bin/ResetVector.x64.raw index aff1447b99..b93599e174 100644 Binary files a/OvmfPkg/ResetVector/Bin/ResetVector.x64.raw and b/OvmfPkg/ResetVector/Bin/ResetVector.x64.raw differ diff --git a/OvmfPkg/ResetVector/Bin/ResetVector.x64.serial.raw b/OvmfPkg/ResetVector/Bin/ResetVector.x64.serial.raw index 3224e3f3b4..b7726e3a87 100644 Binary files a/OvmfPkg/ResetVector/Bin/ResetVector.x64.serial.raw and b/OvmfPkg/ResetVector/Bin/ResetVector.x64.serial.raw differ diff --git a/OvmfPkg/ResetVector/Ia16/16RealTo32Flat.asm b/OvmfPkg/ResetVector/Ia16/16RealTo32Flat.asm index 47e3c6d929..d4416ce85e 100644 --- a/OvmfPkg/ResetVector/Ia16/16RealTo32Flat.asm +++ b/OvmfPkg/ResetVector/Ia16/16RealTo32Flat.asm @@ -2,7 +2,7 @@ ; @file ; Transition from 16 bit real mode into 32 bit flat protected mode ; -; Copyright (c) 2008 - 2009, Intel Corporation +; Copyright (c) 2008 - 2010, Intel Corporation ; All rights reserved. This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. The full text of the license may be found at @@ -78,7 +78,7 @@ LINEAR_SEL equ $-GDT_BASE dw 0FFFFh ; limit 0xFFFFF dw 0 ; base 0 db 0 - db 092h ; present, ring 0, data, expand-up, writable + db 093h ; present, ring 0, data, expand-up, writable, accessed db 0CFh ; page-granular, 32-bit db 0 @@ -87,7 +87,7 @@ LINEAR_CODE_SEL equ $-GDT_BASE dw 0FFFFh ; limit 0xFFFFF dw 0 ; base 0 db 0 - db 09Ah ; present, ring 0, data, expand-up, writable + db 09Bh ; present, ring 0, data, expand-up, writable, accessed db 0CFh ; page-granular, 32-bit db 0 @@ -96,7 +96,7 @@ SYS_DATA_SEL equ $-GDT_BASE dw 0FFFFh ; limit 0xFFFFF dw 0 ; base 0 db 0 - db 092h ; present, ring 0, data, expand-up, writable + db 093h ; present, ring 0, data, expand-up, writable, accessed db 0CFh ; page-granular, 32-bit db 0 @@ -105,7 +105,7 @@ SYS_CODE_SEL equ $-GDT_BASE dw 0FFFFh ; limit 0xFFFFF dw 0 ; base 0 db 0 - db 09Ah ; present, ring 0, data, expand-up, writable + db 09Bh ; present, ring 0, data, expand-up, writable, accessed db 0CFh ; page-granular, 32-bit db 0