Ignore:
Timestamp:
Apr 22, 2006, 9:27:47 AM (14 years ago)
Author:
gb
Message:

Something's clearly wrong in find_foreign_rsp; call Bug() and exit()
if the context has no fpregs. (That's a symptom, not the proble, but
it's slightly better to do this than to double fault, which is what seems
to be happening.)

File:
1 edited

Legend:

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

    r4369 r4371  
    595595{
    596596  LispObj rsp = xpGPR(xp, Isp);
     597
    597598  if (((BytePtr)rsp < foreign_area->low) ||
    598599      ((BytePtr)rsp > foreign_area->high)) {
     600#ifdef LINUX
     601  if (xp->uc_mcontext.fpregs == NULL) {
     602    Bug(NULL, "no FP regs in context\n");
     603    exit(1);
     604  }
     605#endif
    599606    rsp = xpMMXreg(xp, Iforeign_sp);
    600607  }
Note: See TracChangeset for help on using the changeset viewer.