Cleanup before kernel export refactor.

This commit is contained in:
Ben Vanik
2015-05-31 16:31:19 -07:00
parent fccab79a7a
commit 9c3d2b54fb
24 changed files with 2508 additions and 2502 deletions

View File

@@ -13,7 +13,7 @@
*
* // Build the export table used for resolution.
* #include "xenia/kernel/util/export_table_pre.inc"
* static KernelExport my_module_export_table[] = {
* static Export my_module_export_table[] = {
* #include "xenia/kernel/my_module/my_module_table.inc"
* };
* #include "xenia/kernel/util/export_table_post.inc"
@@ -23,11 +23,10 @@
*/
#define XE_EXPORT(module, ordinal, name, type, flags) \
#define XE_EXPORT(module, ordinal, name, type) \
{ \
ordinal, \
xe::cpu::KernelExport::type, \
flags, \
xe::cpu::Export::Type::type, \
#name, \
}

View File

@@ -22,6 +22,6 @@
*/
#define XE_EXPORT(module, ordinal, name, type, flags) \
#define XE_EXPORT(module, ordinal, name, type) \
name = ordinal

View File

@@ -21,7 +21,7 @@ using PPCContext = xe::cpu::frontend::PPCContext;
#define SHIM_CALL void _cdecl
#define SHIM_SET_MAPPING(library_name, export_name, shim_data) \
export_resolver->SetFunctionMapping( \
library_name, ordinals::##export_name, shim_data, \
library_name, ordinals::##export_name, \
(xe::cpu::xe_kernel_export_shim_fn)export_name##_shim);
#define SHIM_MEM_BASE ppc_state->virtual_membase