1 /*
2  * Copyright (c) 2015 Stefan Kristiansson
3  *
4  * Use of this source code is governed by a MIT-style
5  * license that can be found in the LICENSE file or at
6  * https://opensource.org/licenses/MIT
7  */
8 #pragma once
9 #define SECTION_SIZE            (16U*1024U*1024U)
10 
11 #define OR1K_MMU_PG_FLAGS_MASK  0x7ffU
12 #define OR1K_MMU_PG_PRESENT     0x400
13 #define OR1K_MMU_PG_L           0x200
14 #define OR1K_MMU_PG_X           0x100
15 #define OR1K_MMU_PG_W           0x080
16 #define OR1K_MMU_PG_U           0x040
17 #define OR1K_MMU_PG_D           0x020
18 #define OR1K_MMU_PG_A           0x010
19 #define OR1K_MMU_PG_WOM         0x008
20 #define OR1K_MMU_PG_WBC         0x004
21 #define OR1K_MMU_PG_CI          0x002
22 #define OR1K_MMU_PG_CC          0x001
23