Formatting.

This commit is contained in:
Dr. Chat 2015-09-25 18:46:50 -05:00
parent c150552b9c
commit c33e95981b
3 changed files with 5 additions and 4 deletions

View File

@ -325,9 +325,11 @@ uint64_t Processor::Execute(ThreadState* thread_state, uint32_t address,
if (arg_count > 7) { if (arg_count > 7) {
// Rest of the arguments go on the stack. // Rest of the arguments go on the stack.
// FIXME: This assumes arguments are 32 bits! // FIXME: This assumes arguments are 32 bits!
auto stack_arg_base = memory()->TranslateVirtual((uint32_t)context->r[1] + 0x54 - (64 + 112)); auto stack_arg_base =
memory()->TranslateVirtual((uint32_t)context->r[1] + 0x54 - (64 + 112));
for (size_t i = 0; i < arg_count - 8; i++) { for (size_t i = 0; i < arg_count - 8; i++) {
xe::store_and_swap<uint32_t>(stack_arg_base + (i * 8), (uint32_t)args[i + 8]); xe::store_and_swap<uint32_t>(stack_arg_base + (i * 8),
(uint32_t)args[i + 8]);
} }
} }

View File

@ -507,7 +507,7 @@ void UserModule::Dump() {
case XEX_HEADER_LAN_KEY: { case XEX_HEADER_LAN_KEY: {
sb.AppendFormat(" XEX_HEADER_LAN_KEY:"); sb.AppendFormat(" XEX_HEADER_LAN_KEY:");
auto opt_lan_key = auto opt_lan_key =
reinterpret_cast<const xex2_opt_lan_key*>(opt_header_ptr); reinterpret_cast<const xex2_opt_lan_key*>(opt_header_ptr);
for (int l = 0; l < 16; l++) { for (int l = 0; l < 16; l++) {
sb.AppendFormat(" %.2X", opt_lan_key->key[l]); sb.AppendFormat(" %.2X", opt_lan_key->key[l]);

View File

@ -1415,7 +1415,6 @@ void RegisterThreadingExports(xe::cpu::ExportResolver* export_resolver,
SHIM_SET_MAPPING("xboxkrnl.exe", KeTlsGetValue, state); SHIM_SET_MAPPING("xboxkrnl.exe", KeTlsGetValue, state);
SHIM_SET_MAPPING("xboxkrnl.exe", KeTlsSetValue, state); SHIM_SET_MAPPING("xboxkrnl.exe", KeTlsSetValue, state);
SHIM_SET_MAPPING("xboxkrnl.exe", NtCreateSemaphore, state); SHIM_SET_MAPPING("xboxkrnl.exe", NtCreateSemaphore, state);
SHIM_SET_MAPPING("xboxkrnl.exe", NtReleaseSemaphore, state); SHIM_SET_MAPPING("xboxkrnl.exe", NtReleaseSemaphore, state);