@@ -80,7 +80,7 @@ static noinline char *strsym(void *ip)
80
80
return buf ;
81
81
}
82
82
83
- void decompressor_printk (const char * fmt , ...)
83
+ void boot_printk (const char * fmt , ...)
84
84
{
85
85
char buf [1024 ] = { 0 };
86
86
char * end = buf + sizeof (buf ) - 1 ; /* make sure buf is 0 terminated */
@@ -129,13 +129,13 @@ void print_stacktrace(unsigned long sp)
129
129
(unsigned long )_stack_end };
130
130
bool first = true;
131
131
132
- decompressor_printk ("Call Trace:\n" );
132
+ boot_printk ("Call Trace:\n" );
133
133
while (!(sp & 0x7 ) && on_stack (& boot_stack , sp , sizeof (struct stack_frame ))) {
134
134
struct stack_frame * sf = (struct stack_frame * )sp ;
135
135
136
- decompressor_printk (first ? "(sp:%016lx [<%016lx>] %pS)\n" :
137
- " sp:%016lx [<%016lx>] %pS\n" ,
138
- sp , sf -> gprs [8 ], (void * )sf -> gprs [8 ]);
136
+ boot_printk (first ? "(sp:%016lx [<%016lx>] %pS)\n" :
137
+ " sp:%016lx [<%016lx>] %pS\n" ,
138
+ sp , sf -> gprs [8 ], (void * )sf -> gprs [8 ]);
139
139
if (sf -> back_chain <= sp )
140
140
break ;
141
141
sp = sf -> back_chain ;
@@ -148,34 +148,30 @@ void print_pgm_check_info(void)
148
148
unsigned long * gpregs = (unsigned long * )get_lowcore ()-> gpregs_save_area ;
149
149
struct psw_bits * psw = & psw_bits (get_lowcore ()-> psw_save_area );
150
150
151
- decompressor_printk ("Linux version %s\n" , kernel_version );
151
+ boot_printk ("Linux version %s\n" , kernel_version );
152
152
if (!is_prot_virt_guest () && early_command_line [0 ])
153
- decompressor_printk ("Kernel command line: %s\n" , early_command_line );
154
- decompressor_printk ("Kernel fault: interruption code %04x ilc:%x\n" ,
155
- get_lowcore ()-> pgm_code , get_lowcore ()-> pgm_ilc >> 1 );
153
+ boot_printk ("Kernel command line: %s\n" , early_command_line );
154
+ boot_printk ("Kernel fault: interruption code %04x ilc:%x\n" ,
155
+ get_lowcore ()-> pgm_code , get_lowcore ()-> pgm_ilc >> 1 );
156
156
if (kaslr_enabled ()) {
157
- decompressor_printk ("Kernel random base: %lx\n" , __kaslr_offset );
158
- decompressor_printk ("Kernel random base phys: %lx\n" , __kaslr_offset_phys );
157
+ boot_printk ("Kernel random base: %lx\n" , __kaslr_offset );
158
+ boot_printk ("Kernel random base phys: %lx\n" , __kaslr_offset_phys );
159
159
}
160
- decompressor_printk ("PSW : %016lx %016lx (%pS)\n" ,
161
- get_lowcore ()-> psw_save_area .mask ,
162
- get_lowcore ()-> psw_save_area .addr ,
163
- (void * )get_lowcore ()-> psw_save_area .addr );
164
- decompressor_printk (
160
+ boot_printk ("PSW : %016lx %016lx (%pS)\n" ,
161
+ get_lowcore ()-> psw_save_area .mask ,
162
+ get_lowcore ()-> psw_save_area .addr ,
163
+ (void * )get_lowcore ()-> psw_save_area .addr );
164
+ boot_printk (
165
165
" R:%x T:%x IO:%x EX:%x Key:%x M:%x W:%x P:%x AS:%x CC:%x PM:%x RI:%x EA:%x\n" ,
166
166
psw -> per , psw -> dat , psw -> io , psw -> ext , psw -> key , psw -> mcheck ,
167
167
psw -> wait , psw -> pstate , psw -> as , psw -> cc , psw -> pm , psw -> ri ,
168
168
psw -> eaba );
169
- decompressor_printk ("GPRS: %016lx %016lx %016lx %016lx\n" ,
170
- gpregs [0 ], gpregs [1 ], gpregs [2 ], gpregs [3 ]);
171
- decompressor_printk (" %016lx %016lx %016lx %016lx\n" ,
172
- gpregs [4 ], gpregs [5 ], gpregs [6 ], gpregs [7 ]);
173
- decompressor_printk (" %016lx %016lx %016lx %016lx\n" ,
174
- gpregs [8 ], gpregs [9 ], gpregs [10 ], gpregs [11 ]);
175
- decompressor_printk (" %016lx %016lx %016lx %016lx\n" ,
176
- gpregs [12 ], gpregs [13 ], gpregs [14 ], gpregs [15 ]);
169
+ boot_printk ("GPRS: %016lx %016lx %016lx %016lx\n" , gpregs [0 ], gpregs [1 ], gpregs [2 ], gpregs [3 ]);
170
+ boot_printk (" %016lx %016lx %016lx %016lx\n" , gpregs [4 ], gpregs [5 ], gpregs [6 ], gpregs [7 ]);
171
+ boot_printk (" %016lx %016lx %016lx %016lx\n" , gpregs [8 ], gpregs [9 ], gpregs [10 ], gpregs [11 ]);
172
+ boot_printk (" %016lx %016lx %016lx %016lx\n" , gpregs [12 ], gpregs [13 ], gpregs [14 ], gpregs [15 ]);
177
173
print_stacktrace (get_lowcore ()-> gpregs_save_area [15 ]);
178
- decompressor_printk ("Last Breaking-Event-Address:\n" );
179
- decompressor_printk (" [<%016lx>] %pS\n" , (unsigned long )get_lowcore ()-> pgm_last_break ,
180
- (void * )get_lowcore ()-> pgm_last_break );
174
+ boot_printk ("Last Breaking-Event-Address:\n" );
175
+ boot_printk (" [<%016lx>] %pS\n" , (unsigned long )get_lowcore ()-> pgm_last_break ,
176
+ (void * )get_lowcore ()-> pgm_last_break );
181
177
}
0 commit comments