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>
UINT16 Data;\r
\r
__asm__ __volatile__ (\r
- "mov %%ds, %0"\r
+ "mov %%ss, %0"\r
:"=a" (Data)\r
);\r
\r
UINT16 Data;\r
\r
__asm__ __volatile__ (\r
- "mov %%ds, %0"\r
+ "mov %%ss, %0"\r
:"=a" (Data)\r
);\r
\r