Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-22fa
project04a
Commits
840f514f
There was a problem fetching linked pipelines.
Commit
840f514f
authored
2 years ago
by
An N Tran
Browse files
Options
Download
Email Patches
Plain Diff
Add warning message to kernel.c
parent
d1b3e57d
master
No related merge requests found
Pipeline
#74234
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel.c
+4
-0
kernel.c
with
4 additions
and
0 deletions
+4
-0
kernel.c
View file @
840f514f
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help