[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v6 10/15] x86/boot: implement early command line parser in C



On Tue, Sep 20, 2016 at 04:05:12AM -0600, Jan Beulich wrote:
> >>> On 20.09.16 at 11:49, <daniel.kiper@xxxxxxxxxx> wrote:
> > Out of curiosity, could you outline in a few words your idea?
>
> Well, one approach would be something along the lines of
> the public headers errno.h and cpufeatureset.h: Have a helper
> header invoking some macro, where the macro arguments
> specify both the C and assembly representation. Prior to
> #include-ing the use sites would actually #define that macro,
> suitably using / omitting the use of the various parameters.
>
> Another would be to simply have a translation tool (at least
> old Windows SDKs [or DDKs] had something like that, h2inc
> I think).

Yep, I remember that there was such thing here and there.

> And then there would of course be the pretty obvious
> asm-offsets approach we're already using for other purposes.

I was thinking about that, however, I was not sure how to define
struct members in asm. Right now it seems to me that we could
use .skip/.space.

Thanks for explanation.

Daniel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.