Themis Demetriades
|
b2764cfa0c
|
Revert setup_stack pointer decrement 'hack' faking stack initialization
|
2024-11-06 22:46:11 +00:00 |
|
Themis Demetriades
|
4020a140d2
|
Fix removal of 'timer.h' include needed for calling timer_sleep in process module
|
2024-11-06 22:36:43 +00:00 |
|
Demetriades, Themis
|
87dd84a9b9
|
Merge branch 'user-programs' into 'user-programs-stdout'
Merge basic system calls with stack set-up infrastructure
See merge request lab2425_autumn/pintos_22!27
|
2024-11-06 22:21:28 +00:00 |
|
Demetriades, Themis
|
014642c789
|
Merge branch 'user-programs-stdout' into 'user-programs'
# Conflicts:
# src/userprog/process.c
|
2024-11-06 22:20:48 +00:00 |
|
Dias Alberto, Ethan
|
1a4afc9ec7
|
Merge branch 'system-calls' into 'user-programs'
# Conflicts:
# src/userprog/process.c
Fix conflict in differing placeholder process_wait implementations
|
2024-11-06 16:56:43 +00:00 |
|
Dias Alberto, Ethan
|
5535cbae24
|
Merge branch 'master' into 'system-calls'
Merge refactor and removal of duplicated code into section-specific branch
See merge request lab2425_autumn/pintos_22!25
|
2024-11-06 16:45:53 +00:00 |
|
Dias Alberto, Ethan
|
f685086d05
|
Merge branch 'refactor-semaphore' into 'master'
Refactor synch.c to remove code duplication in lock release
See merge request lab2425_autumn/pintos_22!23
|
2024-11-06 16:42:26 +00:00 |
|
Dias Alberto, Ethan
|
2fefdef605
|
Merge branch 'user-programs-temporary-fix' into 'user-programs'
Temporary fixes for process waiting and stack setup to allow simple user programs to run
See merge request lab2425_autumn/pintos_22!24
|
2024-11-06 16:41:49 +00:00 |
|
sBubshait
|
fcb7e9e441
|
Update setup_stack to temporarily fake set-up for a stack to prevent page faults in no arg user programs
|
2024-11-06 15:48:27 +00:00 |
|
sBubshait
|
ab716de0a6
|
Update process_wait to temporarily sleep for 1 second to allow user programs to run
|
2024-11-06 15:46:47 +00:00 |
|
sBubshait
|
91cef4d650
|
Refactor lock release and sema up to remove unnecessary code
|
2024-11-06 15:36:56 +00:00 |
|
Themis Demetriades
|
b0c1923d44
|
Update stack argument initialization behaviour to terminate creation of process on failing memory allocations
|
2024-11-06 12:28:58 +00:00 |
|
sBubshait
|
5aac37d167
|
Add temporary fixes to process_wait and setup stack, w/ E
|
2024-11-05 23:28:17 +00:00 |
|
sBubshait
|
02fff62ca2
|
Refactor syscall.c to follow PintOS styling, w/ E
|
2024-11-05 23:24:41 +00:00 |
|
EDiasAlberto
|
f4290c31f3
|
Implement syscall_read for console input w/ S.
|
2024-11-05 23:20:18 +00:00 |
|
sBubshait
|
01933cb5de
|
Implement the write system call, w/ E
|
2024-11-05 23:07:07 +00:00 |
|
EDiasAlberto
|
b3e23eb1cc
|
Implement system call wait w/ S.
|
2024-11-05 22:48:35 +00:00 |
|
EDiasAlberto
|
421f2c1206
|
Refactor function names and includes in syscall.c to avoid conflicts w/ S.
|
2024-11-05 22:46:21 +00:00 |
|
sBubshait
|
e9c4061531
|
Implement the exit system call, w/ E
|
2024-11-05 22:38:45 +00:00 |
|
sBubshait
|
2dccd87a76
|
Update thread to add exit_status, intialised to -1, into the thread structure, w/ E
|
2024-11-05 22:38:09 +00:00 |
|
Themis Demetriades
|
b4c41b0a6a
|
Remove superfluous include in process.c
|
2024-11-04 12:57:29 +00:00 |
|
Themis Demetriades
|
2a890d5bd2
|
Reformat calculation of padding size in stack set-up to increase clarity
|
2024-11-04 12:54:18 +00:00 |
|
Themis Demetriades
|
6c6ce77824
|
Implement complete stack initialization for user processes, without accounting for overflow
|
2024-11-04 01:11:19 +00:00 |
|
EDiasAlberto
|
f8e529e877
|
Add UNUSED tag to system call function skeletons w/ S.
|
2024-11-04 01:02:04 +00:00 |
|
EDiasAlberto
|
2a9ab5ec97
|
fix merge conflicts
|
2024-11-04 01:00:33 +00:00 |
|
EDiasAlberto
|
4c27aa0203
|
Complete syscall lookup table, and syscall stubs and skeletons w/ S.
|
2024-11-04 00:57:19 +00:00 |
|
sBubshait
|
5e2342fad7
|
Update syscall to make syscall_number an unsigned integer instead of an int
|
2024-11-04 00:49:47 +00:00 |
|
sBubshait
|
0d057da3dc
|
Refactor syscall to follow PintOS style in adding space after after function name in calls
|
2024-11-04 00:48:36 +00:00 |
|
sBubshait
|
79f6a8e808
|
Fix Bug in syscall handler related to pointer arithmetic: add sizeof uintptr_t instead of 1
|
2024-11-04 00:44:55 +00:00 |
|
sBubshait
|
3a258cf064
|
Update validate_user_pointer to perform no memory checks when size is 0
|
2024-11-04 00:38:58 +00:00 |
|
sBubshait
|
e718159ed8
|
Update syscall to use screaming uppercase casing for a constant
|
2024-11-04 00:29:07 +00:00 |
|
sBubshait
|
ade8faf0f4
|
Update syscall to add more comments explaining the basic handler
|
2024-11-04 00:20:09 +00:00 |
|
Themis Demetriades
|
6f9c911ebe
|
Update start_process to pad process stack before pushing argv elements for performance
|
2024-11-04 00:19:36 +00:00 |
|
Themis Demetriades
|
62d2cb54e5
|
Update start_process to push pointers to process arguments onto the process thread's stack
|
2024-11-04 00:16:04 +00:00 |
|
Themis Demetriades
|
92c681ff02
|
Reformat start_process stack initialization code to follow style
|
2024-11-04 00:04:08 +00:00 |
|
Themis Demetriades
|
34d6c15d73
|
Update start_process to push process argument values to its thread's stack
|
2024-11-04 00:00:56 +00:00 |
|
sBubshait
|
d626b7a392
|
Implement basic syscall_handler using the lookup table, w/ E
|
2024-11-03 23:47:22 +00:00 |
|
EDiasAlberto
|
87126237ad
|
Implement function to validate user memory pointers w/ S.
|
2024-11-03 23:20:42 +00:00 |
|
sBubshait
|
62453ef432
|
Add a look up table from system call numbers to their handler functions, w/ E
|
2024-11-03 22:54:03 +00:00 |
|
EDiasAlberto
|
c0f85a6bcc
|
Implement skeleton for exit command w/ S.
|
2024-11-03 22:36:22 +00:00 |
|
EDiasAlberto
|
fa6dac2108
|
Implement halt system call w/ S.
|
2024-11-03 22:34:50 +00:00 |
|
sBubshait
|
0bf5fdb0e5
|
Add syscall_function type definition for the different syscall handlers, w/ E
|
2024-11-03 22:28:17 +00:00 |
|
Themis Demetriades
|
e26b11cce6
|
Update setup_stack skeleton to fake minimal stack set-up for testing purposes
|
2024-11-03 18:04:42 +00:00 |
|
Themis Demetriades
|
eb458efa59
|
Update process_wait skeleton to loop infinitely for testing purposes
|
2024-11-03 17:38:38 +00:00 |
|
Saleh Bubshait
|
74efa5e652
|
Merge branch 'task1/themis/thread-create-refactor' into 'master'
Refactor thread_create () to call thread_get_priority in order to retrieve priority
See merge request lab2425_autumn/pintos_22!21
Task_1_-_Scheduling
|
2024-10-25 16:56:31 +00:00 |
|
Themis Demetriades
|
4066354f8a
|
Refactor thread_create () to call thread_get_priority in order to retrieve priority
|
2024-10-25 17:03:18 +01:00 |
|
Demetriades, Themis
|
4c33653369
|
Merge branch 'task1/saleh/priority-donation-refactoring' into 'master'
priority donation refactoring
See merge request lab2425_autumn/pintos_22!20
|
2024-10-25 15:57:22 +00:00 |
|
sBubshait
|
c2414ec54d
|
Add priority_less for comparing threads based on priority and Refactor sema up to use list_max for clarity
|
2024-10-25 16:04:55 +01:00 |
|
sBubshait
|
30ab3ae861
|
Update thread_create to only yield CPU to the new thread if necessary
|
2024-10-25 15:47:19 +01:00 |
|
sBubshait
|
81309dcda9
|
Refactor sema_up to follow PintOS styling of if statements
|
2024-10-25 15:44:56 +01:00 |
|