home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3297 / structpte.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-07  |  624 b   |  28 lines

  1. #ifndef STRUCT_PTE_H
  2. #define STRUCT_PTE_H
  3.  
  4. #include "confneedartospte.h"
  5. #ifdef NEED_ARTOS_PTE_H
  6. #include <artos/pte.h>
  7. #include <sys/vm.h>
  8. #define ctob PAGEtoBYTES
  9. /*XXX: usrpt? */
  10. #define Usrptma Sysmap
  11. #define    btokmx(b)    (((caddr_t)(b) - (caddr_t)SYSBASE) / ZS_PAGESIZE)
  12. #define p_p0br p_p0b /* XXX: belongs in structproc */
  13. #define p_szpt p_szst /* XXX: belongs in structproc */
  14. #undef MIN
  15. #undef MAX
  16. #undef NBPG
  17. #undef PGOFSET
  18. #undef PGSHIFT
  19. #include <artos/param.h>
  20. #define NPTEPG (NBPG/sizeof(long))
  21. #define dtob(x) ((x) << 10)
  22. #include <artos/pte.h>
  23. #else
  24. #include <machine/pte.h> /* PG_V? PG_TYPE? */
  25. #endif
  26.  
  27. #endif
  28.