Changeset 16365
- Timestamp:
- Apr 4, 2015, 2:21:24 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/lisp-kernel/x86-exceptions.c
r16364 r16365 1515 1515 1516 1516 #ifdef LINUX 1517 /* type of pointer to saved fp state */ 1517 1518 /* some versions of <bits/sigcontext.h> are too old to 1519 define some magic numbers that we need. define those things here, prefixed 1520 with "magic__ " to avoid name conflicts. what a waste of time! 1521 */ 1522 #define magic__FP_XSTATE_MAGIC1 0x46505853U 1523 struct magic__fpx_sw_bytes 1524 { 1525 __uint32_t magic1; 1526 __uint32_t extended_size; 1527 __uint64_t xstate_bv; 1528 __uint32_t xstate_size; 1529 __uint32_t padding[7]; 1530 }; 1531 1532 1518 1533 1519 1534 typedef struct _fpstate *FPREGS; … … 1527 1542 include that file without conflicting with <bits/sigcontext.h> */ 1528 1543 /* I didn't make this stuff up */ 1529 struct _fpx_sw_bytes * sw = (struct_fpx_sw_bytes *) (((char *)state)+464);1530 if (sw->magic1 == FP_XSTATE_MAGIC1) {1544 struct magic__fpx_sw_bytes * sw = (struct magic__fpx_sw_bytes *) (((char *)state)+464); 1545 if (sw->magic1 == magic__FP_XSTATE_MAGIC1) { 1531 1546 return sw->extended_size; 1532 1547 }
Note: See TracChangeset
for help on using the changeset viewer.