Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: sh: convert register-banks.txt to ReST

- Add a SPDX header;
- Adjust document title to follow ReST style;
- Add blank lines to make ReST markup happy
- Add it to sh/index.rst.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/adf117cf1edd7f43cb839ff2800f4315dfbcce13.1592203650.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
781885fd 7539b417

+12 -4
+1
Documentation/sh/index.rst
··· 8 8 :maxdepth: 1 9 9 10 10 new-machine 11 + register-banks 11 12 12 13 Memory Management 13 14 =================
+10 -3
Documentation/sh/register-banks.txt Documentation/sh/register-banks.rst
··· 1 - Notes on register bank usage in the kernel 2 - ========================================== 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 3 + ========================================== 4 + Notes on register bank usage in the kernel 5 + ========================================== 3 6 4 7 Introduction 5 8 ------------ ··· 26 23 27 24 - r0_bank, r1_bank (referenced as k0 and k1, used for scratch 28 25 registers when doing exception handling). 26 + 29 27 - r2_bank (used to track the EXPEVT/INTEVT code) 28 + 30 29 - Used by do_IRQ() and friends for doing irq mapping based off 31 30 of the interrupt exception vector jump table offset 31 + 32 32 - r6_bank (global interrupt mask) 33 + 33 34 - The SR.IMASK interrupt handler makes use of this to set the 34 35 interrupt priority level (used by local_irq_enable()) 35 - - r7_bank (current) 36 36 37 + - r7_bank (current)
+1 -1
arch/sh/Kconfig.cpu
··· 85 85 that are lacking this bit must have another method in place for 86 86 accomplishing what is taken care of by the banked registers. 87 87 88 - See <file:Documentation/sh/register-banks.txt> for further 88 + See <file:Documentation/sh/register-banks.rst> for further 89 89 information on SR.RB and register banking in the kernel in general. 90 90 91 91 config CPU_HAS_PTEAEX