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_internal.h

    r45 r46  
    2020 */
    2121
     22#define offsetof(type, member) __builtin_offsetof(type, member)
    2223#define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
    2324#define rounddown(x,y) (((x)/(y))*(y))
     
    3031/* hal_cpu.S */
    3132void invlpg(vaddr_t va);
     33uint64_t rdmsr(uint32_t);
     34void wrmsr(uint32_t, uint64_t);
    3235
    3336/* hal_gpt.c */
     
    4144void hal_gpt_init(paddr_t firstpa);
    4245
     46/* hal_special.c */
     47void hal_tls_init_cpu0();
     48
    4349/* x86_printf.c */
    4450void x86_panic(char *msg);
Note: See TracChangeset for help on using the changeset viewer.