Ignore:
Timestamp:
Jul 19, 2017, 10:03:41 AM (5 years ago)
Author:
max@…
Message:

Start adding some code for SMP support

File:
1 edited

Legend:

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

    r234 r235  
    313313        hal_enable_irq(&dummy);
    314314
     315while (1);
     316
    315317        kernel_init(&btinfo);
    316318
     
    347349/* x86-specific per-cpu structures */
    348350typedef struct {
     351        bool_t valid;
    349352        struct tss tss;
    350353        struct tls tls;
     
    354357} percpu_archdata_t;
    355358percpu_archdata_t cpudata[CONFIG_MAX_LOCAL_CORES] __in_kdata;
     359
     360void cpu_activate(uint32_t gid)
     361{
     362        cpudata[gid].valid = true;
     363}
    356364
    357365static void
Note: See TracChangeset for help on using the changeset viewer.