lkml.org 
[lkml]   [2018]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH V2 04/20] x86: kcore: Give entry trampolines all the same offset in kcore
From
Date
On 05/17/2018 02:21 AM, Adrian Hunter wrote:
> @@ -149,9 +149,9 @@ static void __init setup_cpu_entry_area(int cpu)
>
> cea_set_pte(&get_cpu_entry_area(cpu)->entry_trampoline,
> __pa_symbol(_entry_trampoline), PAGE_KERNEL_RX);
> - kclist_add(&per_cpu(kcore_entry_trampoline, cpu),
> - &get_cpu_entry_area(cpu)->entry_trampoline, PAGE_SIZE,
> - KCORE_TEXT);
> + kclist_add_remap(&per_cpu(kcore_entry_trampoline, cpu),
> + _entry_trampoline,
> + &get_cpu_entry_area(cpu)->entry_trampoline, PAGE_SIZE);
> #endif
> percpu_setup_debug_store(cpu);
> }

Why do you bother adding then immediately removing this code?

\
 
 \ /
  Last update: 2018-05-17 19:55    [W:0.156 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site