mirror of https://github.com/acidanthera/audk.git
MdePkg/BaseLib: Fix AsmReadSs() with GCC toolchain
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3405 AsmReadSs() in Ia32/GccInlinePriv.c and X64/GccInlinePriv.c return the DS segment selector value instead of SS. Signed-off-by: Satoshi Tanda <tanda.sat@gmail.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
75e9154f81
commit
c410ad4da4
|
@ -902,7 +902,7 @@ AsmReadSs (
|
|||
UINT16 Data;
|
||||
|
||||
__asm__ __volatile__ (
|
||||
"mov %%ds, %0"
|
||||
"mov %%ss, %0"
|
||||
:"=a" (Data)
|
||||
);
|
||||
|
||||
|
|
|
@ -911,7 +911,7 @@ AsmReadSs (
|
|||
UINT16 Data;
|
||||
|
||||
__asm__ __volatile__ (
|
||||
"mov %%ds, %0"
|
||||
"mov %%ss, %0"
|
||||
:"=a" (Data)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue