lkml.org 
[lkml]   [2008]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 02/15] x86: don't use gdt_page openly.
    Date
    There's a macro available for that.

    Signed-off-by: Glauber Costa <gcosta@redhat.com>
    ---
    arch/x86/kernel/traps_32.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/arch/x86/kernel/traps_32.c b/arch/x86/kernel/traps_32.c
    index a92b0c7..9ad896d 100644
    --- a/arch/x86/kernel/traps_32.c
    +++ b/arch/x86/kernel/traps_32.c
    @@ -1135,7 +1135,7 @@ void do_spurious_interrupt_bug(struct pt_regs *regs, long error_code)

    unsigned long patch_espfix_desc(unsigned long uesp, unsigned long kesp)
    {
    - struct desc_struct *gdt = __get_cpu_var(gdt_page).gdt;
    + struct desc_struct *gdt = get_cpu_gdt_table(smp_processor_id());
    unsigned long base = (kesp - uesp) & -THREAD_SIZE;
    unsigned long new_kesp = kesp - base;
    unsigned long lim_pages = (new_kesp | (THREAD_SIZE - 1)) >> PAGE_SHIFT;
    --
    1.5.4.5


    \
     
     \ /
      Last update: 2008-06-09 16:21    [W:2.746 / U:0.188 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site