diff options
author | Harry Liebel <Harry.Liebel@arm.com> | 2013-12-12 13:00:29 +0000 |
---|---|---|
committer | Dan Handley <dan.handley@arm.com> | 2014-01-17 10:27:53 +0000 |
commit | eaec590e5fc2c7e3da8c353bd4139bd4b52b99c6 (patch) | |
tree | 1111fa88955c4ed37837f4dd4db37e76afa366ab /include/debug.h | |
parent | 4f6036834fb7f53e3002c37af1c9d0681e8ef675 (diff) |
Probe for GICv3 re-distributors on core bring-up
The GICv3 distributor can have more ports than CPUs are available in
the system. Probe all re-distributors and use the matching affinity
levels as specified by each core and re-distributor to decide which
re-distributor to use with which CPU core.
If a core cannot be matched with a re-distributor, the core panics and
is placed in an endless loop.
Change-Id: Ie393cfe07c7449a2383959e3c968664882e18afc
Diffstat (limited to 'include/debug.h')
-rw-r--r-- | include/debug.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/debug.h b/include/debug.h index e3c3c93..e8ba7e2 100644 --- a/include/debug.h +++ b/include/debug.h @@ -55,5 +55,15 @@ #define ERROR(...) printf("ERROR: " __VA_ARGS__) + +/* For the moment this Panic function is very basic, Report an error and + * spin. This can be expanded in the future to provide more information. + */ +static inline void panic(void) +{ + ERROR("PANIC\n"); + while (1); +} + #endif /* __ASSEMBLY__ */ #endif /* __DEBUG_H__ */ |