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

docs: Debugging390.txt: convert table to ascii artwork

The first bit/value table inside the document is very
hard to read and won't fit ReST format. Also, some columns aren't
properly aligned.

Convert it to a nice ascii artwork table with makes it easier to
read as plain text and is compatible with ReST format parser
on Sphinx.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>

authored by

Mauro Carvalho Chehab and committed by
Heiko Carstens
dc3988f4 04310324

+120 -90
+120 -90
Documentation/s390/Debugging390.txt
··· 78 78 have a logical=physical mapping for the address you are 79 79 currently running at. 80 80 81 - Bit Value 82 - s/390 z/Architecture 83 - 0 0 Reserved ( must be 0 ) otherwise specification exception occurs. 84 - 85 - 1 1 Program Event Recording 1 PER enabled, 86 - PER is used to facilitate debugging e.g. single stepping. 87 - 88 - 2-4 2-4 Reserved ( must be 0 ). 89 - 90 - 5 5 Dynamic address translation 1=DAT on. 91 - 92 - 6 6 Input/Output interrupt Mask 93 - 94 - 7 7 External interrupt Mask used primarily for interprocessor 95 - signalling and clock interrupts. 96 - 97 - 8-11 8-11 PSW Key used for complex memory protection mechanism 98 - (not used under linux) 99 - 100 - 12 12 1 on s/390 0 on z/Architecture 101 - 102 - 13 13 Machine Check Mask 1=enable machine check interrupts 103 - 104 - 14 14 Wait State. Set this to 1 to stop the processor except for 105 - interrupts and give time to other LPARS. Used in CPU idle in 106 - the kernel to increase overall usage of processor resources. 107 - 108 - 15 15 Problem state ( if set to 1 certain instructions are disabled ) 109 - all linux user programs run with this bit 1 110 - ( useful info for debugging under VM ). 111 - 112 - 16-17 16-17 Address Space Control 113 - 114 - 00 Primary Space Mode: 115 - The register CR1 contains the primary address-space control ele- 116 - ment (PASCE), which points to the primary space region/segment 117 - table origin. 118 - 119 - 01 Access register mode 120 - 121 - 10 Secondary Space Mode: 122 - The register CR7 contains the secondary address-space control 123 - element (SASCE), which points to the secondary space region or 124 - segment table origin. 125 - 126 - 11 Home Space Mode: 127 - The register CR13 contains the home space address-space control 128 - element (HASCE), which points to the home space region/segment 129 - table origin. 130 - 131 - See "Address Spaces on Linux for s/390 & z/Architecture" below 132 - for more information about address space usage in Linux. 133 - 134 - 18-19 18-19 Condition codes (CC) 135 - 136 - 20 20 Fixed point overflow mask if 1=FPU exceptions for this event 137 - occur ( normally 0 ) 138 - 139 - 21 21 Decimal overflow mask if 1=FPU exceptions for this event occur 140 - ( normally 0 ) 141 - 142 - 22 22 Exponent underflow mask if 1=FPU exceptions for this event occur 143 - ( normally 0 ) 144 - 145 - 23 23 Significance Mask if 1=FPU exceptions for this event occur 146 - ( normally 0 ) 147 - 148 - 24-31 24-30 Reserved Must be 0. 149 - 150 - 31 Extended Addressing Mode 151 - 32 Basic Addressing Mode 152 - Used to set addressing mode 153 - PSW 31 PSW 32 154 - 0 0 24 bit 155 - 0 1 31 bit 156 - 1 1 64 bit 157 - 158 - 32 1=31 bit addressing mode 0=24 bit addressing mode (for backward 159 - compatibility), linux always runs with this bit set to 1 160 - 161 - 33-64 Instruction address. 162 - 33-63 Reserved must be 0 163 - 64-127 Address 164 - In 24 bits mode bits 64-103=0 bits 104-127 Address 165 - In 31 bits mode bits 64-96=0 bits 97-127 Address 166 - Note: unlike 31 bit mode on s/390 bit 96 must be zero 167 - when loading the address with LPSWE otherwise a 168 - specification exception occurs, LPSW is fully backward 169 - compatible. 170 - 81 + +-------------------------+-------------------------------------------------+ 82 + | Bit | | 83 + +--------+----------------+ Value | 84 + | s/390 | z/Architecture | | 85 + +========+================+=================================================+ 86 + | 0 | 0 | Reserved (must be 0) otherwise specification | 87 + | | | exception occurs. | 88 + +--------+----------------+-------------------------------------------------+ 89 + | 1 | 1 | Program Event Recording 1 PER enabled, | 90 + | | | PER is used to facilitate debugging e.g. | 91 + | | | single stepping. | 92 + +--------+----------------+-------------------------------------------------+ 93 + | 2-4 | 2-4 | Reserved (must be 0). | 94 + +--------+----------------+-------------------------------------------------+ 95 + | 5 | 5 | Dynamic address translation 1=DAT on. | 96 + +--------+----------------+-------------------------------------------------+ 97 + | 6 | 6 | Input/Output interrupt Mask | 98 + +--------+----------------+-------------------------------------------------+ 99 + | 7 | 7 | External interrupt Mask used primarily for | 100 + | | | interprocessor signalling and clock interrupts. | 101 + +--------+----------------+-------------------------------------------------+ 102 + | 8-11 | 8-11 | PSW Key used for complex memory protection | 103 + | | | mechanism (not used under linux) | 104 + +--------+----------------+-------------------------------------------------+ 105 + | 12 | 12 | 1 on s/390 0 on z/Architecture | 106 + +--------+----------------+-------------------------------------------------+ 107 + | 13 | 13 | Machine Check Mask 1=enable machine check | 108 + | | | interrupts | 109 + +--------+----------------+-------------------------------------------------+ 110 + | 14 | 14 | Wait State. Set this to 1 to stop the processor | 111 + | | | except for interrupts and give time to other | 112 + | | | LPARS. Used in CPU idle in the kernel to | 113 + | | | increase overall usage of processor resources. | 114 + +--------+----------------+-------------------------------------------------+ 115 + | 15 | 15 | Problem state (if set to 1 certain instructions | 116 + | | | are disabled). All linux user programs run with | 117 + | | | this bit 1 (useful info for debugging under VM).| 118 + +--------+----------------+-------------------------------------------------+ 119 + | 16-17 | 16-17 | Address Space Control | 120 + | | | | 121 + | | | 00 Primary Space Mode: | 122 + | | | | 123 + | | | The register CR1 contains the primary | 124 + | | | address-space control element (PASCE), which | 125 + | | | points to the primary space region/segment | 126 + | | | table origin. | 127 + | | | | 128 + | | | 01 Access register mode | 129 + | | | | 130 + | | | 10 Secondary Space Mode: | 131 + | | | | 132 + | | | The register CR7 contains the secondary | 133 + | | | address-space control element (SASCE), which | 134 + | | | points to the secondary space region or | 135 + | | | segment table origin. | 136 + | | | | 137 + | | | 11 Home Space Mode: | 138 + | | | | 139 + | | | The register CR13 contains the home space | 140 + | | | address-space control element (HASCE), which | 141 + | | | points to the home space region/segment | 142 + | | | table origin. | 143 + | | | | 144 + | | | See "Address Spaces on Linux for s/390 & | 145 + | | | z/Architecture" below for more information | 146 + | | | about address space usage in Linux. | 147 + +--------+----------------+-------------------------------------------------+ 148 + | 18-19 | 18-19 | Condition codes (CC) | 149 + +--------+----------------+-------------------------------------------------+ 150 + | 20 | 20 | Fixed point overflow mask if 1=FPU exceptions | 151 + | | | for this event occur (normally 0) | 152 + +--------+----------------+-------------------------------------------------+ 153 + | 21 | 21 | Decimal overflow mask if 1=FPU exceptions for | 154 + | | | this event occur (normally 0) | 155 + +--------+----------------+-------------------------------------------------+ 156 + | 22 | 22 | Exponent underflow mask if 1=FPU exceptions | 157 + | | | for this event occur (normally 0) | 158 + +--------+----------------+-------------------------------------------------+ 159 + | 23 | 23 | Significance Mask if 1=FPU exceptions for this | 160 + | | | event occur (normally 0) | 161 + +--------+----------------+-------------------------------------------------+ 162 + | 24-31 | 24-30 | Reserved Must be 0. | 163 + | +----------------+-------------------------------------------------+ 164 + | | 31 | Extended Addressing Mode | 165 + | +----------------+-------------------------------------------------+ 166 + | | 32 | Basic Addressing Mode | 167 + | | | | 168 + | | | Used to set addressing mode | 169 + | | | | 170 + | | | +---------+----------+----------+ | 171 + | | | | PSW 31 | PSW 32 | | | 172 + | | | +---------+----------+----------+ | 173 + | | | | 0 | 0 | 24 bit | | 174 + | | | +---------+----------+----------+ | 175 + | | | | 0 | 1 | 31 bit | | 176 + | | | +---------+----------+----------+ | 177 + | | | | 1 | 1 | 64 bit | | 178 + | | | +---------+----------+----------+ | 179 + +--------+----------------+-------------------------------------------------+ 180 + | 32 | | 1=31 bit addressing mode 0=24 bit addressing | 181 + | | | mode (for backward compatibility), linux | 182 + | | | always runs with this bit set to 1 | 183 + +--------+----------------+-------------------------------------------------+ 184 + | 33-64 | | Instruction address. | 185 + | +----------------+-------------------------------------------------+ 186 + | | 33-63 | Reserved must be 0 | 187 + | +----------------+-------------------------------------------------+ 188 + | | 64-127 | Address | 189 + | | | | 190 + | | | - In 24 bits mode bits 64-103=0 bits 104-127 | 191 + | | | Address | 192 + | | | - In 31 bits mode bits 64-96=0 bits 97-127 | 193 + | | | Address | 194 + | | | | 195 + | | | Note: | 196 + | | | unlike 31 bit mode on s/390 bit 96 must be | 197 + | | | zero when loading the address with LPSWE | 198 + | | | otherwise a specification exception occurs, | 199 + | | | LPSW is fully backward compatible. | 200 + +--------+----------------+-------------------------------------------------+ 171 201 172 202 Prefix Page(s) 173 203 --------------