There was a problem fetching linked pipelines.
Commit 840f514f authored by An N Tran's avatar An N Tran :speech_balloon:
Browse files

Add warning message to kernel.c

parent d1b3e57d
No related merge requests found
Pipeline #74234 failed with stage
Showing with 4 additions and 0 deletions
+4 -0
......@@ -207,6 +207,10 @@ void exception(regstate* regs) {
if (regs->reg_intno != INT_PF || (regs->reg_errcode & PFERR_USER)) {
memshow();
// Don't remove this. This code makes your simulations run in
// finite time; otherwise your kernel runs forever during GitLab
// tests and you get a timeout instead.
// If it interferes with testing your code, run make clean first.
if (TICK_LIMIT != 0 && ticks >= TICK_LIMIT) {
memdump_physical();
memdump_virtual_all();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment