diff options
author | James Hogan <james.hogan@imgtec.com> | 2012-10-05 16:56:56 +0100 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2013-03-02 20:09:51 +0000 |
commit | 42682c6c42a5765b2c7cccfca170368fef6191ef (patch) | |
tree | adcfa5e96cd98527ee75fc541efc279357bbe6a2 /arch/metag/kernel/head.S | |
parent | fdabf525b4b7aab3945c19eac39d3a65b68d0c4f (diff) | |
download | op-kernel-dev-42682c6c42a5765b2c7cccfca170368fef6191ef.zip op-kernel-dev-42682c6c42a5765b2c7cccfca170368fef6191ef.tar.gz |
metag: SMP support
Add SMP support for metag. This allows Linux to take control of multiple
hardware threads on a single Meta core, treating them as separate Linux
CPUs.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Diffstat (limited to 'arch/metag/kernel/head.S')
-rw-r--r-- | arch/metag/kernel/head.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/metag/kernel/head.S b/arch/metag/kernel/head.S index 8b13886..969dffa 100644 --- a/arch/metag/kernel/head.S +++ b/arch/metag/kernel/head.S @@ -43,3 +43,15 @@ __start: __exit: XOR TXENABLE,D0Re0,D0Re0 .size __exit,.-__exit + +#ifdef CONFIG_SMP + .global _secondary_startup + .type _secondary_startup,function +_secondary_startup: + MOVT A0StP,#HI(_secondary_data_stack) + ADD A0StP,A0StP,#LO(_secondary_data_stack) + GETD A0StP,[A0StP] + ADD A0StP,A0StP,#THREAD_INFO_SIZE + B _secondary_start_kernel + .size _secondary_startup,.-_secondary_startup +#endif |