Initial experiment with new kernel export format.

This commit is contained in:
Ben Vanik
2015-06-01 18:19:32 -07:00
parent 225bb74316
commit 23826fa957
7 changed files with 633 additions and 350 deletions

View File

@@ -17,7 +17,8 @@ namespace xe {
namespace kernel {
// TODO(benvanik): actually check to see if these are the same.
void xeVdQueryVideoMode(X_VIDEO_MODE* video_mode);
void VdQueryVideoMode(PPCContext* ppc_context, KernelState* kernel_state,
typed_param_t<X_VIDEO_MODE> video_mode);
SHIM_CALL XGetVideoMode_shim(PPCContext* ppc_context,
KernelState* kernel_state) {
uint32_t video_mode_ptr = SHIM_GET_ARG_32(0);
@@ -25,7 +26,7 @@ SHIM_CALL XGetVideoMode_shim(PPCContext* ppc_context,
XELOGD("XGetVideoMode(%.8X)", video_mode_ptr);
xeVdQueryVideoMode(video_mode);
VdQueryVideoMode(ppc_context, kernel_state, video_mode);
}
SHIM_CALL XGetVideoCapabilities_shim(PPCContext* ppc_context,