Stick the export ordinal in the dummy address for unimplemented export data, to make it obvious what it is when debugging.

This commit is contained in:
Rick Gibbed 2013-05-26 17:37:31 -07:00
parent c29c4b067f
commit 0ca44083e6
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ int ExecModule::Init() {
*slot = XESWAP32BE(kernel_export->variable_ptr);
} else {
// Not implemented - write with a dummy value.
*slot = XESWAP32BE(0xDEADBEEF);
*slot = XESWAP32BE(0xD000BEEF | (kernel_export->ordinal & 0xFFF) << 16);
XELOGCPU("WARNING: imported a variable with no value: %s",
kernel_export->name);
}