[ccan] [PATCH] cpuid: new module
David Gibson
david at gibson.dropbear.id.au
Mon Sep 23 21:33:19 EST 2013
On Mon, Sep 23, 2013 at 05:32:15AM +0000, Ahmed Samy wrote:
> On Mon, Sep 23, 2013 at 1:15 AM, David Gibson
> <david at gibson.dropbear.id.au>wrote:
>
> > On Sat, Sep 21, 2013 at 09:48:16AM +0000, Ahmed Samy wrote:
> > > This module parses data provided by the cpuid instruction.
> > > It still needs more work, however, it works for most important
> > > stuff.
> > >
> > > Signed-off-by: Ahmed Samy <f.fallen45 at gmail.com>
> >
> > This needs some Makefile magic so that it's only compiled on x86
> > machines. Otherwise I expect it will break a full compile on anything
> > non-x86.
> >
> >
> By non x86 machines, did you mean x86_64 as well?
No, I mean things that are neither i386, nor x86_64.
> For a compiler magic, we can test with ${shell "arch -m"} maybe?
That might work. I don't know if ccan has support for
cross-compiling, in which case you'd need to check target arch, rather
than host arch.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/ccan/attachments/20130923/30b7ffeb/attachment-0001.sig>
More information about the ccan
mailing list