diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-04-05 22:27:04 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-04-05 22:27:04 -0700 |
commit | ccf5d04af219e88c25afaae5271ee2b87fa11d8b (patch) | |
tree | 7b26d8b36d6125ffed0c34f473feedc9cf1d10eb | |
parent | 64b2391e174bb029322d6e9c88cc52003dd62839 (diff) | |
download | klibc-ccf5d04af219e88c25afaae5271ee2b87fa11d8b.tar.gz |
[klibc] x86: the memory version of bit scan is weird, don't use it.klibc-1.3.3
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | klibc/libc_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klibc/libc_init.c b/klibc/libc_init.c index 2411d80c85624..68ea179acc3e1 100644 --- a/klibc/libc_init.c +++ b/klibc/libc_init.c @@ -93,7 +93,7 @@ __noreturn __libc_init(uintptr_t *elfdata, void (*onexit)(void)) /* unsigned int is 32 bits on all our architectures */ page_shift = __builtin_clz(page_size) ^ 31; #elif defined(__i386__) || defined(__x86_64__) - asm("bsrl %1,%0" : "=r" (page_shift) : "rm" (page_size)); + asm("bsrl %1,%0" : "=r" (page_shift) : "r" (page_size)); #else while ( page_size > 1 ) { page_shift++; |