Nevermind, that's probably not the issue. You need to dig deeper. I would advice setting a breakpoint with GDB. It sounds like that inbuilt debugger is quite tedious to work with
OK,I will try to do this.According to UEFI spec,ImageHandle is in x10(a0),SystemTable is in x11(a1).This can't be errorous.I will dig into it deeper.