Skip to content

Commit 3e8b196

Browse files
author
Yuma Arakawa
committed
mem: VRAM領域以外すべてのページでキャッシュ有効化・ライトバック有効化
1 parent bb018c1 commit 3e8b196

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

kernel/memory.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ void mem_init(void)
3838
pde->all = 0;
3939
pde->p = 1;
4040
pde->r_w = 1;
41-
pde->pwt = 1;
42-
pde->pcd = 1;
4341
pde->pt_base = 0x00090;
4442
pde++;
4543
for (i = 1; i < 0x400; i++) {
@@ -58,8 +56,6 @@ void mem_init(void)
5856
pte->all = 0;
5957
pte->p = 1;
6058
pte->r_w = 1;
61-
pte->pwt = 1;
62-
pte->pcd = 1;
6359
pte->g = 1;
6460
pte->page_base = paging_base_addr;
6561
paging_base_addr += 0x00001;
@@ -91,8 +87,6 @@ void mem_init(void)
9187
pde->all = 0;
9288
pde->p = 1;
9389
pde->r_w = 1;
94-
pde->pwt = 1;
95-
pde->pcd = 1;
9690
pde->pt_base = 0x00090;
9791
pde++;
9892
for (i = 1; i < 0x080; i++) {
@@ -103,8 +97,6 @@ void mem_init(void)
10397
pde->p = 1;
10498
pde->r_w = 1;
10599
pde->u_s = 1;
106-
pde->pwt = 1;
107-
pde->pcd = 1;
108100
pde->pt_base = 0x00092;
109101
pde++;
110102
for (; i < 0x400; i++) {
@@ -119,17 +111,13 @@ void mem_init(void)
119111
pte->p = 1;
120112
pte->r_w = 1;
121113
pte->u_s = 1;
122-
pte->pwt = 1;
123-
pte->pcd = 1;
124114
pte->page_base = paging_base_addr;
125115
pte++;
126116
paging_base_addr = 0x00070;
127117
pte->all = 0;
128118
pte->p = 1;
129119
pte->r_w = 1;
130120
pte->u_s = 1;
131-
pte->pwt = 1;
132-
pte->pcd = 1;
133121
pte->page_base = paging_base_addr;
134122
pte++;
135123
for (i = 2; i < 0x400; i++) {
@@ -142,8 +130,6 @@ void mem_init(void)
142130
pde->all = 0;
143131
pde->p = 1;
144132
pde->r_w = 1;
145-
pde->pwt = 1;
146-
pde->pcd = 1;
147133
pde->pt_base = 0x00090;
148134
pde++;
149135
for (i = 1; i < 0x080; i++) {
@@ -154,8 +140,6 @@ void mem_init(void)
154140
pde->p = 1;
155141
pde->r_w = 1;
156142
pde->u_s = 1;
157-
pde->pwt = 1;
158-
pde->pcd = 1;
159143
pde->pt_base = 0x00094;
160144
pde++;
161145
for (; i < 0x400; i++) {
@@ -170,17 +154,13 @@ void mem_init(void)
170154
pte->p = 1;
171155
pte->r_w = 1;
172156
pte->u_s = 1;
173-
pte->pwt = 1;
174-
pte->pcd = 1;
175157
pte->page_base = paging_base_addr;
176158
pte++;
177159
paging_base_addr = 0x00071;
178160
pte->all = 0;
179161
pte->p = 1;
180162
pte->r_w = 1;
181163
pte->u_s = 1;
182-
pte->pwt = 1;
183-
pte->pcd = 1;
184164
pte->page_base = paging_base_addr;
185165
pte++;
186166
for (i = 2; i < 0x400; i++) {

0 commit comments

Comments
 (0)