Ignore:
Timestamp:
Jun 23, 2017, 1:31:23 PM (5 years ago)
Author:
max@…
Message:

Start implementing TLS.

File:
1 edited

Legend:

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

    r45 r46  
    4747uint8_t mb_mmap[PAGE_SIZE] __in_kdata;
    4848
    49 #define offsetof(type, member) __builtin_offsetof(type, member)
    50 
    5149/* -------------------------------------------------------------------------- */
    5250
     
    5957
    6058        if (!(mb_info.mi_flags & MULTIBOOT_INFO_HAS_MMAP))
    61                 x86_printf("SHIT!!\n");
     59                x86_panic("No mmap");
    6260
    6361        i = 0;
     
    104102        x86_printf("[+] hal_gpt_bootstrap_reset called\n");
    105103
    106         hal_init_lapic();
    107         x86_printf("[+] hal_init_lapic called\n");
     104        hal_lapic_init();
     105        x86_printf("[+] hal_lapic_init called\n");
     106
     107        hal_tls_init_cpu0();
     108        x86_printf("[+] hal_tls_init_cpu0 called\n");
    108109
    109110        x86_printf("-> mytest = %z\n", mytest);
     
    232233                    SDT_SYS386IGT, SEL_KPL, GDT_FIXED_SEL(GDT_KCODE_SEL, SEL_KPL));
    233234        }
    234 
    235235}
    236236
Note: See TracChangeset for help on using the changeset viewer.