]> Devi Nivas Git - cs3210-lab1.git/commit
Make fetchint and fetchstr use proc instead of taking a struct proc
authorAustin Clements <amdragon@mit.edu>
Sat, 18 Feb 2012 04:20:13 +0000 (23:20 -0500)
committerAustin Clements <amdragon@mit.edu>
Sat, 18 Feb 2012 04:20:13 +0000 (23:20 -0500)
commit9d59eb015141697da616a4b98ac27cf4269cd780
tree1fc16f0aff8d60a4cf1b3c29f6b0628d3fd04f16
parent12abb1a56164a0d71fb7a76a465c912409f2f60b
Make fetchint and fetchstr use proc instead of taking a struct proc

Previously, these were inconsistent: they used their struct proc
argument for bounds checking, but always copied the argument from the
current address space (and hence the current process).  Drop the
struct proc argument and always use the current proc.

Suggested by Carmi Merimovich.
defs.h
syscall.c
sysfile.c