Commit Graph

401 Commits

Author SHA1 Message Date
Runji Wang ddde5ae1e7 update dependencies 2021-03-01 20:32:18 +08:00
Ben Pig Chu 055581d226 Merge remote-tracking branch 'rcore-os/master' into vmo 2020-11-11 14:43:47 +08:00
Ben Pig Chu e042307f5c Make it possible to not map range immediately 2020-10-13 22:07:41 +08:00
Ben Pig Chu 027c76c720 vmar.protect now changes page table mmuflags 2020-10-11 03:26:40 +08:00
Runji Wang 3efbf73905 fix cargo clippy 2020-10-01 17:03:18 +08:00
Ben Pig Chu 0988aa6b56 Change how we handle the vmar permission 2020-09-19 21:36:56 +08:00
Ben Pig Chu 31fde3be20 remove map_at_ext in vmar 2020-09-13 15:25:48 +08:00
Ben Pig Chu a98aa368e8 Reject invalid bits in vmoptions 2020-09-12 00:20:09 +08:00
Ben Pig Chu bf26f0cf59 Vmar.InvalidArgsTest related fixes 2020-09-11 23:47:58 +08:00
Ben Pig Chu 3e3b86c646 Process_*_memory actual should be ptr to usize 2020-09-06 22:42:32 +08:00
Ben Pig Chu 0df65c2233 Easy vmar fixes 2020-09-06 21:57:26 +08:00
Ben Pig Chu a4b2cb53fb Merge branch 'master' of https://github.com/rcore-os/zCore into task 2020-08-30 15:42:19 +08:00
Ben Pig Chu 2fbd468bee Add state limitation to thread_*_state 2020-08-30 15:25:35 +08:00
xxchan 8b014d4ad9 add a separate mod pci_init_args 2020-08-27 13:59:09 +08:00
Ben Pig Chu fb25783367 call end_running earlier 2020-08-26 17:47:54 +08:00
Ben Pig Chu 036c5a7888 add implement of thread read state syscall 2020-08-23 14:56:09 +08:00
Runji Wang f753d655cb fix cargo clippy for hypervisor 2020-08-14 15:17:34 +08:00
Runji Wang a6a2427630 refactor thread spawn 2020-08-14 15:17:34 +08:00
Runji Wang abe4792691 split Thread to CurrentThread, refactor exception 2020-08-14 14:27:03 +08:00
Runji Wang c73db1220f object: refactor exception 2020-08-13 19:34:36 +08:00
Runji Wang 98c064d0fe object: move exceptionate into Task trait 2020-08-13 19:34:36 +08:00
Runji Wang 62bd8a5139 object: remove reserved options of Process and Thread 2020-08-13 19:34:36 +08:00
Runji Wang 91f5688c78 object: merge cancelable_blocking_run to blocking_run 2020-08-13 19:34:35 +08:00
Runji Wang a66c9f37ca refactor exception handling
- remove exit field from Syscall
- rustify method names
2020-08-13 15:46:16 +08:00
Runji Wang 4c7a3b802a remove options from Job::create_child 2020-08-13 12:12:29 +08:00
Runji Wang a0cc7ddaec
Merge pull request #141 from iLFTH/master
Preliminary code comments have been added for Zircon-syscalls
2020-08-12 16:31:47 +08:00
iLifetruth 4ad16f5177 improved the doc of Zircon system calls 2020-08-12 16:21:12 +08:00
Runji Wang 76077a7c41
Merge pull request #108 from benpigchu/exception
Exception channel, part 2
2020-08-12 13:57:04 +08:00
Wenlong Zhang f7152c709c run cargo fmt -all 2020-08-11 20:47:45 +08:00
Wenlong Zhang 289cd8f097 updated zircon-syscall's commits 2020-08-11 11:26:14 +08:00
Wenlong Zhang 902ffd1e3e added more syscall's commits 2020-08-11 10:57:24 +08:00
Wenlong Zhang f21fd32bde added more syscall's commits except for pic.rs 2020-08-11 10:43:15 +08:00
Wenlong Zhang b02ea3681f added syscall's commits 2020-08-11 07:56:19 +08:00
Runji Wang f2640526d7
Merge pull request #123 from xxchan/ipc-doc
Improve docs and tests for `zircon_object::ipc`
2020-08-10 21:37:12 +08:00
Ben Pig Chu 2fdaea83c8 revert unwanted log level change 2020-08-05 04:01:04 +08:00
Ben Pig Chu 9b256d0568 Merge remote-tracking branch 'rcore-os/master' into exception 2020-08-04 23:49:38 +08:00
xxchan 5c8a0946c7 `count` in fifo read/write should be nonzero. Swap the param order of `Fifo::read` to make it the same as `Fifo::write` 2020-08-02 18:42:04 +08:00
xxchan df9968ae35 `minor refactors in `socket` 2020-08-02 00:33:03 +08:00
xxchan 590131ee7b add docs and delete deprecated options and methods (about control) in `socket` 2020-08-02 00:33:02 +08:00
xxchan d31ab55175 validate `options` in `Port::new()` 2020-07-28 01:47:42 +08:00
Runji Wang ecb2c9cf3f
Fix out-of-memory panic (#116)
* fix out-of-memory panic

* fix smpboot. application processors are able to run on userspace.
2020-07-23 23:21:33 +08:00
Ben Pig Chu 08411806b4 Tweak how thread ends 2020-07-22 04:56:53 +08:00
Ben Pig Chu 6ca3635cc5 Delay the termination of tasks 2020-07-21 22:47:35 +08:00
Ben Pig Chu a52c0e8a1e Check value of exception property 2020-07-21 19:30:33 +08:00
equation314 d0b45e7a09 Merge branch 'master' into hypervisor 2020-07-17 15:13:30 +08:00
equation314 82ca3d891a hypervisor: ensure the thread of vcpu has not been changed 2020-07-17 15:10:10 +08:00
Ben Pig Chu 7aad97cad6 avoid break linux when passing first thread 2020-07-16 22:58:22 +08:00
Ben Pig Chu b300f6ef2f fmt+test case check 2020-07-16 22:45:11 +08:00
equation314 08640b373f hypervisor: support set bell type (asynchronous) traps 2020-07-16 22:27:56 +08:00
Ben Pig Chu 641181bdb8 ProcessStarting exception 2020-07-16 18:00:15 +08:00
equation314 0a47a003d9 hypervsior: implemented sys_vcpu_read_state & sys_vcpu_write_state 2020-07-16 02:19:53 +08:00
equation314 afac963748 hypervisor: add more port packets, implemented sys_vcpu_resume 2020-07-15 20:43:33 +08:00
Ben Pig Chu 9e746ab8d2 Copy rights of task to task form exception channel 2020-07-15 01:51:28 +08:00
Ben Pig Chu d133237224 Thread exception channel shouldn't get the process 2020-07-15 01:07:14 +08:00
equation314 97cd1e2e54 hypervisor: implemented sys_vcpu_create & sys_vcpu_interrupt 2020-07-14 17:10:36 +08:00
Ben Pig Chu 9f67476497 zx_exception_get_thread/zx_exception_get_process 2020-07-12 17:02:12 +08:00
Ben Pig Chu 67936b8791 Rewrite sys_create_exception_channel 2020-07-12 17:02:09 +08:00
Ben Pig Chu 6d93b0dab8 get/set property on Exception 2020-07-12 17:02:06 +08:00
Ben Pig Chu d496599bff ZX_INFO_THREAD_EXCEPTION_REPORT when geting info 2020-07-12 17:02:04 +08:00
Ben Pig Chu 443870c00d Import exception types 2020-07-12 17:01:47 +08:00
equation314 ae34b594b4 hypervisor: partially implemented sys_guest_set_trap
(without using port to set asynchronous trap)
2020-07-11 17:56:27 +08:00
equation314 6d74374576 hypervisor: implemented sys_guest_create 2020-07-11 15:50:28 +08:00
equation314 d33746d5d4 hypervisor: add features, import RVM 2020-07-09 00:23:11 +08:00
Runji Wang 4a0fdbc589 rename variables in stream syscall 2020-07-08 12:56:48 +08:00
Runji Wang adef41d247 refactor Stream. merge IoVec from Linux and Zircon 2020-07-08 12:44:03 +08:00
Runji Wang e1bfdfe8e9
Merge pull request #93 from DeathWish5/stream-dev
Implement Stream object
2020-07-08 11:07:26 +08:00
Yuekai Jia 2a02dbfad5
Fix memory leak in sys_vmo_replace_as_executable (#97) 2020-07-08 11:05:25 +08:00
deathwish5 7e5631b8d4 fix bug in release mode 2020-07-08 01:57:01 +08:00
Yuekai Jia 3bb5974aa2
Returns SHOULD_WAIT when the queue is full in sys_port_queue (#96) 2020-07-08 01:39:41 +08:00
Runji Wang c5707461fc
simplify DebugLog and implement sys_debuglog_read (#94)
pass DebugLogTest.WriteRead
`dlog` command is available
2020-07-07 18:55:04 +08:00
deathwish5 2b1794929e pass core-stream 2020-07-06 15:54:46 +08:00
Ben Pig Chu 89ce654889 killed job should not be alive 2020-07-03 18:19:59 +08:00
Ben Pig Chu d24c8ae98b Killing the job 2020-07-03 17:31:28 +08:00
Ben Pig Chu 434b7682f6 Killing a blocking thread 2020-07-03 17:26:39 +08:00
Ben Pig Chu 9ab31501aa self killing should call exit instead 2020-07-03 16:36:18 +08:00
Ben Pig Chu 9ed9692bfc Cleanup+use state instead of dying bool 2020-07-02 21:17:34 +08:00
Ben Pig Chu 2441797f9b Merge remote-tracking branch 'rcore-os/master' into task 2020-07-02 20:48:43 +08:00
Ben Pig Chu 30127280ee Merge commit 'bc0d217c58e0eab5b06aa52c6e51b5d42aeb29b6' into task 2020-07-02 20:24:11 +08:00
Ben Pig Chu 3039be2146 Fix kill suspend 2020-07-02 20:21:35 +08:00
Ben Pig Chu f3b9dfa002 Merge commit '8fe82aca24375960f4eca04c7a2a508a46d19ee8' into task 2020-07-02 19:25:33 +08:00
Yuekai Jia d2091aef94
Update Fuchsia version to 20200630 (#89)
* Rebuild x64/arm64 prebuilt images & libraries.
* Add hypervisor test.
* Update `gen-prebuilt.sh`.
* Two core test cases are no longoer passed, remove them from `test-check-passed.txt`.
2020-07-02 14:47:33 +08:00
equation314 702346897e Add dummy sys_clock_create & sys_clock_update 2020-06-29 19:07:20 +08:00
equation314 bc0d217c58 Fix job_set_critical 2020-06-29 18:52:14 +08:00
Runji Wang 26d305a705 move process_{read,write}_memory logic into VMAR. add test check. 2020-06-27 21:01:09 +08:00
GCYY 2bcdc19c2a Add syscall process_read_memory and process_write_memory 2020-06-27 20:17:19 +08:00
Ben Pig Chu 851faba694 Merge remote-tracking branch 'rcore-os/master' into vmo 2020-06-26 23:01:56 +08:00
刘丰源 8f5d827f5c impl sys_task_kill(without job kill), kill suspended thread fail 2020-06-26 21:34:08 +08:00
Runji Wang 9ed4ce8c6c fix compiling zircon libos on aarch64 2020-06-26 09:34:27 +00:00
刘丰源 bc4124ef6c impl sys_task_kill, bug with bug(kill job cannot work) 2020-06-24 21:55:45 +08:00
Ben Pig Chu 6bffb3839b Merge remote-tracking branch 'rcore-os/master' into vmo 2020-06-21 22:51:24 +08:00
Ben Pig Chu 36d2840017 Various fix and workaround for vmar test 2020-06-21 22:37:30 +08:00
Runji Wang e0e1917415 update prebuilt and fix for libos 2020-06-21 18:50:51 +08:00
Runji Wang 56e602e887 update fuchsia version to 20200610 2020-06-21 18:35:03 +08:00
Runji Wang 2796a9d266 refactor auto-test. prepare test script for CI. 2020-06-17 16:49:23 +08:00
Runji Wang 28bd539454 support core-tests on Makefile 2020-06-17 14:19:42 +08:00
GCYY 9c73b36c7b fix by clippy 2020-06-16 18:01:19 +08:00
GCYY f6eee18dde fix format 2020-06-16 17:55:24 +08:00
GCYY fba4cdf872 Add auto-test and Change some code in zCore/rboot.conf zircon-loader/src/lib.rs zircon-syscall/src/channel.rs 2020-06-16 17:31:27 +08:00
GCYY cf4eab5668 Add auto-test and Change some code in zCore/rboot.conf zircon-loader/src/lib.rs zircon-syscall/src/channel.rs 2020-06-16 17:21:19 +08:00
Runji Wang b1f4cd5b6c set default log level to warning 2020-06-14 22:47:27 +08:00