Changeset 274


Ignore:
Timestamp:
Jul 26, 2017, 10:54:49 AM (4 years ago)
Author:
max@…
Message:

Add tls_tf.

Location:
trunk/hal/x86_64/core
Files:
3 edited

Legend:

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

    r256 r274  
    405405        start_secondary_cpus();
    406406
    407         kernel_init(&btinfo);
    408 
    409         x86_printf("[+] kernel_init called\n");
    410 
    411407        reg_t dummy;
    412408        hal_enable_irq(&dummy);
     409
     410        while (1);
     411
     412        kernel_init(&btinfo);
     413
     414        x86_printf("[+] kernel_init called\n");
     415
     416
    413417/*
    414418        void *ptr;
     
    428432        ppm_free_pages(ptr);
    429433*/
    430         while (1);
     434
    431435
    432436//      void x86_stop();
  • trunk/hal/x86_64/core/hal_interrupt.c

    r237 r274  
    3030#include <hal_internal.h>
    3131#include <hal_special.h>
     32#include <hal_segmentation.h>
    3233
    3334/* -------------------------------------------------------------------------- */
     
    4546            tf->tf_rip, hal_get_current_thread());
    4647        return;
     48
     49        core_t *core = CURRENT_THREAD->core;
     50        curcpu()->tls_tf = tf;
     51
     52        core_clock(core);
    4753}
    4854
  • trunk/hal/x86_64/core/hal_segmentation.h

    r240 r274  
    155155        void *tls_thr;
    156156        reg_t tls_intr;
     157        void *tls_tf;
    157158} __packed;
    158159typedef struct tls tls_t;
Note: See TracChangeset for help on using the changeset viewer.