Skip to content

add TOC support

Sven Schnelle linux-parisc 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 3 repliesIn review
  2. v22 patches 8 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- add config option
- move toc code to its own c & .S file
- use early_initcall for setup
- split out struct declarations
- use sizeof(*ret) instead of sizeof(struct x)
- move virt_map to assembly.h so it can be used from other files

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4parisc: move virt_map macro to assembly.harch/parisc/include/asm/assembly.h arch/parisc/kernel/entry.S+25 -240 replies
2/4parisc: add PIM TOC data structuresarch/parisc/include/uapi/asm/pdc.h+22 -00 replies
3/4parisc/firmware: add functions to retrieve TOC dataarch/parisc/include/asm/pdc.h arch/parisc/kernel/firmware.c+34 -00 replies
4/4parisc: add support for TOC (transfer of control)arch/parisc/Kconfig arch/parisc/include/asm/processor.h arch/parisc/include/uapi/asm/pdc.h +3 more+222 -22 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/4] add TOC support

This adds support for the TOC switches found on most PA-RISC machines. I tested this on my c8000 and a HP 16702A, which is basically a B160L with some logic analyzer hardware.

Changes in v3:
- add config option
- move toc code to its own c & .S file
- use early_initcall for setup
- split out struct declarations
- use sizeof(*ret) instead of sizeof(struct x)
- move virt_map to assembly.h so it can be used from other files

Changes in v2:
- fix stack allocation
- align toc_lock on 16 byte boundary
- move toc_lock declaration to processor.c

Sven Schnelle (4):
parisc: move virt_map macro to assembly.h
parisc: add PIM TOC data structures parisc/firmware: add functions to retrieve TOC data
parisc: add support for TOC (transfer of control)

 arch/parisc/Kconfig                 |  14 ++++
 arch/parisc/include/asm/assembly.h  |  25 +++++++
 arch/parisc/include/asm/pdc.h       |   2 +
 arch/parisc/include/asm/processor.h |   4 +
 arch/parisc/include/uapi/asm/pdc.h  |  28 ++++++-
 arch/parisc/kernel/Makefile         |   1 +
 arch/parisc/kernel/entry.S          |  24 ------
 arch/parisc/kernel/firmware.c       |  32 ++++++++
 arch/parisc/kernel/toc.c            | 111 ++++++++++++++++++++++++++++
 arch/parisc/kernel/toc_asm.S        |  88 ++++++++++++++++++++++
 10 files changed, 303 insertions(+), 26 deletions(-)
 create mode 100644 arch/parisc/kernel/toc.c
 create mode 100644 arch/parisc/kernel/toc_asm.S
Signature · 1 line
2.33.0