summaryrefslogtreecommitdiff
path: root/big-little/virtualisor/cpus/a7/a7.c
diff options
context:
space:
mode:
Diffstat (limited to 'big-little/virtualisor/cpus/a7/a7.c')
-rw-r--r--big-little/virtualisor/cpus/a7/a7.c42
1 files changed, 19 insertions, 23 deletions
diff --git a/big-little/virtualisor/cpus/a7/a7.c b/big-little/virtualisor/cpus/a7/a7.c
index 6ff8f6c..e9e16af 100644
--- a/big-little/virtualisor/cpus/a7/a7.c
+++ b/big-little/virtualisor/cpus/a7/a7.c
@@ -18,7 +18,7 @@
* contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
- */
+ */
#include "bl.h"
#include "virtualisor.h"
@@ -33,41 +33,37 @@ static virt_descriptor a7_virt_desc;
*/
unsigned a7_trap_handle(gp_regs * regs, unsigned hsr, unsigned sibling_cpu)
{
- return 0;
+ return 0;
}
unsigned a7_trap_save(unsigned first_cpu, unsigned sibling_cpu)
{
- return 0;
+ return 0;
}
unsigned a7_trap_restore(unsigned first_cpu, unsigned sibling_cpu)
{
- return 0;
+ return 0;
}
unsigned a7_trap_setup(unsigned first_cpu, unsigned sibling_cpu)
{
- if (switcher) {
+ if (switcher) {
- } else {
- /* Always on */
- }
+ } else {
+ /* Always on */
+ }
- /*
- * Indicate that cpu specific virtualisor setup
- * has been done. Restore context instead on next
- * invocation
- */
- a7_virt_desc.init[read_cpuid()] = 1;
- return 0;
+ /*
+ * Indicate that cpu specific virtualisor setup
+ * has been done. Restore context instead on next
+ * invocation
+ */
+ a7_virt_desc.init[read_cpuid()] = 1;
+ return 0;
}
-static virt_descriptor a7_virt_desc __attribute__ ((section("virt_desc_section"))) = {
- A7,
- {0},
- a7_trap_setup,
- a7_trap_handle,
- a7_trap_save,
- a7_trap_restore,
-};
+static virt_descriptor a7_virt_desc
+ __attribute__ ((section("virt_desc_section"))) = {
+ A7, {
+0}, a7_trap_setup, a7_trap_handle, a7_trap_save, a7_trap_restore,};