summaryrefslogtreecommitdiff
path: root/src/mapi/mapi/entry.h
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-12-24 15:06:41 +0800
committerChia-I Wu <olv@lunarg.com>2010-12-24 17:33:49 +0800
commite6a7ef3ca6d7f1843a7ea3f873c8f16fe9efc48e (patch)
tree2d7e3bc66b180e579967357be6867f0371cd53b4 /src/mapi/mapi/entry.h
parent897bff67734ec9ab213191386cdf09ddd051aebb (diff)
mapi: Add and use entry_get_public.
Given a dispatch slot, entry_get_public returns the address of the corresponding public entry point. There may be more than one of them. But since they are all equivalent, it is fine to return any one of them. With entry_get_public, the address of any public entry point can be calculated at runtime when an assembly dispatcher is used. There is no need to have a mapping table in such case. This omits the unnecessary relocations from the binary.
Diffstat (limited to 'src/mapi/mapi/entry.h')
-rw-r--r--src/mapi/mapi/entry.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mapi/mapi/entry.h b/src/mapi/mapi/entry.h
index 48ed3f9ec4..4d7e1f6d16 100644
--- a/src/mapi/mapi/entry.h
+++ b/src/mapi/mapi/entry.h
@@ -32,15 +32,13 @@
#include "u_compiler.h"
#include "stub.h"
-/* declare public entries */
-#define MAPI_TMP_DEFINES
-#define MAPI_TMP_PUBLIC_DECLARES
-#include "mapi_tmp.h"
-
void
entry_patch_public(void);
mapi_func
+entry_get_public(int slot);
+
+mapi_func
entry_generate(int slot);
void