x86: Drop flag_is_changable() on x86_64
This doesn't build at present and is not used in a 64-bit build. Disable it for now. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
9097805067
commit
4b57414a62
|
@ -159,6 +159,8 @@ static inline unsigned int cpuid_edx(unsigned int op)
|
||||||
return edx;
|
return edx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !CONFIG_IS_ENABLED(X86_64)
|
||||||
|
|
||||||
/* Standard macro to see if a specific flag is changeable */
|
/* Standard macro to see if a specific flag is changeable */
|
||||||
static inline int flag_is_changeable_p(uint32_t flag)
|
static inline int flag_is_changeable_p(uint32_t flag)
|
||||||
{
|
{
|
||||||
|
@ -179,6 +181,7 @@ static inline int flag_is_changeable_p(uint32_t flag)
|
||||||
: "ir" (flag));
|
: "ir" (flag));
|
||||||
return ((f1^f2) & flag) != 0;
|
return ((f1^f2) & flag) != 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static inline void mfence(void)
|
static inline void mfence(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue