Subversion Repositories HelenOS

Rev

Rev 2071 | Rev 2465 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 2089
Line 41... Line 41...
41
#define PAGE_SIZE   FRAME_SIZE
41
#define PAGE_SIZE   FRAME_SIZE
42
 
42
 
43
#define PAGE_COLOR_BITS 0           /* dummy */
43
#define PAGE_COLOR_BITS 0           /* dummy */
44
 
44
 
45
#ifndef __ASM__
45
#ifndef __ASM__
46
#  define KA2PA(x)  (((uintptr_t) (x)) - 0x80000000)
46
#   define KA2PA(x) (((uintptr_t) (x)) - 0x80000000)
47
#  define PA2KA(x)  (((uintptr_t) (x)) + 0x80000000)
47
#   define PA2KA(x) (((uintptr_t) (x)) + 0x80000000)
48
#else
48
#else
49
#  define KA2PA(x)  ((x) - 0x80000000)
49
#   define KA2PA(x) ((x) - 0x80000000)
50
#  define PA2KA(x)  ((x) + 0x80000000)
50
#   define PA2KA(x) ((x) + 0x80000000)
51
#endif
51
#endif
52
 
52
 
53
#ifdef KERNEL
53
#ifdef KERNEL
54
 
54
 
55
/*
55
/*
Line 107... Line 107...
107
#define PTE_WRITABLE_ARCH(pte)          ((pte)->w != 0)
107
#define PTE_WRITABLE_ARCH(pte)          ((pte)->w != 0)
108
#define PTE_EXECUTABLE_ARCH(pte)        1
108
#define PTE_EXECUTABLE_ARCH(pte)        1
109
 
109
 
110
#ifndef __ASM__
110
#ifndef __ASM__
111
 
111
 
112
#include <arch/mm/tlb.h>
-
 
113
#include <mm/page.h>
112
#include <mm/mm.h>
114
#include <arch/mm/frame.h>
-
 
115
#include <arch/types.h>
113
#include <arch/exception.h>
116
 
114
 
117
static inline int get_pt_flags(pte_t *pt, index_t i)
115
static inline int get_pt_flags(pte_t *pt, index_t i)
118
{
116
{
119
    pte_t *p = &pt[i];
117
    pte_t *p = &pt[i];
120
   
118