Ignore:
Timestamp:
Jul 18, 2017, 3:28:20 PM (5 years ago)
Author:
max@…
Message:

Push the context entirely for an exception.

File:
1 edited

Legend:

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

    r193 r233  
    129129        uint64_t tf_trapno;
    130130
    131         /* Pushed by the hardware if trap */
    132         uint64_t tf_err;
     131        /* Pushed by the hardware if exception */
     132        uint64_t tf_err;        /* in fact, this one may not... */
    133133        uint64_t tf_rip;
    134134        uint64_t tf_cs;
     
    139139        uint64_t tf_ss;
    140140} hal_cpu_context_t;
    141 
    142 /*
    143  * Our small trap frame.
    144  */
    145 struct small_trapframe {
    146         uint64_t tf_trapno;
    147 
    148         /* These are pushed for a trap */
    149         uint64_t tf_err;        /* in fact, this one may not... */
    150         uint64_t tf_rip;
    151         uint64_t tf_cs;
    152         uint64_t tf_rflags;
    153 
    154         /* These are always pushed */
    155         uint64_t tf_rsp;
    156         uint64_t tf_ss;
    157 };
    158141
    159142#else
Note: See TracChangeset for help on using the changeset viewer.