diff options
Diffstat (limited to 'bootwrapper')
-rw-r--r-- | bootwrapper/bootwrapper.h | 2 | ||||
-rw-r--r-- | bootwrapper/c_start.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/bootwrapper/bootwrapper.h b/bootwrapper/bootwrapper.h index 5bab412..bc2671b 100644 --- a/bootwrapper/bootwrapper.h +++ b/bootwrapper/bootwrapper.h @@ -48,7 +48,7 @@ #define FLAGS_SET 0x30 #define FLAGS_CLR 0x34 -#define VE_KFSCB_BASE 0x60000000 /* Kingfisher System Configuration Block */ +#define VE_KFSCB_BASE 0x60000000 /* Kingfisher System Configuration Block */ #define KFS_ID_OFFSET 0xFFC /* Kingfisher System Platform ID register offset (KFS_ID) */ #define KFS_ID_ARCH_MASK 0x000F0000 /* Mask for extracting KFS architecture */ #define KFS_ID_ARCH_SHIFT 16 /* Shift for extracting KFS architecture */ diff --git a/bootwrapper/c_start.c b/bootwrapper/c_start.c index 0678db3..a4f1729 100644 --- a/bootwrapper/c_start.c +++ b/bootwrapper/c_start.c @@ -72,7 +72,9 @@ void setup_gic_nonsecure(unsigned cluster_id, unsigned cpu_id) */ void kick(unsigned cpu_id, unsigned cluster_id, int secondary_cpus) { - int cpu_mask = (((1 << (secondary_cpus + 1)) - 1) & ~(1 << cpu_id)) << (cluster_id << 2); + int cpu_mask = + (((1 << (secondary_cpus + 1)) - + 1) & ~(1 << cpu_id)) << (cluster_id << 2); write32(VE_SYS_BASE + FLAGS_CLR, 0xffffffff); // clear the flags register write32(VE_SYS_BASE + FLAGS_SET, (unsigned)start); // set the start address in the flags register |