Changeset 360


Ignore:
Timestamp:
Aug 10, 2017, 11:26:58 AM (7 years ago)
Author:
max@…
Message:

Add a panic, for now we are only switching between kernel threads.

File:
1 edited

Legend:

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

    r359 r360  
    101101void hal_cpu_context_switch(thread_t *old, thread_t *new)
    102102{
     103        process_t *oldproc = old->process;
     104        process_t *newproc = new->process;
     105
    103106        curtls()->tls_thr = new;
    104107
    105108        /* Switch the VM space */
    106         // TODO
     109        if (newproc != oldproc) {
     110                // TODO userland
     111                x86_panic((char *)__func__);
     112        }
    107113
    108114        /* Switch the CPU context */
Note: See TracChangeset for help on using the changeset viewer.