~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/s390/boot/ipl_data.c

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/s390/boot/ipl_data.c (Architecture sparc) and /arch/m68k/boot/ipl_data.c (Architecture m68k)


  1 // SPDX-License-Identifier: GPL-2.0                 1 
  2                                                   
  3 #include <linux/compat.h>                         
  4 #include <linux/ptrace.h>                         
  5 #include <asm/cio.h>                              
  6 #include <asm/asm-offsets.h>                      
  7 #include "boot.h"                                 
  8                                                   
  9 #define CCW0(cmd, addr, cnt, flg) \               
 10         { .cmd_code = cmd, .cda = addr, .count    
 11                                                   
 12 #define PSW_MASK_DISABLED (PSW_MASK_WAIT | PSW    
 13                                                   
 14 struct ipl_lowcore {                              
 15         psw_t32         ipl_psw;                  
 16         struct ccw0     ccwpgm[2];                
 17         u8              fill[56];                 
 18         struct ccw0     ccwpgmcc[20];             
 19         u8              pad_0xf0[0x01a0-0x00f0    
 20         psw_t           restart_psw;              
 21         psw_t           external_new_psw;         
 22         psw_t           svc_new_psw;              
 23         psw_t           program_new_psw;          
 24         psw_t           mcck_new_psw;             
 25         psw_t           io_new_psw;               
 26 };                                                
 27                                                   
 28 /*                                                
 29  * Initial lowcore for IPL: the first 24 bytes    
 30  * addresses 0-23 (a PSW and two CCWs). Bytes     
 31  * The next 160 bytes are loaded to addresses     
 32  * the continuation of the CCW program started    
 33  * range 0x0f0-0x730 from the image to the ran    
 34  * memory. At the end of the channel program t    
 35  * loaded.                                        
 36  * Initial processing starts at 0x200 = iplsta    
 37  *                                                
 38  * The restart psw points to iplstart which al    
 39  * image into memory and starting it by a psw     
 40  * other default psw new locations contain a d    
 41  * the address indicates which psw was loaded.    
 42  *                                                
 43  * Note that the 'file' utility can detect s39    
 44  * that to succeed the two initial CCWs, and t    
 45  * be present.                                    
 46  */                                               
 47 static struct ipl_lowcore ipl_lowcore __used _    
 48         .ipl_psw = { .mask = PSW32_MASK_BASE,     
 49         .ccwpgm = {                               
 50                 [ 0] = CCW0(CCW_CMD_READ_IPL,     
 51                 [ 1] = CCW0(CCW_CMD_READ_IPL,     
 52         },                                        
 53         .fill = {                                 
 54                 [ 0 ... 55] = 0x40,               
 55         },                                        
 56         .ccwpgmcc = {                             
 57                 [ 0] = CCW0(CCW_CMD_READ_IPL,     
 58                 [ 1] = CCW0(CCW_CMD_READ_IPL,     
 59                 [ 2] = CCW0(CCW_CMD_READ_IPL,     
 60                 [ 3] = CCW0(CCW_CMD_READ_IPL,     
 61                 [ 4] = CCW0(CCW_CMD_READ_IPL,     
 62                 [ 5] = CCW0(CCW_CMD_READ_IPL,     
 63                 [ 6] = CCW0(CCW_CMD_READ_IPL,     
 64                 [ 7] = CCW0(CCW_CMD_READ_IPL,     
 65                 [ 8] = CCW0(CCW_CMD_READ_IPL,     
 66                 [ 9] = CCW0(CCW_CMD_READ_IPL,     
 67                 [10] = CCW0(CCW_CMD_READ_IPL,     
 68                 [11] = CCW0(CCW_CMD_READ_IPL,     
 69                 [12] = CCW0(CCW_CMD_READ_IPL,     
 70                 [13] = CCW0(CCW_CMD_READ_IPL,     
 71                 [14] = CCW0(CCW_CMD_READ_IPL,     
 72                 [15] = CCW0(CCW_CMD_READ_IPL,     
 73                 [16] = CCW0(CCW_CMD_READ_IPL,     
 74                 [17] = CCW0(CCW_CMD_READ_IPL,     
 75                 [18] = CCW0(CCW_CMD_READ_IPL,     
 76                 [19] = CCW0(CCW_CMD_READ_IPL,     
 77         },                                        
 78         .restart_psw      = { .mask = 0, .addr    
 79         .external_new_psw = { .mask = PSW_MASK    
 80         .svc_new_psw      = { .mask = PSW_MASK    
 81         .program_new_psw  = { .mask = PSW_MASK    
 82         .mcck_new_psw     = { .mask = PSW_MASK    
 83         .io_new_psw       = { .mask = PSW_MASK    
 84 };                                                
 85                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php