Ignore:
Timestamp:
Aug 7, 2017, 11:19:27 AM (5 years ago)
Author:
max@…
Message:

Separate the CPU context from the trap frame.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_kentry.h

    r308 r335  
    128128
    129129/*
    130  * The x86_64 CPU context.
     130 * The x86_64 CPU trap frame.
    131131 */
    132 typedef struct hal_cpu_context_s {
     132typedef struct hal_trapframe_s {
    133133        /* Pushed by INTR_SAVE_REGS */
    134134        uint64_t tf_rax;
     
    164164        uint64_t tf_rsp;
    165165        uint64_t tf_ss;
     166} hal_trapframe_t;
     167
     168typedef struct hal_cpu_context_s {
     169        uint64_t ctx_rsp0;
     170        uint64_t ctx_rsp;
     171        uint64_t ctx_rbp;
    166172} hal_cpu_context_t;
    167173
Note: See TracChangeset for help on using the changeset viewer.