pagesize.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright 2010 Tilera Corporation. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation, version 2.
  7. *
  8. * This program is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
  11. * NON INFRINGEMENT. See the GNU General Public License for
  12. * more details.
  13. */
  14. /**
  15. * @file pagesize.h
  16. */
  17. #ifndef _HV_PAGESIZE_H
  18. #define _HV_PAGESIZE_H
  19. /** The log2 of the size of small pages, in bytes. This value should
  20. * be verified at runtime by calling hv_sysconf(HV_SYSCONF_PAGE_SIZE_SMALL).
  21. */
  22. #define HV_LOG2_PAGE_SIZE_SMALL 16
  23. /** The log2 of the size of large pages, in bytes. This value should be
  24. * verified at runtime by calling hv_sysconf(HV_SYSCONF_PAGE_SIZE_LARGE).
  25. */
  26. #define HV_LOG2_PAGE_SIZE_LARGE 24
  27. #endif /* _HV_PAGESIZE_H */