Show
Ignore:
Timestamp:
09/01/09 21:02:42 (3 years ago)
Author:
Pierre-Alexandre Meyer <pierre@…>
Children:
b247e81bb738358fef900aca1844e43f556c8e88
Parents:
2ba4440d04b2bd92c559b706f73a8ea2d288c4ee
git-committer:
Pierre-Alexandre Meyer <pierre@mouraf.org> / 2009-09-01T14:02:42Z-0700
Message:

gpllib: share PAGE_SIZE definition with cpuid.h

swsusp detection needs PAGE_SIZE. cpuid.h is actually already defining it.
Since both swsusp and cpuid are taken from the Linux kernel, it is a good idea to
share it (they really need to be equal).

We are going to rely on cpuid.h. Creating a page.h for this single definition seems
overkilling and the MMU is part of the CPU on x86 anyways.

Impact: fix compiler warning (redefinition).

Signed-off-by: Pierre-Alexandre Meyer <pierre@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • com32/gplinclude/disk/common.h

    rb3a797 r29fc5c  
    1818#include <stdint.h> 
    1919 
     20/* For PAGE_SIZE */ 
     21#include <cpuid.h> 
     22 
    2023#define SECTOR 512              /* bytes/sector */ 
    21  
    22 #undef PAGE_SIZE 
    23 #define PAGE_SIZE (1<<12) 
    2424 
    2525struct ebios_dapa {