From 94249eda37171e5851f2db73b07ee285baefea09 Mon Sep 17 00:00:00 2001 From: Eggert Jung Date: Sun, 22 Jun 2025 11:45:31 +0200 Subject: [PATCH] changes --- interrupt/handlers.cc | 5 ----- main.cc | 1 - thread/scheduler.cc | 2 +- user/app1/appl.cc | 2 +- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/interrupt/handlers.cc b/interrupt/handlers.cc index e1b00b5..8ef2a84 100644 --- a/interrupt/handlers.cc +++ b/interrupt/handlers.cc @@ -60,12 +60,7 @@ enum PAGE_FAULT_ERROR { [[gnu::interrupt]] void handle_page_fault(InterruptContext *context, uint64_t error) { -<<<<<<< HEAD - (void)error; - DBG << "Page fault encoutered at linear address " << hex -======= DBG << "Page fault encountered at linear address " << hex ->>>>>>> c0b78ee (simplify Qeue, update some comments and include paths) << Core::CR<2>::read() << endl << (error & PF_ERR_PRESENT ? "present" : "non-present") << " page|" << (error & PF_ERR_WRITE ? "write" : "read") << " access|" diff --git a/main.cc b/main.cc index 7a227f5..1691948 100644 --- a/main.cc +++ b/main.cc @@ -1,4 +1,3 @@ -<<<<<<< HEAD #include "arch/lapic.h" #include "boot/startup_ap.h" #include "arch/core_interrupt.h" diff --git a/thread/scheduler.cc b/thread/scheduler.cc index 797c064..ea66155 100644 --- a/thread/scheduler.cc +++ b/thread/scheduler.cc @@ -2,7 +2,7 @@ #include "scheduler.h" -Queue readyList = Queue(0); +Queue readyList = Queue(); Scheduler::Scheduler() { } diff --git a/user/app1/appl.cc b/user/app1/appl.cc index c7ce96a..2ea95c1 100644 --- a/user/app1/appl.cc +++ b/user/app1/appl.cc @@ -53,6 +53,6 @@ void Application::action() { // NOLINT activeWaitDelay(10000000); if(cnt >= sizeof(text)-1) cnt=0; - context_switch(test2,test1); + //context_switch(test2,test1); } }