arm: Accomodate function name changes in newer linux kernels

This commit is contained in:
Eric Van Hensbergen 2013-10-17 10:20:45 -05:00
parent 2f7b012ced
commit bfdd031c0d

View file

@ -80,13 +80,20 @@ LinuxArmSystem::LinuxArmSystem(Params *p)
} }
// With ARM udelay() is #defined to __udelay // With ARM udelay() is #defined to __udelay
uDelaySkipEvent = addKernelFuncEventOrPanic<UDelayEvent>( // newer kernels use __loop_udelay and __loop_const_udelay symbols
"__udelay", "__udelay", 1000, 0); uDelaySkipEvent = addKernelFuncEvent<UDelayEvent>(
"__loop_udelay", "__udelay", 1000, 0);
if(!uDelaySkipEvent)
uDelaySkipEvent = addKernelFuncEventOrPanic<UDelayEvent>(
"__udelay", "__udelay", 1000, 0);
// constant arguments to udelay() have some precomputation done ahead of // constant arguments to udelay() have some precomputation done ahead of
// time. Constant comes from code. // time. Constant comes from code.
constUDelaySkipEvent = addKernelFuncEventOrPanic<UDelayEvent>( constUDelaySkipEvent = addKernelFuncEvent<UDelayEvent>(
"__const_udelay", "__const_udelay", 1000, 107374); "__loop_const_udelay", "__const_udelay", 1000, 107374);
if(!constUDelaySkipEvent)
constUDelaySkipEvent = addKernelFuncEventOrPanic<UDelayEvent>(
"__const_udelay", "__const_udelay", 1000, 107374);
secDataPtrAddr = 0; secDataPtrAddr = 0;
secDataAddr = 0; secDataAddr = 0;