Lines Matching refs:savearea
41 #include <ppc/savearea.h>
109 register struct savearea *sv; /* Pointer to the context savearea */
112 struct savearea *genuser;
341 fsv = find_user_fpu(thread); /* Get the user's fpu savearea */
372 vsv = find_user_vec(thread); /* Find the vector savearea */
435 register struct savearea *sv; /* Pointer to the context savearea */
436 struct savearea *genkern;
669 struct savearea *genuser;
966 struct savearea *genuser;
1005 struct savearea *sv;
1034 struct savearea *sv, *osv;
1049 sizeof(struct savearea) - sizeof(savearea_comm));
1068 sizeof(struct savearea) - sizeof(savearea_comm));
1086 sizeof(struct savearea) - sizeof(savearea_comm));
1099 struct savearea *
1103 struct savearea *sv, *osv;
1109 sv = thread->machine.pcb; /* Get the top savearea on the stack */
1110 osv = NULL; /* Set no user savearea yet */
1114 sv = CAST_DOWN(struct savearea *, sv->save_hdr.save_prev); /* Get the previous context */
1160 struct savearea *
1170 struct savearea *
1335 struct savearea *sv;
1347 struct savearea *sv;
1369 struct savearea *sv;
1382 struct savearea *sv;
1404 struct savearea *sv;
1514 struct savearea *child_state;
1526 struct savearea *parent_state;
1539 * The savearea is made to look like it belongs to the source activation. This needs to
1546 struct savearea *sv, *osv;
1557 osv = find_user_regs(thread); /* Get our savearea */
1572 sizeof(struct savearea) - sizeof(savearea_comm));
1597 sizeof(struct savearea) - sizeof(savearea_comm));
1617 sizeof(struct savearea) - sizeof(savearea_comm));
1628 * savearea that was setup by
1629 * We will collect everything into one savearea and pass that back.
1631 * The savearea is made to look like it belongs to the source activation. This needs to
1638 struct savearea *sv, *osv, *psv;
1644 sv = (struct savearea *)ctx; /* Make this easier for C */
1646 fsv = CAST_DOWN(savearea_fpu *, sv->save_hdr.save_misc0); /* Get a possible floating point savearea */
1647 vsv = CAST_DOWN(savearea_vec *, sv->save_hdr.save_misc1); /* Get a possible vector savearea */
1649 if((sv->save_hdr.save_misc2 != 0xDEBB1ED0) || (sv->save_hdr.save_misc3 != 0xE5DA11A5)) { /* See if valid savearea */
1650 panic("act_thread_catt: attempt to attach invalid general context savearea - %p\n", sv); /* Die */
1653 if(fsv && ((fsv->save_hdr.save_misc2 != 0xDEBB1ED0) || (fsv->save_hdr.save_misc3 != 0xE5DA11A5))) { /* See if valid savearea */
1654 panic("act_thread_catt: attempt to attach invalid float context savearea - %p\n", fsv); /* Die */
1657 if(vsv && ((vsv->save_hdr.save_misc2 != 0xDEBB1ED0) || (vsv->save_hdr.save_misc3 != 0xE5DA11A5))) { /* See if valid savearea */
1658 panic("act_thread_catt: attempt to attach invalid vector context savearea - %p\n", vsv); /* Die */
1674 osv = thread->machine.pcb; /* Get the top general savearea */
1678 psv = osv; /* Save previous savearea address */
1679 osv = CAST_DOWN(struct savearea *, osv->save_hdr.save_prev); /* Get one underneath our's */
1694 ovsv = thread->machine.curctx->VMXsave; /* Get the top vector savearea */
1699 pvsv = ovsv; /* Save previous savearea address */
1707 save_release((struct savearea *)ovsv); /* Nope, release it */
1722 ofsv = thread->machine.curctx->FPUsave; /* Get the top float savearea */
1727 pfsv = ofsv; /* Save previous savearea address */
1735 save_release((struct savearea *)ofsv); /* Nope, release it */
1764 struct savearea *sv;
1768 sv = (struct savearea *)ctx; /* Make this easier for C */
1770 fsv = CAST_DOWN(savearea_fpu *, sv->save_hdr.save_misc0); /* Get a possible floating point savearea */
1771 vsv = CAST_DOWN(savearea_vec *, sv->save_hdr.save_misc1); /* Get a possible vector savearea */
1773 if((sv->save_hdr.save_misc2 != 0xDEBB1ED0) || (sv->save_hdr.save_misc3 != 0xE5DA11A5)) { /* See if valid savearea */
1774 panic("act_thread_cfree: attempt to detatch invalid general context savearea - %p\n", sv); /* Die */
1777 save_release(sv); /* Toss the general savearea */
1780 if((fsv->save_hdr.save_misc2 != 0xDEBB1ED0) || (fsv->save_hdr.save_misc3 != 0xE5DA11A5)) { /* See if valid savearea */
1781 panic("act_thread_cfree: attempt to detatch invalid float context savearea - %p\n", fsv); /* Die */
1784 save_release((struct savearea *)fsv); /* Toss saved context */
1788 if((vsv->save_hdr.save_misc2 != 0xDEBB1ED0) || (vsv->save_hdr.save_misc3 != 0xE5DA11A5)) { /* See if valid savearea */
1789 panic("act_thread_cfree: attempt to detatch invalid vector context savearea - %p\n", vsv); /* Die */
1792 save_release((struct savearea *)vsv); /* Toss saved context */
1808 struct savearea *sv;