add arm64 support

- add arm64 dependent codes with GICv3 and SVE support
- fix bugs based on architecture separation requests
This commit is contained in:
Takayuki Okamoto
2017-09-05 15:06:27 +09:00
parent 704096b139
commit 9989f41fd3
192 changed files with 26941 additions and 34 deletions

22
arch/arm64/kernel/smp.c Normal file
View File

@@ -0,0 +1,22 @@
/* smp.c COPYRIGHT FUJITSU LIMITED 2015 */
#include <thread_info.h>
#include <smp.h>
/*
* as from 2.5, kernels no longer have an init_tasks structure
* so we need some other way of telling a new secondary core
* where to place its SVC stack
*/
/* initialize value for BSP bootup */
/* AP bootup value setup in ihk_mc_boot_cpu() */
struct start_kernel_param;
extern void start_kernel(struct start_kernel_param *param);
extern struct start_kernel_param *ihk_param_head;
struct secondary_data secondary_data = {
.stack = (char *)&init_thread_info + THREAD_START_SP,
.next_pc = (uint64_t)start_kernel,
.arg = (unsigned long)&ihk_param_head
};