lkml.org 
[lkml]   [2009]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 4 of 7] x86/paravirt: selectively save/restore regs around pvops calls
Date
On Thursday 29 January 2009 09:05:04 Jeremy Fitzhardinge wrote:
> +#define PV_SAVE_REGS(set) \
> + COND_PUSH(set, CLBR_RAX, rax); \
> + COND_PUSH(set, CLBR_RCX, rcx); \
> + COND_PUSH(set, CLBR_RDX, rdx); \
> + COND_PUSH(set, CLBR_RSI, rsi); \
> + COND_PUSH(set, CLBR_RDI, rdi); \
> + COND_PUSH(set, CLBR_R8, r8); \
> + COND_PUSH(set, CLBR_R9, r9); \
> + COND_PUSH(set, CLBR_R10, r10); \
> + COND_PUSH(set, CLBR_R11, r11)

It's kind of messy. Can we do something clever here with token pasting?

Cheers,
Rusty.


\
 
 \ /
  Last update: 2009-01-29 09:49    [W:0.171 / U:1.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site