Skip to content

xtensa: support call0 ABI kernel

Max Filippov lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10xtensa: move _SimulateUserKernelVectorException out of WindowVectorsarch/xtensa/kernel/vectors.S+19 -210 replies
2/10xtensa: use a14 instead of a15 in inline assemblyarch/xtensa/include/asm/atomic.h arch/xtensa/include/asm/cmpxchg.h+21 -210 replies
3/10xtensa: don't use a12 in strncpy_userarch/xtensa/lib/strncpy_user.S+8 -90 replies
4/10xtensa: don't use a12 in __xtensa_copy_user in call0 ABIarch/xtensa/lib/usercopy.S+22 -60 replies
5/10xtensa: definitions for call0 ABIarch/xtensa/include/asm/asmmacro.h arch/xtensa/include/asm/core.h arch/xtensa/include/asm/processor.h+102 -60 replies
6/10xtensa: implement call0 ABI support in assemblyarch/xtensa/boot/boot-redboot/bootstrap.S arch/xtensa/kernel/entry.S arch/xtensa/kernel/head.S +2 more+243 -1210 replies
7/10xtensa: use register window specific opcodes only when presentarch/xtensa/boot/boot-elf/bootstrap.S arch/xtensa/boot/boot-redboot/bootstrap.S arch/xtensa/kernel/align.S +2 more+10 -20 replies
8/10xtensa: only build windowed register support code when neededarch/xtensa/include/asm/traps.h arch/xtensa/kernel/entry.S arch/xtensa/kernel/setup.c +4 more+45 -50 replies
9/10xtensa: remove unused variable wmaskarch/xtensa/kernel/traps.c+1 -30 replies
10/10xtensa: move section symbols to asm/sections.harch/xtensa/include/asm/sections.h arch/xtensa/kernel/setup.c+70 -710 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] xtensa: support call0 ABI kernel

Hello,

this series adds support for building kernel with call0 ABI. This extends linux support to xtensa cores without windowed registers option. call0 ABI kernel still supports windowed ABI userspace on cores with windowed registers. In this case kernel entry from the userspace saves active register windows as usual.

Max Filippov (10):
xtensa: move _SimulateUserKernelVectorException out of WindowVectors
xtensa: use a14 instead of a15 in inline assembly
xtensa: don't use a12 in strncpy_user
xtensa: don't use a12 in __xtensa_copy_user in call0 ABI
xtensa: definitions for call0 ABI
xtensa: implement call0 ABI support in assembly
xtensa: use register window specific opcodes only when present
xtensa: only build windowed register support code when needed
xtensa: remove unused variable wmask
xtensa: move section symbols to asm/sections.h

 arch/xtensa/boot/boot-elf/bootstrap.S     |   2 +
 arch/xtensa/boot/boot-redboot/bootstrap.S |  72 ++++----
 arch/xtensa/include/asm/asmmacro.h        |  65 +++++++
 arch/xtensa/include/asm/atomic.h          |  26 +--
 arch/xtensa/include/asm/cmpxchg.h         |  16 +-
 arch/xtensa/include/asm/core.h            |  11 ++
 arch/xtensa/include/asm/processor.h       |  32 +++-
 arch/xtensa/include/asm/sections.h        |  41 ++++
 arch/xtensa/include/asm/traps.h           |   2 +
 arch/xtensa/kernel/align.S                |   2 +
 arch/xtensa/kernel/entry.S                | 216 ++++++++++++++--------
 arch/xtensa/kernel/head.S                 |  24 ++-
 arch/xtensa/kernel/mcount.S               |  38 +++-
 arch/xtensa/kernel/process.c              |  27 ++-
 arch/xtensa/kernel/setup.c                | 102 ++++------
 arch/xtensa/kernel/signal.c               |  12 +-
 arch/xtensa/kernel/traps.c                |   6 +-
 arch/xtensa/kernel/vectors.S              |  55 +++---
 arch/xtensa/kernel/vmlinux.lds.S          |  12 +-
 arch/xtensa/lib/strncpy_user.S            |  17 +-
 arch/xtensa/lib/usercopy.S                |  28 ++-
 21 files changed, 541 insertions(+), 265 deletions(-)
 create mode 100644 arch/xtensa/include/asm/sections.h
Signature · 1 line
2.20.1