]>
Devi Nivas Git - cs3210-lab0.git/log
rsc [Thu, 27 Sep 2007 12:29:25 +0000 (12:29 +0000)]
use console lock
rsc [Thu, 27 Sep 2007 12:29:06 +0000 (12:29 +0000)]
make slow bigdir last test
rsc [Thu, 27 Sep 2007 11:27:04 +0000 (11:27 +0000)]
changes since two days ago:
drop , address=0xf0000 from romimage line.
newer bochs has a 128k bios that it loads elsewhere.
so let bochs decide where the romimage goes.
change cpu quantum to 1 (default is 5, max is 16)
in an attempt to provoke more races. only provokes
them slightly more frequently, may not be worth
the slowdown.
rsc [Thu, 27 Sep 2007 05:14:25 +0000 (05:14 +0000)]
use standard bios location
rsc [Thu, 27 Sep 2007 05:13:10 +0000 (05:13 +0000)]
believe it or not, this was working
the macro expansion of "char *cp;" turned into
char *(curproc[cpu()]); which declares a dynamically
sized array of char* called curproc.
so then &cp == &(curproc[cpu()]) was actually a
stack variable as "expected". it was one past the
end of the array, but the implicit alloca allocated
more than was necessary.
do not tell me that making cp a #define was a bad idea.
there are worse problems to fix. more on that later.
rsc [Wed, 26 Sep 2007 23:32:47 +0000 (23:32 +0000)]
comment bochs nonsense
rsc [Wed, 26 Sep 2007 23:32:00 +0000 (23:32 +0000)]
various comment and print tweaks
rsc [Wed, 26 Sep 2007 23:24:23 +0000 (23:24 +0000)]
debugging prints
rsc [Wed, 26 Sep 2007 20:34:12 +0000 (20:34 +0000)]
Apparently the initial interrupt count lapic[TICR]
must be set *after* initializing the lapic[TIMER] vector.
Doing this, we now get clock interrupts on cpu 1.
(No idea why we always got them on cpu 0.)
Don't write to TCCR - it is read-only.
rtm [Tue, 25 Sep 2007 16:15:05 +0000 (16:15 +0000)]
oops, interrupts on in syscall traps doesn't work after all
rtm [Tue, 25 Sep 2007 15:23:44 +0000 (15:23 +0000)]
tell SETGATE to leave interrupts on for T_SYSCALL
panic if unknown fault with CPL=0 (i.e. in kernel)
nelhage [Wed, 19 Sep 2007 23:49:52 +0000 (23:49 +0000)]
This should fix building on FreeBSD
nelhage [Tue, 18 Sep 2007 00:41:34 +0000 (00:41 +0000)]
Fix compilation on 64-bit machines (thanks to andersk for patch)
rtm [Sat, 15 Sep 2007 20:05:47 +0000 (20:05 +0000)]
fix comments
rsc [Wed, 5 Sep 2007 15:55:43 +0000 (15:55 +0000)]
sh
rtm [Fri, 31 Aug 2007 19:55:27 +0000 (19:55 +0000)]
continuous quality management
rsc [Thu, 30 Aug 2007 18:36:38 +0000 (18:36 +0000)]
symlink implementation
rsc [Thu, 30 Aug 2007 18:33:48 +0000 (18:33 +0000)]
do not toss .ps
rsc [Thu, 30 Aug 2007 18:30:26 +0000 (18:30 +0000)]
clumsy cd
rtm [Thu, 30 Aug 2007 18:21:35 +0000 (18:21 +0000)]
make new Homework 8 work
rsc [Thu, 30 Aug 2007 18:20:53 +0000 (18:20 +0000)]
oops - broke circular buffer
rsc [Thu, 30 Aug 2007 18:19:52 +0000 (18:19 +0000)]
oops - broke arg counting
rtm [Thu, 30 Aug 2007 17:39:56 +0000 (17:39 +0000)]
longjmp -> swtch in comments
rsc [Thu, 30 Aug 2007 14:12:19 +0000 (14:12 +0000)]
tweak
rsc [Thu, 30 Aug 2007 14:11:21 +0000 (14:11 +0000)]
DO NOT MAIL: xv6-rev1
rsc [Thu, 30 Aug 2007 14:09:14 +0000 (14:09 +0000)]
final xv6 for 2007
rsc [Wed, 29 Aug 2007 19:20:49 +0000 (19:20 +0000)]
bootothers now in main
rtm [Wed, 29 Aug 2007 18:18:57 +0000 (18:18 +0000)]
spelling
rsc [Tue, 28 Aug 2007 19:39:49 +0000 (19:39 +0000)]
final nits
rsc [Tue, 28 Aug 2007 19:30:29 +0000 (19:30 +0000)]
match README
rsc [Tue, 28 Aug 2007 19:30:23 +0000 (19:30 +0000)]
nits
rsc [Tue, 28 Aug 2007 19:25:04 +0000 (19:25 +0000)]
nits
rsc [Tue, 28 Aug 2007 19:14:43 +0000 (19:14 +0000)]
delete proc_ on proc_exit, proc_wait, proc_kill
rsc [Tue, 28 Aug 2007 19:04:36 +0000 (19:04 +0000)]
comments; rename irq_ to pic_
rsc [Tue, 28 Aug 2007 18:37:41 +0000 (18:37 +0000)]
spaces around else for rtm
rsc [Tue, 28 Aug 2007 18:32:08 +0000 (18:32 +0000)]
more consistent spacing
rsc [Tue, 28 Aug 2007 18:23:48 +0000 (18:23 +0000)]
nits
rsc [Tue, 28 Aug 2007 18:04:43 +0000 (18:04 +0000)]
fix offsets
rsc [Tue, 28 Aug 2007 18:02:49 +0000 (18:02 +0000)]
more cmain -> bootmain
rsc [Tue, 28 Aug 2007 17:49:49 +0000 (17:49 +0000)]
Change dev read/write functions
to take inode* instead of minor number.
Unlock console inode during console_read
and console_write. Otherwise background
processes cannot write to console while the
shell is reading it waiting for input.
rsc [Tue, 28 Aug 2007 17:48:44 +0000 (17:48 +0000)]
oops
rsc [Tue, 28 Aug 2007 13:01:10 +0000 (13:01 +0000)]
cmain -> bootmain
rsc [Tue, 28 Aug 2007 12:52:14 +0000 (12:52 +0000)]
nit
rsc [Tue, 28 Aug 2007 12:48:33 +0000 (12:48 +0000)]
replace setjmp/longjmp with swtch
rsc [Tue, 28 Aug 2007 05:19:45 +0000 (05:19 +0000)]
never returns!
rsc [Tue, 28 Aug 2007 05:01:04 +0000 (05:01 +0000)]
nits
rsc [Tue, 28 Aug 2007 05:00:53 +0000 (05:00 +0000)]
formatting
rsc [Tue, 28 Aug 2007 05:00:39 +0000 (05:00 +0000)]
clumsy blank pages to make some files align better
rsc [Tue, 28 Aug 2007 04:41:20 +0000 (04:41 +0000)]
rename 8253pit -> timer
rsc [Tue, 28 Aug 2007 04:40:58 +0000 (04:40 +0000)]
rename 8253pit.c to timer.c
rsc [Tue, 28 Aug 2007 04:26:55 +0000 (04:26 +0000)]
runoff
rsc [Tue, 28 Aug 2007 04:26:34 +0000 (04:26 +0000)]
add grep; add lost echo
rsc [Tue, 28 Aug 2007 04:26:19 +0000 (04:26 +0000)]
avoid double echo
rsc [Tue, 28 Aug 2007 04:22:35 +0000 (04:22 +0000)]
remove _ from pipe; be like file
rsc [Tue, 28 Aug 2007 04:20:40 +0000 (04:20 +0000)]
clean up Makefile; add wc
rsc [Tue, 28 Aug 2007 04:20:25 +0000 (04:20 +0000)]
add struct stat decl
rsc [Tue, 28 Aug 2007 04:20:13 +0000 (04:20 +0000)]
do not call proc_exit until lock dropped
rsc [Tue, 28 Aug 2007 04:19:47 +0000 (04:19 +0000)]
oops
rsc [Tue, 28 Aug 2007 04:15:35 +0000 (04:15 +0000)]
handle printf("%s\n", 0)
rsc [Tue, 28 Aug 2007 04:14:32 +0000 (04:14 +0000)]
nit
rsc [Tue, 28 Aug 2007 04:13:40 +0000 (04:13 +0000)]
oops
rsc [Tue, 28 Aug 2007 04:13:24 +0000 (04:13 +0000)]
nit
rsc [Tue, 28 Aug 2007 03:46:58 +0000 (03:46 +0000)]
formatting tweaks
rsc [Tue, 28 Aug 2007 03:32:49 +0000 (03:32 +0000)]
comment non-check of cp->killed
rsc [Tue, 28 Aug 2007 03:31:11 +0000 (03:31 +0000)]
No one is going to find this inode.
There is only one ref to it -- the caller --
and no links to it.
rsc [Tue, 28 Aug 2007 03:28:29 +0000 (03:28 +0000)]
New shell.
rsc [Tue, 28 Aug 2007 03:28:13 +0000 (03:28 +0000)]
Move keyboard code into kbd.c; add backspace handling.
rsc [Tue, 28 Aug 2007 02:39:40 +0000 (02:39 +0000)]
oops
rsc [Mon, 27 Aug 2007 23:55:45 +0000 (23:55 +0000)]
move mp.h to low-level
rsc [Mon, 27 Aug 2007 23:54:24 +0000 (23:54 +0000)]
no more ioapic.h
rsc [Mon, 27 Aug 2007 23:53:50 +0000 (23:53 +0000)]
make code match comment
rsc [Mon, 27 Aug 2007 23:53:17 +0000 (23:53 +0000)]
make code match comment
rsc [Mon, 27 Aug 2007 23:53:17 +0000 (23:53 +0000)]
make code match comment
rsc [Mon, 27 Aug 2007 23:32:16 +0000 (23:32 +0000)]
Rename main0 to main.
rsc [Mon, 27 Aug 2007 23:26:33 +0000 (23:26 +0000)]
delete unnecessary #include lines
rsc [Mon, 27 Aug 2007 22:53:31 +0000 (22:53 +0000)]
Simplify MP hardware code.
Mainly delete unused constants and code.
Move mp_startthem to main.c as bootothers.
rsc [Mon, 27 Aug 2007 16:57:13 +0000 (16:57 +0000)]
Clean up lapic code.
One initialization function now, not three.
Use #defines instead of enums (consistent with other code, but sigh).
Still boots in Bochs in SMP mode.
rsc [Mon, 27 Aug 2007 16:55:10 +0000 (16:55 +0000)]
nits
rsc [Mon, 27 Aug 2007 16:12:08 +0000 (16:12 +0000)]
nits
rsc [Mon, 27 Aug 2007 16:06:19 +0000 (16:06 +0000)]
nits
rsc [Mon, 27 Aug 2007 16:06:15 +0000 (16:06 +0000)]
oops
rsc [Mon, 27 Aug 2007 15:17:40 +0000 (15:17 +0000)]
Edit exec.
Do not commit to new memory image until
nothing can go wrong, avoiding bad2 case.
Be sure to allocate enough stack space for argv.
Load executable before initializing stack, to
keep ELF loops together.
Make argv loop clearer.
rsc [Mon, 27 Aug 2007 14:39:50 +0000 (14:39 +0000)]
nits
rsc [Mon, 27 Aug 2007 14:37:13 +0000 (14:37 +0000)]
formatting shuffle
rsc [Mon, 27 Aug 2007 14:35:09 +0000 (14:35 +0000)]
fileincref -> filedup (consistent with idup)
rsc [Mon, 27 Aug 2007 14:31:50 +0000 (14:31 +0000)]
nits
rsc [Mon, 27 Aug 2007 14:23:48 +0000 (14:23 +0000)]
tell what an inode is
rsc [Mon, 27 Aug 2007 14:20:24 +0000 (14:20 +0000)]
FS cleanup.
Add utility routines bzero, readsb so that balloc, bfree fit on one page.
Make balloc loop clearer.
rsc [Mon, 27 Aug 2007 14:09:30 +0000 (14:09 +0000)]
Another attempt at the bio.c comment.
Rename B_WRITE to B_DIRTY and then let ide.c
maintain the B_VALID and B_DIRTY flags.
rsc [Mon, 27 Aug 2007 13:34:35 +0000 (13:34 +0000)]
Replace yield system call with sleep.
rsc [Mon, 27 Aug 2007 13:11:13 +0000 (13:11 +0000)]
formatting, fix comment
rsc [Mon, 27 Aug 2007 12:50:36 +0000 (12:50 +0000)]
make kfree loop same as kalloc
rsc [Mon, 27 Aug 2007 12:48:20 +0000 (12:48 +0000)]
nits
rsc [Mon, 27 Aug 2007 12:48:03 +0000 (12:48 +0000)]
cut bootmain to 1 sheet
rsc [Fri, 24 Aug 2007 22:17:54 +0000 (22:17 +0000)]
shuffle for formatting
rsc [Fri, 24 Aug 2007 22:17:41 +0000 (22:17 +0000)]
minor cleanups
rsc [Fri, 24 Aug 2007 21:33:11 +0000 (21:33 +0000)]
nit
rsc [Fri, 24 Aug 2007 21:14:58 +0000 (21:14 +0000)]
nits
rsc [Fri, 24 Aug 2007 21:00:02 +0000 (21:00 +0000)]
first ever correct use of strncpy
rsc [Fri, 24 Aug 2007 20:59:43 +0000 (20:59 +0000)]
remove unused variable