Dumping module info on startup and logging unimplemented kernel calls.

This commit is contained in:
Ben Vanik
2013-06-30 07:53:17 -07:00
parent a62426948b
commit c9a39a8b62
3 changed files with 10 additions and 7 deletions

View File

@@ -124,7 +124,8 @@ X_STATUS XModule::Launch(uint32_t flags) {
// Set as the main module, while running.
kernel_state()->SetExecutableModule(this);
fflush(stdout);
Dump();
// Create a thread to run in.
XThread* thread = new XThread(
@@ -292,7 +293,7 @@ void XModule::Dump() {
unimpl_count++;
}
}
printf(" Total: %4zu\n", import_info_count);
printf(" Total: %4u\n", import_info_count);
printf(" Known: %3d%% (%d known, %d unknown)\n",
(int)(known_count / (float)import_info_count * 100.0f),
known_count, unknown_count);

View File

@@ -939,7 +939,7 @@ int xe_xex2_get_import_infos(xe_xex2_ref xex,
const uint32_t type = (value & 0xFF000000) >> 24;
// Verify library index matches given library.
XEASSERT(library_index == ((value >> 16) & 0xFF));
//XEASSERT(library_index == ((value >> 16) & 0xFF));
switch (type) {
case 0x00:
@@ -959,7 +959,7 @@ int xe_xex2_get_import_infos(xe_xex2_ref xex,
}
break;
default:
XEASSERTALWAYS();
//XEASSERTALWAYS();
break;
}
}