This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- makefile -*- | |
SHELL = /bin/sh | |
VPATH = $(SRCDIR) | |
# Binary utilities. | |
# If the host appears to be x86, use the normal tools. | |
# If it's x86-64, use the compiler and linker in 32-bit mode. | |
# Otherwise assume cross-tools are installed as i386-elf-*. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Seed data | |
################################################################################ | |
CITIES = { # LAT, LONG | |
london: [51.5072, 0.1275] | |
manchester: [53.4667, 2.2333] | |
newcastle: [54.9740, 1.6132] | |
bristol: [51.4500, 2.5833] | |
southampton: [50.8970, 1.4042] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! GenPrototypes(reg) | |
let fs=[] | |
let l:space = '\_s\{-}' | |
let l:keywd = '\(\(\w\+\s\+\)\+\)' . l:space ") #1 | |
let l:rtype = '\(\w\+\)' . l:space ") #3 | |
let l:fname = '\(\w\+\)' . l:space ") #4 | |
let l:parms = '\((.*)\)' . l:space ") #5 | |
let l:block = '\({\_.\{-}}\)' | |
let l:regex = l:keywd . l:rtype | |
\ . l:fname . l:parms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- makefile -*- | |
include $(patsubst %,$(SRCDIR)/%/Make.tests,$(TEST_SUBDIRS)) | |
# Colors! | |
GREEN =\e[01;38;5;82m | |
PINK =\e[01;38;5;197m | |
D =\e[01;37;40m | |
CLRCOL =\e[0m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PRI_MAX = 63 | |
RUN_TIME = 36/4 | |
TIMER_INTERVAL = 4 | |
TICKS_PER_SEC = 100 | |
crrt = null | |
ticks = 0 | |
create_thread = (name, nice, pri = PRI_MAX) -> | |
{ name: name, p: pri, n: nice, rcpu: 0 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo Enter MacBook Air IP: | |
read IP | |
echo Enter username for MacBook Air: | |
read USR | |
export MBA=$USR@$IP | |
echo Transferring... | |
scp -r $MBA:/usr/local/pintos-utils /usr/local/ | |
scp -r $MBA:/usr/local/i386-elf-gcc /usr/local/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Makefile for Divide and Conquer | |
## LIST - all categories of source | |
## TEST - all test related source | |
## ANAL - all analyse related source | |
LDFLAGS = -lm -lstdc++ | |
CXXFLAGS = -Wall -g | |
CXX=g++ | |
VPATH= c++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "userprog/exception.h" | |
#include "userprog/gdt.h" | |
#include "userprog/pagedir.h" | |
#include <inttypes.h> | |
#include <stdio.h> | |
#include "threads/interrupt.h" | |
#include "threads/thread.h" | |
#include "threads/pte.h" | |
#include "vm/page.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In kernel.o: | |
0xc0020c92: thread_foreach (..../../threads/thread.c:532) | |
0xc0028ada: debug_backtrace_all (...../lib/kernel/debug.c:122) | |
0xc002bf7c: page_fault (.../userprog/exception.c:178) | |
0xc002207d: intr_handler (..../threads/interrupt.c:367) | |
0xc0022280: intr_entry (threads/intr-stubs.S:38) | |
In kernel.o: | |
0xc0020c92: thread_foreach (..../../threads/thread.c:532) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Enter college login:" | |
read user | |
echo "Enter password:" | |
read -s pass; echo | |
creds="{\"user\":\"$user\",\"pass\":\"$pass\"}" | |
# Pull JSON { token: <token> } |
OlderNewer