Subversion Repositories HelenOS

Rev

Rev 2071 | Rev 2218 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 2107
Line 138... Line 138...
138
}
138
}
139
 
139
 
140
static void simd_fp_exception(int n, istate_t *istate)
140
static void simd_fp_exception(int n, istate_t *istate)
141
{
141
{
142
    uint32_t mxcsr;
142
    uint32_t mxcsr;
143
    asm
143
    asm (
144
    (
-
 
145
        "stmxcsr %0;\n"
144
        "stmxcsr %0;\n"
146
        :"=m"(mxcsr)
145
        :"=m"(mxcsr)
147
    );
146
    );
148
    fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#zx",
147
    fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#zx",
149
                 (unative_t)mxcsr);
148
        (unative_t)mxcsr);
150
 
149
 
151
    decode_istate(istate);
150
    decode_istate(istate);
152
    printf("MXCSR: %#zx\n",(unative_t)(mxcsr));
151
    printf("MXCSR: %#zx\n",(unative_t)(mxcsr));
153
    panic("SIMD FP exception(19)\n");
152
    panic("SIMD FP exception(19)\n");
154
}
153
}