diff options
Diffstat (limited to 'arch/x86/boot/boot.h')
-rw-r--r-- | arch/x86/boot/boot.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/x86/boot/boot.h b/arch/x86/boot/boot.h index bed9665cc7e0..bd49ec61255c 100644 --- a/arch/x86/boot/boot.h +++ b/arch/x86/boot/boot.h | |||
@@ -177,14 +177,6 @@ static inline void wrgs32(u32 v, addr_t addr) | |||
177 | } | 177 | } |
178 | 178 | ||
179 | /* Note: these only return true/false, not a signed return value! */ | 179 | /* Note: these only return true/false, not a signed return value! */ |
180 | static inline int memcmp(const void *s1, const void *s2, size_t len) | ||
181 | { | ||
182 | u8 diff; | ||
183 | asm("repe; cmpsb; setnz %0" | ||
184 | : "=qm" (diff), "+D" (s1), "+S" (s2), "+c" (len)); | ||
185 | return diff; | ||
186 | } | ||
187 | |||
188 | static inline int memcmp_fs(const void *s1, addr_t s2, size_t len) | 180 | static inline int memcmp_fs(const void *s1, addr_t s2, size_t len) |
189 | { | 181 | { |
190 | u8 diff; | 182 | u8 diff; |