Changeset 16365


Ignore:
Timestamp:
Apr 4, 2015, 2:21:24 AM (4 years ago)
Author:
gb
Message:

Try again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/x86-exceptions.c

    r16364 r16365  
    15151515
    15161516#ifdef LINUX
    1517 /* type of pointer to saved fp state */
     1517
     1518/* some versions of  <bits/sigcontext.h> are too old to
     1519define some magic numbers that we need. define those things here, prefixed
     1520with "magic__ " to avoid name conflicts. what a waste of time!
     1521*/
     1522#define magic__FP_XSTATE_MAGIC1 0x46505853U
     1523struct 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
    15181533
    15191534typedef struct _fpstate *FPREGS;
     
    15271542       include that file without conflicting with <bits/sigcontext.h> */
    15281543    /* 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) {
    15311546      return sw->extended_size;
    15321547    }
Note: See TracChangeset for help on using the changeset viewer.