login
Header Space

 
 

Re: [RFC] x86: bitops asm constraint fixes

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jan Beulich <jbeulich@...>
Cc: <mingo@...>, <tglx@...>, <hpa@...>, <linux-kernel@...>
Date: Friday, March 14, 2008 - 5:07 pm

On 03/13/2008 05:08 AM, Jan Beulich wrote:

This is a long-standing bug and your patch appears to fix it.


Can't you just do everything with unsigned longs, like this?

In include/asm-x86/types.h:

 ifdef CONFIG_X86_32
 # define BITS_PER_LONG 32
+# define BITMAP_ORDER 5
 #else
 # define BITS_PER_LONG 64
+# define BITMAP_ORDER 6
 #endif

Then:


No need for BASE_ADDR that way (or ADDR could be renamed to that.)
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] x86: bitops asm constraint fixes, Jan Beulich, (Thu Mar 13, 5:08 am)
Re: [RFC] x86: bitops asm constraint fixes, Ingo Molnar, (Fri Mar 21, 9:54 am)
Re: [RFC] x86: bitops asm constraint fixes, Chuck Ebbert, (Fri Mar 14, 5:07 pm)
Re: [RFC] x86: bitops asm constraint fixes, Jan Beulich, (Mon Mar 17, 5:16 am)
Re: [RFC] x86: bitops asm constraint fixes, H. Peter Anvin, (Wed Mar 19, 9:19 am)
Re: [RFC] x86: bitops asm constraint fixes, Jeremy Fitzhardinge, (Fri Mar 14, 2:56 pm)
Re: [RFC] x86: bitops asm constraint fixes, Jan Beulich, (Mon Mar 17, 5:08 am)
Re: [RFC] x86: bitops asm constraint fixes, H. Peter Anvin, (Fri Mar 14, 3:51 am)
Re: [RFC] x86: bitops asm constraint fixes, Jan Beulich, (Fri Mar 14, 4:09 am)
speck-geostationary