~jsvoboda/helenos/dnsr

« back to all changes in this revision

Viewing changes to boot/arch/arm32/include/mm.h

  • Committer: Jiri Svoboda
  • Date: 2013-04-19 18:38:18 UTC
  • mfrom: (1527.1.284 main-clone)
  • Revision ID: jiri@wiwaxia-20130419183818-nvfibuh4t5qol0e3
MergeĀ mainlineĀ chages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 
47
47
/** Describe "section" page table entry (one-level paging with 1 MB sized pages). */
48
48
#define PTE_DESCRIPTOR_SECTION  0x02
 
49
/** Shift of memory address in section descriptor */
 
50
#define PTE_SECTION_SHIFT  20
49
51
 
50
52
/** Page table access rights: user - no access, kernel - read/write. */
51
53
#define PTE_AP_USER_NO_KERNEL_RW  0x01
52
54
 
 
55
/** Start of memory mapped I/O area for GTA02 */
 
56
#define GTA02_IOMEM_START  0x48000000
 
57
/** End of memory mapped I/O area for GTA02 */
 
58
#define GTA02_IOMEM_END  0x60000000
 
59
 
 
60
/** Start of ram memory on BBxM */
 
61
#define BBXM_RAM_START   0x80000000
 
62
/** Start of ram memory on BBxM */
 
63
#define BBXM_RAM_END   0xc0000000
 
64
 
 
65
/** Start of ram memory on AM335x */
 
66
#define AM335x_RAM_START   0x80000000
 
67
/** End of ram memory on AM335x */
 
68
#define AM335x_RAM_END     0xC0000000
 
69
 
 
70
 
53
71
/* Page table level 0 entry - "section" format is used
54
72
 * (one-level paging, 1 MB sized pages). Used only while booting the kernel.
55
73
 */
57
75
        unsigned int descriptor_type : 2;
58
76
        unsigned int bufferable : 1;
59
77
        unsigned int cacheable : 1;
60
 
        unsigned int impl_specific : 1;
 
78
        unsigned int xn : 1;
61
79
        unsigned int domain : 4;
62
80
        unsigned int should_be_zero_1 : 1;
63
 
        unsigned int access_permission : 2;
64
 
        unsigned int should_be_zero_2 : 8;
 
81
        unsigned int access_permission_0 : 2;
 
82
        unsigned int tex : 3;
 
83
        unsigned int access_permission_1 : 1;
 
84
        unsigned int shareable : 1;
 
85
        unsigned int non_global : 1;
 
86
        unsigned int should_be_zero_2 : 1;
 
87
        unsigned int non_secure : 1;
65
88
        unsigned int section_base_addr : 12;
66
89
} __attribute__((packed)) pte_level0_section_t;
67
90