]> git.baikalelectronics.ru Git - kernel.git/commit
sh: SMP support for SH2 entry.S
authorRich Felker <dalias@libc.org>
Mon, 15 Feb 2016 18:32:31 +0000 (18:32 +0000)
committerRich Felker <dalias@libc.org>
Fri, 5 Aug 2016 03:29:37 +0000 (03:29 +0000)
commit204412c219c1a467099c0c52492d8f40abf995e7
treee6fa08e0eb4c6067324460c9f4bde918362e9192
parentf3f2a1776acbeb8fbcf70d8a1ebe7e287107e3e2
sh: SMP support for SH2 entry.S

The SH2 version of entry.S uses global variables, which need to be
cpu-local in order to work with SMP. For ease of access from asm,
simply use arrays indexed by cpu number, and require the availability
of an address (mmio register or properly setup per-cpu memory) from
which the current cpu's index can be read.

Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/kernel/cpu/sh2/entry.S