Lines Matching refs:pbDst

897     uint8_t *pbDst = pAppBuf->pbNormal + pBuf->offActive - pBuf->cbPrologue;
902 Assert(pbDst == &pAppBuf->pbNormal[pBuf->offActive]);
903 memcpy(pbDst, pvInstr, pBuf->cbActive);
904 pbDst += pBuf->cbActive;
918 uint8_t * const pbStartEpilogue = pbDst;
921 *pbDst++ = 0xeb;
922 *pbDst++ = 0x06; /* This is a push es, so if the decoder is one off, we'll hit the int 3 below. */
925 *pbDst++ = 0xcc;
926 *pbDst++ = 0xcc;
927 *pbDst++ = 0xcc;
928 *pbDst++ = 0xcc;
929 *pbDst++ = 0xcc;
930 *pbDst++ = 0xcc;
933 *pbDst++ = 0xe8;
934 *pbDst++ = 0x00;
935 *pbDst++ = 0x00;
936 *pbDst++ = 0x00;
937 *pbDst++ = 0x00;
938 uint8_t offRipAdjust = (uint8_t)(uintptr_t)(pbStartEpilogue - pbDst);
941 *pbDst++ = 0x51;
944 *pbDst++ = 0x48;
945 *pbDst++ = 0x8b;
946 *pbDst++ = 0x4c;
947 *pbDst++ = 0x24;
948 *pbDst++ = sizeof(uintptr_t);
951 *pbDst++ = 0x48;
952 *pbDst++ = 0x8d;
953 *pbDst++ = 0x49;
954 *pbDst++ = offRipAdjust;
957 *pbDst++ = 0x48;
958 *pbDst++ = 0x89;
959 *pbDst++ = 0x4c;
960 *pbDst++ = 0x24;
961 *pbDst++ = sizeof(uintptr_t);
965 *pbDst++ = 0x48;
967 *pbDst++ = 0xb9;
968 *(uintptr_t *)pbDst = (uintptr_t)&pThisApp->Core.ActualCtx;
969 pbDst += sizeof(uintptr_t);
972 *pbDst++ = 0x36;
973 *pbDst++ = 0x8f;
974 *pbDst++ = 0x41;
975 *pbDst++ = RT_OFFSETOF(CIDETCPUCTX, aGRegs[X86_GREG_xCX]);
979 *pbDst++ = 0x36;
981 *pbDst++ = 0x48;
983 *pbDst++ = 0x89;
984 *pbDst++ = 0x51;
985 *pbDst++ = RT_OFFSETOF(CIDETCPUCTX, aGRegs[X86_GREG_xDX]);
989 *pbDst++ = 0x36;
990 *pbDst++ = 0x8c;
991 *pbDst++ = 0x99;
992 *(uint32_t *)pbDst = RT_OFFSETOF(CIDETCPUCTX, aSRegs[X86_SREG_DS]);
993 pbDst += sizeof(uint32_t);
996 *pbDst++ = 0xba;
997 *(uint32_t *)pbDst = pThisApp->Core.InTemplateCtx.aSRegs[X86_SREG_DS];
998 pbDst += sizeof(uint32_t);
1001 *pbDst++ = 0x8e;
1002 *pbDst++ = 0xda;
1006 *pbDst++ = 0x48;
1008 *pbDst++ = 0xba;
1009 *(uintptr_t *)pbDst = (uintptr_t)&pThisApp->ExecuteCtx;
1010 pbDst += sizeof(uintptr_t);
1014 *pbDst++ = 0xff;
1015 *pbDst++ = 0x25;
1016 *(uint32_t *)pbDst = 0;
1017 pbDst += sizeof(uint32_t);
1020 *pbDst++ = 0xb9;
1022 *(uintptr_t *)pbDst = (uintptr_t)CidetAppSaveAndRestoreCtx;
1023 pbDst += sizeof(uintptr_t);
1026 *pbDst++ = 0xcc;
1036 *pbDst++ = 0xf0; /* lock prefix */
1037 memset(pbDst, 0xcc, 15); /* int3 */
1038 pbDst += 15;
1043 AssertMsg(pbDst == &pAppBuf->pbNormal[pBuf->offActive + pBuf->cb + pBuf->cbEpilogue],
1044 ("cbEpilogue=%#x, actual %#x\n", pBuf->cbEpilogue, pbDst - &pAppBuf->pbNormal[pBuf->offActive + pBuf->cb]));