Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137029
b: refs/heads/master
c: e087edd
h: refs/heads/master
i:
  137027: b59ee59
v: v3
  • Loading branch information
Pekka Enberg authored and Ingo Molnar committed Mar 3, 2009
1 parent 24aef89 commit eb38781
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 05f209e7b936a48e341d36831079116a06658ccc
refs/heads/master: e087edd8c056292191bb989baf49f83ee509e624
7 changes: 7 additions & 0 deletions trunk/arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,13 @@ void free_init_pages(char *what, unsigned long begin, unsigned long end)
begin, PAGE_ALIGN(end));
set_memory_np(begin, (end - begin) >> PAGE_SHIFT);
#else
/*
* We just marked the kernel text read only above, now that
* we are going to free part of that, we need to make that
* writeable first.
*/
set_memory_rw(begin, (end - begin) >> PAGE_SHIFT);

printk(KERN_INFO "Freeing %s: %luk freed\n", what, (end - begin) >> 10);

for (; addr < end; addr += PAGE_SIZE) {
Expand Down

0 comments on commit eb38781

Please sign in to comment.