e8713e26c6
Update variable references between conflicting merges to refer to the same data in stack initialization
userprog-merge
Themis Demetriades
2024-11-11 22:51:19 +00:00
14a4841772
Fix bug where size of file name buffer was less than maximum file name size
userprog-stack-init
Themis Demetriades
2024-11-11 22:13:10 +00:00
52fdd47e0c
Fix race condition in the passing of data from thread executing process_execute to its child
Themis Demetriades
2024-11-11 21:51:38 +00:00
049fc5559c
Reformat stack initialization code to follow style for length and spacing
Themis Demetriades
2024-11-11 21:20:53 +00:00
98a5818406
add file_deny_write and file_allow_write to process creation and exiting to make executable read-only
EDiasAlberto
2024-11-11 17:55:24 +00:00
18c884234d
Fix race-condition in process result (memory leak), fix infinite loop in donors_list
Gleb Koval2024-11-11 17:35:49 +00:00
b8d358ecb2
Update stack initialization to handle overflow by allocating a second page for argument pointers
Themis Demetriades
2024-11-11 13:13:21 +00:00
39018419cd
Fix Bug in Process.c to print the exit statement in process_exit instead of exit syscall to handle unexpected/bad exits
sBubshait
2024-11-07 12:15:29 +00:00
6a3cf67d33
Fix Bug in process.c initialising a char to NULL
sBubshait
2024-11-07 11:55:26 +00:00
273fb48b31
Fix stack initialization to pass stack addreses (rather than thread addresses) for the arguments and only pass name a single time
Themis Demetriades
2024-11-07 00:40:52 +00:00
26ae7ac02e
Fix bug in stack creation which would count one extra argument for argc
Themis Demetriades
2024-11-06 23:57:48 +00:00
dfa42b9d25
Merge branch 'user-programs' into 'system-calls'
Dias Alberto, Ethan
2024-11-06 16:57:10 +00:00
1a4afc9ec7
Merge branch 'system-calls' into 'user-programs'
Dias Alberto, Ethan
2024-11-06 16:56:43 +00:00
5535cbae24
Merge branch 'master' into 'system-calls'
Dias Alberto, Ethan
2024-11-06 16:45:53 +00:00
f685086d05
Merge branch 'refactor-semaphore' into 'master'
Dias Alberto, Ethan
2024-11-06 16:42:26 +00:00
2fefdef605
Merge branch 'user-programs-temporary-fix' into 'user-programs'
Dias Alberto, Ethan
2024-11-06 16:41:49 +00:00
fcb7e9e441
Update setup_stack to temporarily fake set-up for a stack to prevent page faults in no arg user programs
sBubshait
2024-11-06 15:48:27 +00:00
ab716de0a6
Update process_wait to temporarily sleep for 1 second to allow user programs to run
sBubshait
2024-11-06 15:46:47 +00:00
91cef4d650
Refactor lock release and sema up to remove unnecessary code
sBubshait
2024-11-06 15:36:56 +00:00
b0c1923d44
Update stack argument initialization behaviour to terminate creation of process on failing memory allocations
Themis Demetriades
2024-11-06 12:28:58 +00:00
5aac37d167
Add temporary fixes to process_wait and setup stack, w/ E
sBubshait
2024-11-05 23:28:17 +00:00
02fff62ca2
Refactor syscall.c to follow PintOS styling, w/ E
sBubshait
2024-11-05 23:24:41 +00:00
f4290c31f3
Implement syscall_read for console input w/ S.
EDiasAlberto
2024-11-05 23:20:18 +00:00
01933cb5de
Implement the write system call, w/ E
sBubshait
2024-11-05 23:07:07 +00:00
b3e23eb1cc
Implement system call wait w/ S.
EDiasAlberto
2024-11-05 22:48:35 +00:00
421f2c1206
Refactor function names and includes in syscall.c to avoid conflicts w/ S.
EDiasAlberto
2024-11-05 22:46:21 +00:00
e9c4061531
Implement the exit system call, w/ E
sBubshait
2024-11-05 22:38:45 +00:00
2dccd87a76
Update thread to add exit_status, intialised to -1, into the thread structure, w/ E
sBubshait
2024-11-05 22:38:09 +00:00
b4c41b0a6a
Remove superfluous include in process.c
Themis Demetriades
2024-11-04 12:57:29 +00:00
2a890d5bd2
Reformat calculation of padding size in stack set-up to increase clarity
Themis Demetriades
2024-11-04 12:54:18 +00:00
6c6ce77824
Implement complete stack initialization for user processes, without accounting for overflow
Themis Demetriades
2024-11-04 01:11:19 +00:00
f8e529e877
Add UNUSED tag to system call function skeletons w/ S.
EDiasAlberto
2024-11-04 01:02:04 +00:00