Ignore:
Timestamp:
Aug 14, 2017, 12:32:08 PM (4 years ago)
Author:
max@…
Message:

Switch the VM space, and explicitly disable the FPU.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_context.c

    r361 r368  
    109109        /* Switch the VM space */
    110110        if (newproc != oldproc) {
    111                 // TODO userland
    112                 x86_panic((char *)__func__);
     111                lcr3((uint64_t)newproc->vmm.gpt.ppn << CONFIG_PPM_PAGE_SHIFT);
    113112        }
    114113
     
    124123error_t hal_fpu_context_create( thread_t * thread )
    125124{
    126         x86_panic((char *)__func__);
     125        /* FPU not implemented yet */
    127126        return 0;
    128127}
Note: See TracChangeset for help on using the changeset viewer.