Quentin Legot
|
3244584da9
|
Add debug message and debug_assert
|
2023-04-13 02:10:09 +02:00 |
|
Quentin Legot
|
232617c32e
|
Add debug field to thread_manager and tried to fix sc_join (not worked :-( )
|
2023-04-13 02:05:21 +02:00 |
|
Quentin Legot
|
f144438490
|
loader now return better understanable errors, fix when compiler when to use bss section, add join exception, fix get_string_param, add support for thread in obbAddr, add a test
|
2023-04-13 00:18:51 +02:00 |
|
Quentin Legot
|
35736821c0
|
lint: remove some warning
|
2023-04-12 15:32:46 +02:00 |
|
Quentin Legot
|
752b70e448
|
Remove old P and V semaphore function and moved tests
|
2023-04-12 15:22:22 +02:00 |
|
Quentin Legot
|
21f3a72a3d
|
Fix exceptions with semaphore
|
2023-04-12 14:49:08 +02:00 |
|
Quentin Legot
|
134e2bd2cc
|
Fix a lot of errors
|
2023-04-12 14:01:39 +02:00 |
|
Quentin Legot
|
e8629b1ebf
|
Moving sc_new_thread to it own function
|
2023-04-12 13:55:32 +02:00 |
|
Quentin Legot
|
a36e470ea1
|
Add new thread exception (untested)
|
2023-04-11 17:47:36 +02:00 |
|
Quentin Legot
|
6c19f66d62
|
use setter instead of modifying the field itself
|
2023-04-06 13:48:37 +02:00 |
|
Quentin Legot
|
66d6daf0b9
|
Lint: remove some warnings
|
2023-04-06 13:46:59 +02:00 |
|
Quentin Legot
|
9cc57e7f03
|
Add launch argument parser, add debug parameter to machine
burritos now launch binary
|
2023-04-06 13:27:03 +02:00 |
|
Quentin Legot
|
01ac29160b
|
Fix test
|
2023-04-05 16:57:37 +02:00 |
|
Quentin Legot
|
b804117127
|
Fix loader test, only use one bin file in test_thread_context
|
2023-04-05 16:51:32 +02:00 |
|
Quentin Legot
|
f246e84f91
|
Use Default trait instead of init_machine()
|
2023-04-05 16:12:57 +02:00 |
|
Quentin Legot
|
02dd1f5ccf
|
Merge branch 'thread_scheduler' of gitlab.istic.univ-rennes1.fr:simpleos/burritos into thread_scheduler
|
2023-04-05 16:05:31 +02:00 |
|
Quentin Legot
|
44cfb828fb
|
Remove useless libc, elf and ucontext, add comments to exceptions
improve propagation of errors in raise_exception
|
2023-04-05 16:02:54 +02:00 |
|
Quentin Legot
|
8b3a3bebe7
|
Fix list::remove when trying to remove first element of the list (SIGSEGV)
|
2023-04-05 13:07:10 +02:00 |
|
Quentin Legot
|
24be35547e
|
Add Exit Exception
|
2023-04-05 12:01:31 +02:00 |
|
Quentin Legot
|
0fd2815a59
|
Improve test in thread_manager, increase memory size to make it fit
|
2023-04-04 22:01:49 +02:00 |
|
Quentin Legot
|
a001e45c3f
|
Add tests files
|
2023-04-04 20:55:27 +02:00 |
|
Quentin Legot
|
b8cba1abd7
|
Change Halt to Shutdown in sys.s
|
2023-04-04 17:25:51 +02:00 |
|
Quentin Legot
|
4480212ab0
|
Merge branch 'thread_scheduler' into bin-loader
|
2023-04-04 15:28:24 +02:00 |
|
Quentin Legot
|
fc3237c4ad
|
Adding test to loader, update ci (hope it work)
|
2023-04-04 11:50:29 +02:00 |
|
Quentin Legot
|
aef8d219d0
|
Continue to add comments
|
2023-04-03 15:58:57 +02:00 |
|
Quentin Legot
|
025ede6080
|
Add some comments
|
2023-04-03 15:26:55 +02:00 |
|
Quentin Legot
|
8c844c3e5c
|
Initialize sp value for each threads (temporary workaround)
|
2023-04-02 19:55:06 +02:00 |
|
Quentin Legot
|
8239079130
|
Add section flag support, loader now ready to run binary files
|
2023-04-01 00:14:09 +02:00 |
|
Quentin Legot
|
0a744f0f94
|
Add parsing of sections
|
2023-03-31 22:48:02 +02:00 |
|
Quentin Legot
|
443556b18a
|
Refactor loader into multiple struct
|
2023-03-31 21:49:26 +02:00 |
|
Quentin Legot
|
35c81e5269
|
Fix get_address_point
|
2023-03-31 19:34:45 +02:00 |
|
Quentin Legot
|
453de4b704
|
Fix is_riscv_isa
|
2023-03-31 15:34:04 +02:00 |
|
Quentin Legot
|
b4b7eb69c2
|
Add elf header parsing
|
2023-03-31 15:18:58 +02:00 |
|
Quentin Legot
|
703c8e5448
|
Loader seem to work, be seem we have a problem with jalr
|
2023-03-28 21:26:58 +02:00 |
|
Quentin Legot
|
7dff3bcdd9
|
Merge branch 'thread_scheduler' into bin-loader
|
2023-03-28 21:08:00 +02:00 |
|
Quentin Legot
|
cfcdce750b
|
Change filename in thread_manager::test-thread_context
|
2023-03-28 19:47:42 +02:00 |
|
Quentin Legot
|
e170256c9b
|
Fix build makefiles
|
2023-03-28 19:35:24 +02:00 |
|
Quentin Legot
|
7a32aa503c
|
Trying to make bin tests files
|
2023-03-28 17:54:05 +02:00 |
|
Quentin Legot
|
c9792d1a1a
|
Ignore uncomplete test
|
2023-03-27 22:24:46 +02:00 |
|
Quentin Legot
|
2f986da7ae
|
fix save_processor_state, move test to thread_manager
|
2023-03-27 22:20:29 +02:00 |
|
Quentin Legot
|
08ba0154f7
|
Add a bin loader
|
2023-03-27 18:10:11 +02:00 |
|
Quentin Legot
|
5963759141
|
Merge branch 'thread_scheduler' of gitlab.istic.univ-rennes1.fr:simpleos/burritos into thread_scheduler
|
2023-03-22 18:31:05 +01:00 |
|
Quentin Legot
|
6d0477153b
|
First iteration (not complete) of a test in thread_manager
|
2023-03-22 18:30:31 +01:00 |
|
Quentin Legot
|
ca9f458a7e
|
Add test module to tm
|
2023-03-22 15:52:48 +01:00 |
|
Quentin Legot
|
1b44949842
|
remove machine from system
|
2023-03-22 15:48:29 +01:00 |
|
Quentin Legot
|
da37e0657c
|
Merge branch 'thread_rework' into thread_scheduler
|
2023-03-22 15:08:38 +01:00 |
|
Quentin Legot
|
b104bcc6da
|
Fix memory leak
|
2023-03-22 14:33:56 +01:00 |
|
Quentin Legot
|
b9c329219a
|
Added 2 tests to list.rs, improve semantic and using Default trait instant of function new
|
2023-03-21 22:40:49 +01:00 |
|
Quentin Legot
|
d3b2d0bac6
|
List is now a fifo list
|
2023-03-21 22:03:48 +01:00 |
|
Quentin Legot
|
977cb2bf96
|
kernel now build
I commented out semaphore code too cause it need to be updated
and having some error cause the compiler to not check for borrow errors
|
2023-03-16 14:52:53 +01:00 |
|
Quentin Legot
|
fa64d4314d
|
decrease some dependencies
|
2023-03-15 17:57:53 +01:00 |
|
Quentin Legot
|
9c3501eb40
|
Merge branch 'thread_scheduler' of https://gitlab.istic.univ-rennes1.fr/simpleos/burritos into thread_scheduler
|
2023-03-15 11:09:41 +01:00 |
|
Quentin Legot
|
c8df1e5053
|
use of system in parameters in synch
|
2023-03-15 11:09:34 +01:00 |
|
Quentin Legot
|
88a0b31300
|
Add thread_finish
|
2023-03-14 22:01:52 +01:00 |
|
Quentin Legot
|
7de7f2e007
|
Fix scheduler switch_to by making a lot of change(use smart pointers in place of lifetime reference)
|
2023-03-13 21:47:06 +01:00 |
|
Quentin Legot
|
39e26e61bb
|
Add thread_sleep
|
2023-03-13 20:55:46 +01:00 |
|
Quentin Legot
|
5a6a70f1b7
|
Force the compiler and clippy to return a warning when a function isn't documented
|
2023-03-13 14:51:32 +01:00 |
|
Quentin Legot
|
1f54ed35db
|
Implement thread#t_yield()
|
2023-03-11 14:48:56 +01:00 |
|
Quentin Legot
|
45fea708fc
|
Changed all reference to thread with an RefCell to enforce mutability
|
2023-03-10 19:11:16 +01:00 |
|
Quentin Legot
|
26b75ffe8d
|
Add thread save and restore processor context
|
2023-03-10 19:11:13 +01:00 |
|
Quentin Legot
|
0c3af96b78
|
Fix start_thread
|
2023-03-10 19:04:23 +01:00 |
|
Quentin Legot
|
6820086579
|
Added thread manager
|
2023-03-10 19:04:23 +01:00 |
|
Quentin Legot
|
3406544e3b
|
Remove old static vars in scheduler, doesn't work
|
2023-03-10 19:04:23 +01:00 |
|
Quentin Legot
|
75e5c17f28
|
Fix thread
|
2023-03-10 19:04:23 +01:00 |
|
Quentin Legot
|
bf4be44676
|
Add list.remove(T)
|
2023-03-10 19:04:22 +01:00 |
|
Quentin Legot
|
dc49951bab
|
Implemente finish (not finished yet), fix ucontext for windows
|
2023-03-10 19:03:49 +01:00 |
|
Quentin Legot
|
3457f67a7c
|
Add ucontext_t
|
2023-03-10 19:02:38 +01:00 |
|
Quentin Legot
|
e4db7ec96b
|
Implement interrupt
|
2023-03-10 19:02:37 +01:00 |
|
Quentin Legot
|
621b0568b0
|
Move system to the right location
|
2023-03-10 19:01:22 +01:00 |
|
Quentin Legot
|
83df053dc6
|
Implement Thread::start and join
|
2023-03-10 19:01:22 +01:00 |
|
Quentin Legot
|
c140830faa
|
Adding some content to thread
|
2023-03-10 19:01:22 +01:00 |
|
Quentin Legot
|
99fc514720
|
Change var name to fit with rust conventions
|
2023-03-10 19:01:22 +01:00 |
|
Quentin Legot
|
cf1c7aad5a
|
Fix global var
|
2023-03-10 19:01:22 +01:00 |
|
Quentin Legot
|
e3e217c57f
|
scheduler done
|
2023-03-10 19:01:22 +01:00 |
|
Quentin Legot
|
adce79aaa8
|
Add scheduler structure
|
2023-03-10 19:01:21 +01:00 |
|
Quentin Legot
|
336ccd1425
|
Add thread structure
|
2023-03-10 19:01:21 +01:00 |
|
Quentin Legot
|
958407ab77
|
Improve list by adding iterator trait
|
2023-03-10 19:01:21 +01:00 |
|
Quentin Legot
|
407480bcd4
|
Add double linked list
|
2023-03-10 19:01:21 +01:00 |
|
Quentin Legot
|
a38251c111
|
Add kernel mod
|
2023-03-10 19:01:20 +01:00 |
|
Quentin Legot
|
e1ba3f6078
|
Changed all reference to thread with an RefCell to enforce mutability
|
2023-03-09 14:00:42 +01:00 |
|
Quentin Legot
|
d392c69535
|
Add thread save and restore processor context
|
2023-03-09 12:08:33 +01:00 |
|
Quentin Legot
|
fe4bbb2fc2
|
Fix start_thread
|
2023-03-08 21:43:03 +01:00 |
|
Quentin Legot
|
4ca85b54d4
|
Added thread manager
|
2023-03-08 21:10:51 +01:00 |
|
Quentin Legot
|
0f5eb84c7b
|
Remove old static vars in scheduler, doesn't work
|
2023-03-08 16:05:05 +01:00 |
|
Quentin Legot
|
f15d782916
|
Fix thread
|
2023-03-08 15:54:10 +01:00 |
|
Quentin Legot
|
99be85acf5
|
Merge branch 'thread_scheduler' of gitlab.istic.univ-rennes1.fr:simpleos/burritos into thread_scheduler
|
2023-03-08 15:47:19 +01:00 |
|
Quentin Legot
|
62b60186e9
|
Add list.remove(T)
|
2023-03-08 15:46:53 +01:00 |
|
Quentin Legot
|
8c6ef4e131
|
Implemente finish (not finished yet), fix ucontext for windows
|
2023-03-08 13:21:08 +01:00 |
|
Quentin Legot
|
6ca0b564c5
|
Add ucontext_t
|
2023-03-06 16:31:35 +01:00 |
|
Quentin Legot
|
4dae299008
|
Implement interrupt
|
2023-03-01 17:18:45 +01:00 |
|
Quentin Legot
|
b39e56b9c4
|
Move system to the right location
|
2023-03-01 17:01:02 +01:00 |
|
Quentin Legot
|
68ee179e12
|
Implement Thread::start and join
|
2023-03-01 16:55:17 +01:00 |
|
Quentin Legot
|
77e6d74b3b
|
Adding some content to thread
|
2023-03-01 15:45:49 +01:00 |
|
Quentin Legot
|
792497b14c
|
Change var name to fit with rust conventions
|
2023-03-01 11:16:21 +01:00 |
|
Quentin Legot
|
4c8062905c
|
Fix global var
|
2023-03-01 11:10:15 +01:00 |
|
Quentin Legot
|
6f98224da1
|
scheduler done
|
2023-03-01 10:11:19 +01:00 |
|
Quentin Legot
|
013a2968cd
|
Add scheduler structure
|
2023-02-28 16:39:40 +01:00 |
|
Quentin Legot
|
e422e65767
|
Add thread structure
|
2023-02-28 14:43:40 +01:00 |
|
Quentin Legot
|
fd6b22a2f3
|
Improve list by adding iterator trait
|
2023-02-17 09:45:47 +01:00 |
|
Quentin Legot
|
bd0b6e17a5
|
Add double linked list
|
2023-02-15 18:10:08 +01:00 |
|