mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
powerpc/32: use patch_site_addr() in machine_init()
Use patch_site_addr() instead of hardcoding the address calculation in machine_init() Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
36b08b431e
commit
04b0a72f28
1 changed files with 1 additions and 2 deletions
|
@ -101,8 +101,7 @@ notrace unsigned long __init early_init(unsigned long dt_ptr)
|
||||||
*/
|
*/
|
||||||
notrace void __init machine_init(u64 dt_ptr)
|
notrace void __init machine_init(u64 dt_ptr)
|
||||||
{
|
{
|
||||||
unsigned int *addr = (unsigned int *)((unsigned long)&patch__memset_nocache +
|
unsigned int *addr = (unsigned int *)patch_site_addr(&patch__memset_nocache);
|
||||||
patch__memset_nocache);
|
|
||||||
unsigned long insn;
|
unsigned long insn;
|
||||||
|
|
||||||
/* Configure static keys first, now that we're relocated. */
|
/* Configure static keys first, now that we're relocated. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue