Changeset 345 for trunk


Ignore:
Timestamp:
Aug 8, 2017, 11:28:39 AM (7 years ago)
Author:
max@…
Message:

Initialize rsp0 (in both the TSS and the TLS).

File:
1 edited

Legend:

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

    r339 r345  
    628628        memset(tss, 0, sizeof(*tss));
    629629
    630         /* tss->tss_rsp0 */
     630        tss->tss_rsp0 = ((uint64_t)&data->boot_stack + STKSIZE) & ~0xF;
    631631        tss->tss_ist[0] = ((uint64_t)&data->intr_stack + STKSIZE) & ~0xF;
    632632        tss->tss_ist[1] = ((uint64_t)&data->dbfl_stack + STKSIZE) & ~0xF;
     
    654654        cputls->tls_gid = hal_lapic_gid();
    655655        cputls->tls_lid = lid;
    656         /* cputls->tls_rsp0 = (uint64_t)&data->tss.tss_rsp0; */
     656        cputls->tls_rsp0 = (uint64_t)&data->tss.tss_rsp0;
    657657        cputls->tls_intr = INTRS_DISABLED;
    658658
Note: See TracChangeset for help on using the changeset viewer.