
28 Jun
2019
28 Jun
'19
3:55 p.m.
On Sat, 22 Jun 2019 at 13:10, Simon Glass sjg@chromium.org wrote:
On Sun, 2 Jun 2019 at 12:05, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
An UEFI application may change the value of the register that gd lives in. But some of our functions like get_ticks() access this register. So we have to set the gd register to the U-Boot value when entering a trace point and set it back to the application value when exiting the trace point.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
lib/trace.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+)
Ick. I can't think of a better idea.
Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot-dm/next, thanks!