#ifndef THREADS_FLAGS_H #define THREADS_FLAGS_H /* EFLAGS Register. */ #define FLAG_MBS 0x00000002 /* Must be set. */ #define FLAG_IF 0x00000200 /* Interrupt Flag. */ #endif /*…
#include “filesys/file.h” #include #include “filesys/inode.h” #include “threads/malloc.h” /* An open file. */ struct file { struct inode *inode; /* File’s inode. */ off_t pos; /*…
/* Mmaps a 128 kB file “sorts” the bytes in it, using quick sort, a multi-pass divide and conquer algorithm. */ #include #include #include “tests/lib.h”…
# -*- perl -*- # The expected output looks like this: # # (priority-fifo) iteration: 0 1 2 3 4 5 6 7 8 9…
/* Tries to map a zero-length file, which may or may not work but should not terminate the process or crash. Then dereferences the address…
#include #include “devices/input.h” #include “devices/serial.h” #include “devices/intq.h” #include “devices/timer.h” #include “threads/io.h” #include “threads/interrupt.h” #include “threads/thread.h” /* Register definitions for the 16550A UART used in PCs.…
# -*- perl -*- use strict; use warnings; use tests::tests; sub check_process_death { my ($proc_name) = @_; our ($test); my (@output) = read_text_file (“$test.output”); common_checks…
/* Test program for lib/kernel/list.c. Attempts to test the list functionality that is not sufficiently tested elsewhere in Pintos. This is not a test we…
# -*- perl -*- use strict; use warnings; use tests::tests; use tests::threads::mlfqs; our ($test); my (@output) = read_text_file (“$test.output”); common_checks (“run”, @output); @output = get_core_output…
# -*- perl -*- use strict; use warnings; use tests::tests; check_archive ({}); pass;