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:
Satoshi Tanda 2021-05-24 12:50:18 +08:00 committed by mergify[bot]
parent 75e9154f81
commit c410ad4da4
2 changed files with 2 additions and 2 deletions

View File

@ -902,7 +902,7 @@ AsmReadSs (
UINT16 Data;
__asm__ __volatile__ (
"mov %%ds, %0"
"mov %%ss, %0"
:"=a" (Data)
);

View File

@ -911,7 +911,7 @@ AsmReadSs (
UINT16 Data;
__asm__ __volatile__ (
"mov %%ds, %0"
"mov %%ss, %0"
:"=a" (Data)
);