summaryrefslogtreecommitdiff
path: root/lib/mesa/src/mapi/entry_ppc64le_tsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/mapi/entry_ppc64le_tsd.h')
-rw-r--r--lib/mesa/src/mapi/entry_ppc64le_tsd.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/mesa/src/mapi/entry_ppc64le_tsd.h b/lib/mesa/src/mapi/entry_ppc64le_tsd.h
index a583b93e5..577307972 100644
--- a/lib/mesa/src/mapi/entry_ppc64le_tsd.h
+++ b/lib/mesa/src/mapi/entry_ppc64le_tsd.h
@@ -104,7 +104,6 @@ __asm__(".text\n"
#ifndef MAPI_MODE_BRIDGE
#include <string.h>
-#include "u_execmem.h"
void
entry_patch_public(void)
@@ -180,31 +179,4 @@ static const uint64_t TEMPLATE_OFFSET_CURRENT_TABLE = sizeof(code_templ) - 3*8;
static const uint64_t TEMPLATE_OFFSET_CURRENT_TABLE_GET = sizeof(code_templ) - 2*8;
static const uint64_t TEMPLATE_OFFSET_SLOT = sizeof(code_templ) - 1*8;
-void
-entry_patch(mapi_func entry, int slot)
-{
- char *code = (char *) entry;
- *((uint64_t *) (code + TEMPLATE_OFFSET_CURRENT_TABLE)) = (uint64_t) ENTRY_CURRENT_TABLE;
- *((uint64_t *) (code + TEMPLATE_OFFSET_CURRENT_TABLE_GET)) = (uint64_t) ENTRY_CURRENT_TABLE_GET;
- *((uint64_t *) (code + TEMPLATE_OFFSET_SLOT)) = slot * sizeof(mapi_func);
-}
-
-mapi_func
-entry_generate(int slot)
-{
- char *code;
- mapi_func entry;
-
- code = u_execmem_alloc(sizeof(code_templ));
- if (!code)
- return NULL;
-
- memcpy(code, code_templ, sizeof(code_templ));
-
- entry = (mapi_func) code;
- entry_patch(entry, slot);
-
- return entry;
-}
-
#endif /* MAPI_MODE_BRIDGE */