On Thu,  8 Apr 2010 19:10:52 -0400, Matt Turner <[email protected]> wrote:

> -#define GET_HIGH_BASE(x) (((V_BIOS + (x) + getpagesize() - 1)/getpagesize()) 
> \
> -                              * getpagesize())
> +#define GET_HIGH_BASE(x) (ALIGN(V_BIOS + (x), getpagesize()))
>  #endif

Note that this assumes getpagesize will return a power of two.

-- 
[email protected]

Attachment: pgpDNYgj7LhHb.pgp
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to