Skip to content

Commit b0e01b7

Browse files
committed
panic: signal EOT on cpu_id 0, not 1
1 parent 65ed96e commit b0e01b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/kernel/syscalls.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void panic(const char* why)
175175
PER_CPU(panic_stuff).reenter = true;
176176
/// display informacion ...
177177
SMP::global_lock();
178-
fprintf(stderr, "\n\t**** CPU %u PANIC: ****\n %s\n",
178+
fprintf(stderr, "\n\t**** CPU %u PANIC: ****\n %s\n",
179179
SMP::cpu_id(), why);
180180
// the crash context buffer can help determine cause of crash
181181
int len = strnlen(get_crash_context_buffer(), CONTEXT_BUFFER_LENGTH);
@@ -200,7 +200,7 @@ void panic(const char* why)
200200
// call custom on panic handler
201201
if (panic_handler) panic_handler();
202202

203-
if (SMP::cpu_id() == 1) {
203+
if (SMP::cpu_id() == 0) {
204204
SMP::global_lock();
205205
// Signal End-Of-Transmission
206206
fprintf(stderr, "\x04"); fflush(stderr);

0 commit comments

Comments
 (0)