Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356231
b: refs/heads/master
c: 231b364
h: refs/heads/master
i:
  356229: 135a183
  356227: d7d4521
  356223: 0741e65
v: v3
  • Loading branch information
Yinghai Lu authored and H. Peter Anvin committed Jan 29, 2013
1 parent b233238 commit 69c8d43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c2bdee594ebcf4a531afe795baf18da509438392
refs/heads/master: 231b3642a3c73fb9f1221dcb96fe8c0fbb658dfd
11 changes: 6 additions & 5 deletions trunk/arch/x86/realmode/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ void __init setup_real_mode(void)
}

/*
* set_real_mode_permissions() gets called very early, to guarantee the
* availability of low memory. This is before the proper kernel page
* setup_real_mode() gets called very early, to guarantee the
* availability of low memory. This is before the proper kernel page
* tables are set up, so we cannot set page permissions in that
* function. Thus, we use an arch_initcall instead.
* function. Also trampoline code will be executed by APs so we
* need to mark it executable at do_pre_smp_initcalls() at least,
* thus run it as a early_initcall().
*/
static int __init set_real_mode_permissions(void)
{
Expand All @@ -111,5 +113,4 @@ static int __init set_real_mode_permissions(void)

return 0;
}

arch_initcall(set_real_mode_permissions);
early_initcall(set_real_mode_permissions);

0 comments on commit 69c8d43

Please sign in to comment.