]> Devi Nivas Git - cs3210-lab1.git/log
cs3210-lab1.git
5 years agoUpdate lab1.md
Devecsery, David [Sun, 16 Aug 2020 05:44:59 +0000 (01:44 -0400)]
Update lab1.md

5 years agoUpdate lab1.md
Devecsery, David [Wed, 12 Aug 2020 22:47:54 +0000 (18:47 -0400)]
Update lab1.md

Added "extra" section to lab1.md

5 years agoUpdate lab1.md
Devecsery, David [Wed, 12 Aug 2020 18:15:40 +0000 (14:15 -0400)]
Update lab1.md

Added specification of backtrace.h file location.

5 years agoUpdate lab1.md
Devecsery, David [Sun, 9 Aug 2020 03:15:54 +0000 (23:15 -0400)]
Update lab1.md

Fixed typo in lab1 instructions around apic3 field offset.

5 years agoUpdate e820.S
Devecsery, David [Sun, 9 Aug 2020 03:14:58 +0000 (23:14 -0400)]
Update e820.S

Fixed typo in do_e820 comment.

5 years agoUpdate lab1.md
Devecsery, David [Mon, 27 Jul 2020 14:27:37 +0000 (10:27 -0400)]
Update lab1.md

5 years agoSome better commenting, improved lab1.md
David Devecsery [Wed, 10 Jun 2020 18:09:26 +0000 (14:09 -0400)]
Some better commenting, improved lab1.md

5 years agoTweaks to lab1.md
David Devecsery [Wed, 10 Jun 2020 16:39:58 +0000 (12:39 -0400)]
Tweaks to lab1.md

5 years agoMerge branch 'master' into lab1
David Devecsery [Thu, 21 May 2020 16:58:19 +0000 (12:58 -0400)]
Merge branch 'master' into lab1

5 years agoAdded disassembly building for user-programs to makefile
David Devecsery [Thu, 21 May 2020 16:55:17 +0000 (12:55 -0400)]
Added disassembly building for user-programs to makefile

5 years agoAdded in several quality-of-life needed patches.
David Devecsery [Thu, 21 May 2020 13:26:54 +0000 (09:26 -0400)]
Added in several quality-of-life needed patches.

5 years agoRemoved builtin nonsense again...
David Devecsery [Tue, 19 May 2020 19:53:03 +0000 (15:53 -0400)]
Removed builtin nonsense again...

5 years agoUpdated printing functionality
David Devecsery [Tue, 19 May 2020 19:51:53 +0000 (15:51 -0400)]
Updated printing functionality

5 years agoAbout to do big changes to console...
David Devecsery [Tue, 19 May 2020 18:58:00 +0000 (14:58 -0400)]
About to do big changes to console...

5 years agoConsolidated PHYSTOP operations, made it a little bit easier to define a dynamic...
David Devecsery [Mon, 18 May 2020 17:35:48 +0000 (13:35 -0400)]
Consolidated PHYSTOP operations, made it a little bit easier to define a dynamic phys_top

5 years agoAdded very minimal e820 support to the bootblock, had to omit frame pointers to compile
David Devecsery [Mon, 18 May 2020 15:59:06 +0000 (11:59 -0400)]
Added very minimal e820 support to the bootblock, had to omit frame pointers to compile

5 years agoMerge branch 'master' into lab1
David Devecsery [Mon, 18 May 2020 14:51:04 +0000 (10:51 -0400)]
Merge branch 'master' into lab1

5 years agoForgot to add bootblock...
David Devecsery [Mon, 18 May 2020 14:50:56 +0000 (10:50 -0400)]
Forgot to add bootblock...

5 years agoAdded read_ebp to x86.h
David Devecsery [Mon, 18 May 2020 14:50:31 +0000 (10:50 -0400)]
Added read_ebp to x86.h

5 years agoGot string library updated so stab compiles, now have stab info integrated
David Devecsery [Mon, 18 May 2020 14:27:54 +0000 (10:27 -0400)]
Got string library updated so stab compiles, now have stab info integrated

5 years agoForgot to add instructions...
David Devecsery [Mon, 18 May 2020 13:54:04 +0000 (09:54 -0400)]
Forgot to add instructions...

5 years agoDraft 1 on instructions
David Devecsery [Mon, 18 May 2020 13:51:11 +0000 (09:51 -0400)]
Draft 1 on instructions

5 years agoJust realized old gitignore was causing kernel not to push... that could have been...
David Devecsery [Thu, 14 May 2020 15:13:00 +0000 (11:13 -0400)]
Just realized old gitignore was causing kernel not to push... that could have been bad.

5 years agoFixed run scripts... blerg
David Devecsery [Thu, 14 May 2020 14:49:44 +0000 (10:49 -0400)]
Fixed run scripts... blerg

5 years agoAdded run scripts. Life is better now
David Devecsery [Thu, 14 May 2020 14:48:58 +0000 (10:48 -0400)]
Added run scripts.  Life is better now

5 years agoCmake builds and runs!
David Devecsery [Thu, 14 May 2020 13:37:42 +0000 (09:37 -0400)]
Cmake builds and runs!

5 years agoPorted to c11, switched to c11 atomics
David Devecsery [Thu, 9 Apr 2020 17:17:53 +0000 (13:17 -0400)]
Ported to c11, switched to c11 atomics

6 years agoMention we switched to xv6 on RISC-V
Frans Kaashoek [Tue, 24 Sep 2019 18:45:16 +0000 (14:45 -0400)]
Mention we switched to xv6 on RISC-V

6 years agoAvoid rereading the superblock in bfree
Dan Cross [Wed, 20 Mar 2019 17:28:13 +0000 (17:28 +0000)]
Avoid rereading the superblock in bfree

The superblock is read when the first process returns to
userspace (via the call to `iinit` from the first invocation of
`forkret`, when `first` is still set to 1) and cached in a
global; it is treated as immutable from that point on.  There is
no reason to re-read it in bfree.

Removing this call seems to have simply been missed in 8320d61b
when this general area was last touched.  Remove it now to avoid
potential confusion.

Signed-off-by: Dan Cross <cross@gajendra.net>
6 years agoRemoved unused `dirlookup` argument in `create`
Dan Cross [Thu, 21 Mar 2019 01:15:38 +0000 (01:15 +0000)]
Removed unused `dirlookup` argument in `create`

The `off` argument to `dirlookup` is optional.  It
was not being used in the `dirlookup` call in `create`,
so pass NULL instead and delete the unused local.

Signed-off-by: Dan Cross <cross@gajendra.net>
7 years agoUpdate name
Frans Kaashoek [Sun, 2 Sep 2018 12:33:55 +0000 (08:33 -0400)]
Update name
Use generic 6.828 url (without year)

7 years agothanks tyfkda
Frans Kaashoek [Fri, 31 Aug 2018 13:21:19 +0000 (09:21 -0400)]
thanks tyfkda

7 years agothanks Wolfgang Keller
Frans Kaashoek [Fri, 31 Aug 2018 12:41:23 +0000 (08:41 -0400)]
thanks Wolfgang Keller

7 years agox
Frans Kaashoek [Thu, 30 Aug 2018 20:20:16 +0000 (16:20 -0400)]
x

7 years agoAllow holding to be called with interrupts enabled (for Mark Morrissey).
Frans Kaashoek [Thu, 30 Aug 2018 20:14:34 +0000 (16:14 -0400)]
Allow holding to be called with interrupts enabled (for Mark Morrissey).

7 years agoDelete a patch
Frans Kaashoek [Thu, 30 Aug 2018 19:45:16 +0000 (15:45 -0400)]
Delete a patch
Adjust typesetting of code

7 years agox
Frans Kaashoek [Thu, 30 Aug 2018 18:47:07 +0000 (14:47 -0400)]
x

7 years agox
Frans Kaashoek [Thu, 30 Aug 2018 18:16:29 +0000 (14:16 -0400)]
x

7 years agothanks mtasm
Frans Kaashoek [Thu, 30 Aug 2018 18:09:03 +0000 (14:09 -0400)]
thanks mtasm

7 years agothanks wxdao
Frans Kaashoek [Thu, 30 Aug 2018 17:48:47 +0000 (13:48 -0400)]
thanks wxdao

7 years agothanks eyalz800
Frans Kaashoek [Thu, 30 Aug 2018 17:46:48 +0000 (13:46 -0400)]
thanks eyalz800

7 years agovectors.pl is executable and asks shell for perl
Frans Kaashoek [Thu, 30 Aug 2018 17:36:07 +0000 (13:36 -0400)]
vectors.pl is executable and asks shell for perl

7 years agothanks mataness
Frans Kaashoek [Thu, 30 Aug 2018 17:30:50 +0000 (13:30 -0400)]
thanks mataness

7 years agothanks tyfkda
Frans Kaashoek [Thu, 30 Aug 2018 17:27:57 +0000 (13:27 -0400)]
thanks tyfkda

7 years agox
Frans Kaashoek [Thu, 30 Aug 2018 17:25:54 +0000 (13:25 -0400)]
x

7 years agoRemove unused flags (thanks Wolfgang Keller)
Frans Kaashoek [Thu, 30 Aug 2018 17:14:01 +0000 (13:14 -0400)]
Remove unused flags (thanks Wolfgang Keller)

7 years agox
Frans Kaashoek [Thu, 30 Aug 2018 17:09:03 +0000 (13:09 -0400)]
x

7 years agox
Frans Kaashoek [Thu, 30 Aug 2018 16:12:16 +0000 (12:12 -0400)]
x

7 years agoBecause sleeplocks replaced B_BUSY the holding test can
Frans Kaashoek [Thu, 30 Aug 2018 15:57:46 +0000 (11:57 -0400)]
Because sleeplocks replaced B_BUSY the holding test can
be more specific (thanks Mark Morrissey)

7 years agox
Frans Kaashoek [Thu, 30 Aug 2018 15:42:10 +0000 (11:42 -0400)]
x

8 years agostricter log consumption by write()
Robert Morris [Tue, 24 Oct 2017 12:49:31 +0000 (08:49 -0400)]
stricter log consumption by write()

8 years agoimprove swtch comment
Robert Morris [Sun, 8 Oct 2017 11:12:31 +0000 (07:12 -0400)]
improve swtch comment

8 years agofix runoff complaints about pagination and long lines
Robert Morris [Tue, 29 Aug 2017 18:11:59 +0000 (14:11 -0400)]
fix runoff complaints about pagination and long lines

8 years agothx
Frans Kaashoek [Thu, 10 Aug 2017 11:09:53 +0000 (07:09 -0400)]
thx

8 years agoUpdate comment to reflect xv6 doesn't have per-cpu segments anymore
Frans Kaashoek [Wed, 9 Aug 2017 12:07:55 +0000 (08:07 -0400)]
Update comment to reflect xv6 doesn't have per-cpu segments anymore

8 years agonothing much
Robert Morris [Wed, 9 Aug 2017 18:16:55 +0000 (14:16 -0400)]
nothing much

8 years agoCommit to running on an SMP (perhaps with only 1 core). Remove most code
Frans Kaashoek [Wed, 9 Aug 2017 11:43:06 +0000 (07:43 -0400)]
Commit to running on an SMP (perhaps with only 1 core). Remove most code
from picirq.c and remove timer.c completely.  Update runoff.list.

8 years agocomment fixes
Robert Morris [Wed, 9 Aug 2017 10:54:45 +0000 (06:54 -0400)]
comment fixes

8 years agoThanks Anton Burtsev <aburtsev@uci.edu>
Frans Kaashoek [Tue, 8 Aug 2017 23:42:51 +0000 (19:42 -0400)]
Thanks Anton Burtsev <aburtsev@uci.edu>

8 years agofix iput() to more obviously avoid deadlock
Robert Morris [Tue, 8 Aug 2017 18:19:54 +0000 (14:19 -0400)]
fix iput() to more obviously avoid deadlock

8 years agoa little more lock documentation
Robert Morris [Tue, 8 Aug 2017 18:12:25 +0000 (14:12 -0400)]
a little more lock documentation

8 years agoprotect ip->valid and ip->nlink with sleep lock in iput()
Robert Morris [Tue, 8 Aug 2017 17:48:48 +0000 (13:48 -0400)]
protect ip->valid and ip->nlink with sleep lock in iput()

8 years agochange ip->flags&I_VALID to ip->valid
Robert Morris [Tue, 8 Aug 2017 17:34:13 +0000 (13:34 -0400)]
change ip->flags&I_VALID to ip->valid

8 years agoMerge branch 'master' of g.csail.mit.edu:xv6-dev
Robert Morris [Tue, 8 Aug 2017 17:27:06 +0000 (13:27 -0400)]
Merge branch 'master' of g.csail.mit.edu:xv6-dev

8 years agofrans' fixes to iput()
Robert Morris [Tue, 8 Aug 2017 17:26:57 +0000 (13:26 -0400)]
frans' fixes to iput()

8 years agofs comment nits
Robert Morris [Tue, 8 Aug 2017 17:24:38 +0000 (13:24 -0400)]
fs comment nits

8 years agoRemove some debugging statements
Frans Kaashoek [Mon, 7 Aug 2017 19:15:18 +0000 (15:15 -0400)]
Remove some debugging statements

8 years agoMerge branch 'nogs'
Frans Kaashoek [Mon, 7 Aug 2017 18:35:05 +0000 (14:35 -0400)]
Merge branch 'nogs'

8 years agoMerge branch 'patch-1' of https://github.com/aliceinwire/xv6-public
Frans Kaashoek [Mon, 7 Aug 2017 17:44:03 +0000 (13:44 -0400)]
Merge branch 'patch-1' of https://github.com/aliceinwire/xv6-public

8 years agoMerge branch 'patch-1' of https://github.com/Saarett/xv6-public
Frans Kaashoek [Mon, 7 Aug 2017 17:29:11 +0000 (13:29 -0400)]
Merge branch 'patch-1' of https://github.com/Saarett/xv6-public

8 years agoFix typo in dirlookup
Grant Wu [Thu, 27 Apr 2017 02:56:51 +0000 (19:56 -0700)]
Fix typo in dirlookup

8 years agoUpdate LICENSE
Alice Ferrazzi [Mon, 27 Feb 2017 04:12:59 +0000 (13:12 +0900)]
Update LICENSE

updated copyright year

9 years agoFree pgdir in setupkvm in case of mappages failure
Saarett [Sun, 5 Feb 2017 10:44:56 +0000 (12:44 +0200)]
Free pgdir in setupkvm in case of mappages failure

There is a potential memory leak when mappages() fails inside setupkvm().
A call to freevm() is added in this case so as to reclaim the lost mapping pages.

9 years agoA tiny bit of clean up (e.g., move code searching cpu array from lapic.c into
Frans Kaashoek [Thu, 2 Feb 2017 01:36:41 +0000 (20:36 -0500)]
A tiny bit of clean up (e.g., move code searching cpu array from lapic.c into
mycpu() in proc.c.

9 years agouse panic
Frans Kaashoek [Thu, 2 Feb 2017 00:21:43 +0000 (19:21 -0500)]
use panic

9 years agoshorten comment
Frans Kaashoek [Thu, 2 Feb 2017 00:18:47 +0000 (19:18 -0500)]
shorten comment

9 years agoEliminate code for gs trick to track per-cpu state. We rely on lapiccpunum()
Frans Kaashoek [Wed, 1 Feb 2017 23:04:13 +0000 (18:04 -0500)]
Eliminate code for gs trick to track per-cpu state.  We rely on lapiccpunum()
to find a per-cpu id with which we locate a cpu's cpu struct.

9 years agoRead curproc from cpu structure, but be careful because after a schedule event
Frans Kaashoek [Wed, 1 Feb 2017 01:21:14 +0000 (20:21 -0500)]
Read curproc from cpu structure, but be careful because after a schedule event
myproc() points to a different thread.

   myproc();
   sched();
   myproc();  // this proc maybe different than the one before sched

Thus, in a function that operates on one thread better to retrieve the
current process once at the start of the function.

9 years agoStart of an experiment to remove the use of gs for cpu local variables.
Frans Kaashoek [Tue, 31 Jan 2017 22:47:16 +0000 (17:47 -0500)]
Start of an experiment to remove the use of gs for cpu local variables.

9 years agowolfgang keller
Frans Kaashoek [Tue, 31 Jan 2017 01:24:13 +0000 (20:24 -0500)]
wolfgang keller

9 years agoFix spelling Gaoron.
Frans Kaashoek [Tue, 31 Jan 2017 01:11:23 +0000 (20:11 -0500)]
Fix spelling Gaoron.

9 years agoThanks to Wolfgang Keller <nubok@users.noreply.github.com>
Frans Kaashoek [Tue, 31 Jan 2017 01:09:54 +0000 (20:09 -0500)]
Thanks to Wolfgang Keller <nubok@users.noreply.github.com>

9 years agoThanks to Wolfgang Keller <nubok@users.noreply.github.com>
Frans Kaashoek [Tue, 31 Jan 2017 01:07:42 +0000 (20:07 -0500)]
Thanks to Wolfgang Keller <nubok@users.noreply.github.com>

9 years agoAdd support for qemu-system-x86_64 in 64bit hosts
Antonio Gutierrez [Fri, 2 Dec 2016 19:17:54 +0000 (20:17 +0100)]
Add support for qemu-system-x86_64 in 64bit hosts

As x86-64 is a superset of x86, we can use qemu-system-x86_64 to run
the OS image.

Signed-off-by: Antonio Gutierrez <chibby0ne@gmail.com>
9 years agoThanks to Jeehoon Kang <jeehoon.kang@sf.snu.ac.kr>
Frans Kaashoek [Tue, 31 Jan 2017 01:01:33 +0000 (20:01 -0500)]
Thanks to Jeehoon Kang <jeehoon.kang@sf.snu.ac.kr>

9 years agoFix long-standing switchuvm() inconsistency.
Peter Froehlich [Fri, 23 Dec 2016 01:26:37 +0000 (20:26 -0500)]
Fix long-standing switchuvm() inconsistency.

switchuvm() is supposed to switch the TSS and page table to the
process p it is passed. Alas, instead of using p to access the
kstack field, it used the global proc. This worked fine because
(a) most uses of switchuvm() pass proc anyway and (b) because in
the schedule, where we call switchuvm with the newly scheduled
process, we actually set the global proc before the call. But I
think it's still a bug, even if it never broke a test case. :-)

9 years agoFix unsigned conversion bug.
Peter H. Froehlich [Tue, 27 Sep 2016 20:58:29 +0000 (16:58 -0400)]
Fix unsigned conversion bug.

Since readi() returns -1 for errors, checking with < against an unsigned
value is inadvisable. Checking with != works as intended however.

9 years agoCody
Frans Kaashoek [Mon, 30 Jan 2017 14:38:19 +0000 (09:38 -0500)]
Cody

9 years agofix possible memory leak in deallocuvm
Cody Cutler [Mon, 26 Sep 2016 16:21:01 +0000 (12:21 -0400)]
fix possible memory leak in deallocuvm

when a zero PDE is encountered while searching for present PTEs to free,
resume searching at first entry of the next page table instead of the
current entry of the next page table.

9 years agoFixed broken build on newer gold linker with NaCl support
Icenowy Zheng [Sat, 9 Apr 2016 01:38:40 +0000 (09:38 +0800)]
Fixed broken build on newer gold linker with NaCl support

On platforms with NaCl support, ld.gold -V will return a "elf_i386_nacl" in
addition to "elf_i386", which will make the build fail.

9 years agoAdd mikecat's argp test
Frans Kaashoek [Mon, 26 Sep 2016 11:54:02 +0000 (07:54 -0400)]
Add mikecat's argp test

9 years agofix memory region validation in argptr()
MikeCAT [Sat, 19 Dec 2015 13:52:11 +0000 (22:52 +0900)]
fix memory region validation in argptr()

9 years agoTypo (Thanks to Austin Liew)
Frans Kaashoek [Sun, 25 Sep 2016 12:27:26 +0000 (08:27 -0400)]
Typo (Thanks to Austin Liew)

9 years agoMerge branch 'master' of g.csail.mit.edu:xv6-dev
Frans Kaashoek [Mon, 19 Sep 2016 11:02:08 +0000 (07:02 -0400)]
Merge branch 'master' of g.csail.mit.edu:xv6-dev

9 years agoCheck result of write (thans to Alexander Kapshuk <alexander.kapshuk@gmail)
Frans Kaashoek [Mon, 19 Sep 2016 11:01:30 +0000 (07:01 -0400)]
Check result of write (thans to Alexander Kapshuk <alexander.kapshuk@gmail)

9 years agoFix a small README typo
Tej Chajed [Fri, 16 Sep 2016 13:11:23 +0000 (09:11 -0400)]
Fix a small README typo

9 years agoRemove left-over print statements
Frans Kaashoek [Thu, 15 Sep 2016 23:16:30 +0000 (19:16 -0400)]
Remove left-over print statements

9 years agoMerge branch 'master' of g.csail.mit.edu:xv6-dev
Robert Morris [Thu, 15 Sep 2016 16:56:17 +0000 (12:56 -0400)]
Merge branch 'master' of g.csail.mit.edu:xv6-dev

9 years agochange allocproc() back to acquiring the ptable.lock.
Robert Morris [Thu, 15 Sep 2016 16:12:05 +0000 (12:12 -0400)]
change allocproc() back to acquiring the ptable.lock.
fix bugs where caller incorrectly released lock on error return path.

9 years agoxx
Robert Morris [Thu, 15 Sep 2016 16:01:52 +0000 (12:01 -0400)]
xx