home *** CD-ROM | disk | FTP | other *** search
- #ifndef STRUCT_PTE_H
- #define STRUCT_PTE_H
-
- #include "confneedartospte.h"
- #ifdef NEED_ARTOS_PTE_H
- #include <artos/pte.h>
- #include <sys/vm.h>
- #define ctob PAGEtoBYTES
- /*XXX: usrpt? */
- #define Usrptma Sysmap
- #define btokmx(b) (((caddr_t)(b) - (caddr_t)SYSBASE) / ZS_PAGESIZE)
- #define p_p0br p_p0b /* XXX: belongs in structproc */
- #define p_szpt p_szst /* XXX: belongs in structproc */
- #undef MIN
- #undef MAX
- #undef NBPG
- #undef PGOFSET
- #undef PGSHIFT
- #include <artos/param.h>
- #define NPTEPG (NBPG/sizeof(long))
- #define dtob(x) ((x) << 10)
- #include <artos/pte.h>
- #else
- #include <machine/pte.h> /* PG_V? PG_TYPE? */
- #endif
-
- #endif
-