Re: [edk2] question about InitInterruptDescriptorTable()function in CpuDxe.c

2014-10-29 Thread Fan, Jeff
DxeMain.c. From: tiger...@via-alliance.com [mailto:tiger...@via-alliance.com] Sent: Thursday, October 30, 2014 11:38 AM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] question about InitInterruptDescriptorTable()function in CpuDxe.c Hi, Jeff: MdeModulePkg\Core\DxeIplPeim\Ia32\DxeLoadFunc.c

Re: [edk2] question about InitInterruptDescriptorTable()function in CpuDxe.c

2014-10-29 Thread TigerLiu
via-alliance.com] Sent: Thursday, October 30, 2014 11:10 AM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] question about InitInterruptDescriptorTable() function in CpuDxe.c Hi, Andrew: Thanks for your reply! So, I made a conclusion: If OldIdtSize > = 32, even below code not run, it’

Re: [edk2] question about InitInterruptDescriptorTable() function in CpuDxe.c

2014-10-29 Thread Fan, Jeff
day, October 30, 2014 11:10 AM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] question about InitInterruptDescriptorTable() function in CpuDxe.c Hi, Andrew: Thanks for your reply! So, I made a conclusion: If OldIdtSize > = 32, even below code not run, it’s aslo ok? // for

Re: [edk2] question about InitInterruptDescriptorTable() function in CpuDxe.c

2014-10-29 Thread TigerLiu
Hi, Andrew: Thanks for your reply! So, I made a conclusion: If OldIdtSize > = 32, even below code not run, it’s aslo ok? // for (Index = OldIdtSize; Index < 32; Index++) { Status = CpuRegisterInterruptHandler (&gCpu, Index, CommonExceptionHandler); ASSERT_EFI_ERROR (Status);

Re: [edk2] question about InitInterruptDescriptorTable() function in CpuDxe.c

2014-10-29 Thread Fan, Jeff
: Andrew Fish [mailto:af...@apple.com] Sent: Thursday, October 30, 2014 10:25 AM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] question about InitInterruptDescriptorTable() function in CpuDxe.c On Oct 29, 2014, at 7:19 PM, tiger...@via-alliance.com<mailto:tiger...@via-alliance.com>

Re: [edk2] question about InitInterruptDescriptorTable() function in CpuDxe.c

2014-10-29 Thread Andrew Fish
> On Oct 29, 2014, at 7:19 PM, tiger...@via-alliance.com wrote: > > Hi, experts: > I am confused by some codes in InitInterruptDescriptorTable() function (in > UefiCpuPkg/CpuDxe/CpuDxe.c). > …… > if ((OldIdtPtr.Base != 0) && ((OldIdtPtr.Limit & 7) == 7)) { > // Based on my understanding, becau

[edk2] question about InitInterruptDescriptorTable() function in CpuDxe.c

2014-10-29 Thread TigerLiu
Hi, experts: I am confused by some codes in InitInterruptDescriptorTable() function (in UefiCpuPkg/CpuDxe/CpuDxe.c). .. if ((OldIdtPtr.Base != 0) && ((OldIdtPtr.Limit & 7) == 7)) { // Based on my understanding, because DxeIpl has created IDT when switching from P-Mode to Long-Mode. // So