Changeset 85


Ignore:
Timestamp:
Jun 28, 2017, 2:58:49 PM (4 years ago)
Author:
max@…
Message:

reload the segregs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_cpu.S

    r82 r85  
    2222#define x86_ASM
    2323#include <hal_boot.h>
     24#include <hal_segmentation.h>
    2425
    2526ASM_ENTRY(lgdt)
    2627        lgdt    (%rdi)
     28        /* Reload the prefetch queue */
     29    jmp 1f
     30    nop
     311:      /* Reload stale selectors */
     32        movl    $GDT_FIXED_SEL(GDT_KDATA_SEL, SEL_KPL),%eax
     33        movl    %eax,%ds
     34        movl    %eax,%es
     35        movl    %eax,%ss
    2736        ret
    2837
Note: See TracChangeset for help on using the changeset viewer.