Andi Kleen wrote:
>> @@ -264,13 +270,64 @@ struct thread_struct {
>> set_fs(USER_DS); \
>> } while(0)
>>
>> -#define get_debugreg(var, register) \
>> - __asm__("movq %%db" #register ", %0" \
>> - :"=r" (var))
>> -#define set_debugreg(value, register) \
>> - __asm__("movq %0,%%db" #register \
>> - : /* no output */ \
>> - :"r" (value))
>> +static inline unsigned long native_get_debugreg(int regno)
>> +{
>> + unsigned long val;
>>
>
> It would be better to have own functions for each debug register I think
>
? A separate pvop for each? Seems excessive. And surely this should
be identical to 32bit either way.
J
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]