Subject: Re: CLI and STI for XEN
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: David Laight <david@l8s.co.uk>
List: port-amd64
Date: 12/03/2007 22:38:52
On Mon, Dec 03, 2007 at 11:05:49PM +0100, Manuel Bouyer wrote:
> 
> It works. But please keep the 2 registers as macro arguments, even if only
> one is used for now: I may need a STIC() in the future, and this one would
> need 2 arguments.

But why would a STIC() having 2 args force STI() and CLI() to have 2 args?

The only thing I can think of is something like:

#define action(sti_stic, reg1, reg2) \
	... \
	sti_stic(reg1, reg2) \
	...

which could be called:
	action(STI, si, di)
or
	action(STIC, ax, 10)

But that is rather silly since STIC() would be followed by some
conditional jump.

	David

-- 
David Laight: david@l8s.co.uk