Formatting.
This commit is contained in:
parent
c150552b9c
commit
c33e95981b
|
@ -325,9 +325,11 @@ uint64_t Processor::Execute(ThreadState* thread_state, uint32_t address,
|
|||
if (arg_count > 7) {
|
||||
// Rest of the arguments go on the stack.
|
||||
// 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++) {
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -507,7 +507,7 @@ void UserModule::Dump() {
|
|||
case XEX_HEADER_LAN_KEY: {
|
||||
sb.AppendFormat(" XEX_HEADER_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++) {
|
||||
sb.AppendFormat(" %.2X", opt_lan_key->key[l]);
|
||||
|
|
|
@ -1415,7 +1415,6 @@ void RegisterThreadingExports(xe::cpu::ExportResolver* export_resolver,
|
|||
SHIM_SET_MAPPING("xboxkrnl.exe", KeTlsGetValue, state);
|
||||
SHIM_SET_MAPPING("xboxkrnl.exe", KeTlsSetValue, state);
|
||||
|
||||
|
||||
SHIM_SET_MAPPING("xboxkrnl.exe", NtCreateSemaphore, state);
|
||||
SHIM_SET_MAPPING("xboxkrnl.exe", NtReleaseSemaphore, state);
|
||||
|
||||
|
|
Loading…
Reference in New Issue