Attention is currently required from: ron minnich.

Martin L Roth has uploaded this change for review.

View Change

arch/ppc64: Reformat C files with clang-format v16

Reformat only - No functional changes.

Change-Id: Ibf53ecae41689f48601a6b3d98a67853bf350d3e
Signed-off-by: Martin Roth <gaumless@gmail.com>
---
M src/arch/ppc64/arch_timer.c
M src/arch/ppc64/boot.c
M src/arch/ppc64/stages.c
3 files changed, 9 insertions(+), 7 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/80010/1
diff --git a/src/arch/ppc64/arch_timer.c b/src/arch/ppc64/arch_timer.c
index 799bff0..b247828 100644
--- a/src/arch/ppc64/arch_timer.c
+++ b/src/arch/ppc64/arch_timer.c
@@ -9,7 +9,9 @@
/* Time base frequency is 512 MHz so 512 ticks per usec */
#define TB_TICKS_PER_USEC 512

-__weak void init_timer(void) { /* do nothing */ }
+__weak void init_timer(void)
+{ /* do nothing */
+}

static struct monotonic_counter {
int initialized;
diff --git a/src/arch/ppc64/boot.c b/src/arch/ppc64/boot.c
index bbd0d39..b5ecb95 100644
--- a/src/arch/ppc64/boot.c
+++ b/src/arch/ppc64/boot.c
@@ -10,11 +10,11 @@
*/
void arch_prog_run(struct prog *prog)
{
- asm volatile(
- "mtctr %1\n"
- "mr 3, %0\n"
- "bctr\n"
- :: "r"(prog_entry_arg(prog)), "r"(prog_entry(prog)) : "memory");
+ asm volatile("mtctr %1\n"
+ "mr 3, %0\n"
+ "bctr\n" ::"r"(prog_entry_arg(prog)),
+ "r"(prog_entry(prog))
+ : "memory");
}

#else
diff --git a/src/arch/ppc64/stages.c b/src/arch/ppc64/stages.c
index 01b9efa..9076c45 100644
--- a/src/arch/ppc64/stages.c
+++ b/src/arch/ppc64/stages.c
@@ -28,7 +28,7 @@
hrmor = read_spr(SPR_HRMOR);
asm volatile("sync; isync" ::: "memory");
write_spr(SPR_HRMOR, 0);
- asm volatile("or 1,1,%0; slbia 7; sync; isync" :: "r"(hrmor) : "memory");
+ asm volatile("or 1,1,%0; slbia 7; sync; isync" ::"r"(hrmor) : "memory");
#endif

main();

To view, visit change 80010. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ibf53ecae41689f48601a6b3d98a67853bf350d3e
Gerrit-Change-Number: 80010
Gerrit-PatchSet: 1
Gerrit-Owner: Martin L Roth <gaumless@gmail.com>
Gerrit-Reviewer: ron minnich <rminnich@gmail.com>
Gerrit-Attention: ron minnich <rminnich@gmail.com>
Gerrit-MessageType: newchange