Skip to content

Commit

Permalink
data/lab: Fix access_counter.c typos
Browse files Browse the repository at this point in the history
Fix access_counter.c typos

Signed-off-by: Popa Ioan Alexandru <[email protected]>
  • Loading branch information
ALEX11BR committed Nov 7, 2023
1 parent d594aa3 commit b0d866c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static void do_nothing(void)
}

/*
* The actual SIGSEVG handler.
* The actual SIGSEGV handler.
*/
static void access_handler(int signum, siginfo_t *si, void *arg)
{
Expand All @@ -45,7 +45,7 @@ static void access_handler(int signum, siginfo_t *si, void *arg)
return;
}

/* TODO: Obtain page strart address in start variable. */
/* TODO: Obtain page start address in start variable. */

for (i = 0; i < num_pages; i++)
if (pages[i].start == start)
Expand All @@ -59,7 +59,7 @@ static void access_handler(int signum, siginfo_t *si, void *arg)

log_debug("i = %u", i);

/* TODO: Update page proctections with mprotect(). */
/* TODO: Update page protections with mprotect(). */
}

void register_sigsegv_handler(void)
Expand Down

0 comments on commit b0d866c

Please sign in to comment.