Skip to content

Commit 691e5a3

Browse files
use more parens around constants
Though common/scu.h is still slightly inconsistent. Signed-off-by: Nick Desaulniers <nick.desaulniers@gmail.com>
1 parent de867e5 commit 691e5a3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

common/pdn.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
// Via: https://www.3dbrew.org/wiki/PDN_Registers
55

6-
#define PDN_LGR_SOCMODE 0x10141300
7-
#define PDN_LGR_CNT 0x10141304
8-
#define PDN_LGR_CPU_CNT 0x10141310
6+
#define PDN_LGR_SOCMODE (0x10141300)
7+
#define PDN_LGR_CNT (0x10141304)
8+
#define PDN_LGR_CPU_CNT (0x10141310)
99

1010
#ifndef __ASSEMBLER__
1111

common/scu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef _SCU_H
22
#define _SCU_H
33

4-
#define SCU_BASE_ADDR 0x17E00000
4+
#define SCU_BASE_ADDR (0x17E00000)
55

66
// https://developer.arm.com/documentation/ddi0360/f/mpcore-private-memory-region/about-the-mpcore-private-memory-region/scu-specific-registers?lang=en
77
#define SCU_CTRL_REG 0x00

0 commit comments

Comments
 (0)