]> git.dujemihanovic.xyz Git - u-boot.git/commit
cpu-uclass: relocate ops pointers for CONFIG_NEEDS_MANUAL_RELOC
authorOvidiu Panait <ovpanait@gmail.com>
Tue, 31 May 2022 18:14:23 +0000 (21:14 +0300)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:16:00 +0000 (14:16 +0200)
commitb391b915bb3441a01b18d9b144425b577ea6b2c2
treeb6754b9f6c1246e4dc0694ffe753ae2e89a76239
parent15c924a7437b9763b1b84aa693a842c49184586d
cpu-uclass: relocate ops pointers for CONFIG_NEEDS_MANUAL_RELOC

Relocate cpu_ops pointers when CONFIG_NEEDS_MANUAL_RELOC is enabled.

The (gd->flags & GD_FLG_RELOC) check was added to make sure the reloc_done
logic works for drivers that use DM_FLAG_PRE_RELOC.

Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Link: https://lore.kernel.org/r/20220531181435.3473549-2-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/cpu/cpu-uclass.c