Skip to content
Commit d3d6afae authored by Heinrich Schuchardt's avatar Heinrich Schuchardt
Browse files

trace: conserve gd register on RISC-V



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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent 87e9963d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment