1
0
mirror of https://github.com/rcore-os/rCore.git synced 2025-01-19 01:07:05 +04:00
Commit Graph

1224 Commits

Author SHA1 Message Date
jiegec
59428269c7 Re-generate riscv patch on newer nightly 2020-06-15 17:47:44 +08:00
Jiajie Chen
18f862ca48 Upgrade aarch64 for llvm_asm change 2020-06-15 17:28:48 +08:00
Runji Wang
3ae186de10 update dependencies 2020-06-15 17:14:41 +08:00
Jiajie Chen
39ffdbb3e7 Bump to nightly-2020-06-04 and use llvm_asm instead of asm 2020-06-15 16:56:21 +08:00
Jiajie Chen
1c43d6044f Format code 2020-06-15 15:13:09 +08:00
Jiajie Chen
ad97e2ab13 Fix shmget conflict 2020-06-15 15:09:07 +08:00
Jiajie Chen
833faacf83 Merge branch 'master' into pull-30-merge 2020-06-15 15:07:29 +08:00
Runji Wang
eaa3b42f5d clean and refactor code 2020-06-15 12:34:24 +08:00
Jiajie Chen
f85f62dd81 Cleanup unneeded commented code 2020-06-12 09:50:43 +08:00
Chen
1176446f83
Merge branch 'master' into EatenBagpipe-master 2020-06-12 09:47:57 +08:00
Jiajie Chen
2fe309f6c8 Fix compilation for riscv32 2020-06-12 09:33:19 +08:00
Jiajie Chen
56eaa83e79 Fix compilation for aarch64 2020-06-12 09:18:10 +08:00
Jiajie Chen
dfa963ad04 Guard fpe by arch 2020-06-12 09:11:19 +08:00
Jiajie Chen
5b01f1b6ad Add missing functions for riscv 2020-06-12 09:10:25 +08:00
Jiajie Chen
ad4ea951e3 Don't enable kvm by default 2020-06-12 08:53:43 +08:00
Jiajie Chen
12a29297ba Revert part of changes 2020-06-12 08:50:07 +08:00
Liu Xiaoyi
b41147f436
Fixed RISC-V tlb not flushed during context switch
Added a missing SFENCE.VMA
2020-06-08 16:39:46 +08:00
function2-llx
c157890f33 run cargo fmt 2020-06-06 04:27:19 +08:00
function2-llx
3d83f84556 fix sigaltstack 2020-06-06 04:04:50 +08:00
function2-llx
0f2fae8590 pass utime 2020-06-06 02:39:45 +08:00
function2-llx
75967f12c0 user content 2020-06-05 21:52:57 +08:00
宋香君
4d30eeadb1 Merge branch 'master' of github.com:EatenBagpipe/rCore 2020-06-05 16:34:00 +08:00
宋香君
8cb2602416 update initialization for mxcsr register, enable KVM 2020-06-05 16:32:09 +08:00
function2-llx
60100e1e78 stable signal implementation framework 2020-06-05 15:59:04 +08:00
function2-llx
bee5a77e2b fix bug 2020-06-04 19:15:06 +08:00
function2-llx
98d3f83a12 fix ctrl+C 2020-05-31 19:07:54 +08:00
prettykernel
2dfca0c445 fix some compile warnings, and fix deprecated qemu option 2020-05-31 16:06:38 +08:00
function2-llx
4c1650d027 fix some bug; page fault when syscall in signal handler 2020-05-31 06:03:22 +08:00
function2-llx
da5a7993b4 implement ctrl+C 2020-05-30 23:12:25 +08:00
function2-llx
0d3c207cd2 tty 2020-05-30 04:23:04 +08:00
function2-llx
d70b920b1c signal 2020-05-29 17:57:35 +08:00
function2-llx
9a02550bcb fix mxcsr; flock 2020-05-25 05:55:53 +08:00
宋香君
0cce66c876 add mxcsr register in x86_64 2020-05-25 01:48:54 +08:00
function2-llx
5242f21488 fix bug of condvar 2020-05-24 01:19:54 +08:00
function2-llx
b0a80d96ea return error when seek on pipe 2020-05-23 03:49:17 +08:00
function2-llx
b49270a903 fix behavior of sys_exit about child_tid 2020-05-23 02:18:57 +08:00
function2-llx
ff54128273 Merge branch 'master' of github.com:rcore-os/rCore 2020-05-22 23:10:54 +08:00
function2-llx
5c7b637c97 shm 2020-05-16 07:04:42 +08:00
Liu Xiaoyi
0e25fd187d
Fixed QEMU serial interrupt not firing 2020-05-16 01:42:23 +08:00
function2-llx
6253d80e1d fix bug of Condvar::notify: remove from queue when wake up 2020-05-15 21:11:52 +08:00
Liu Xiaoyi
0d41db4991
Fixed noncontiguous frame allocated in DMA initialization 2020-05-15 14:59:03 +08:00
function2-llx
14f418f663 add wait_timeout for condvar, support timeout in futex wait 2020-05-13 19:56:50 +08:00
Liu Xiaoyi
297480e8bd
Reverted modification of Cargo.toml 2020-05-13 15:20:37 +08:00
Liu Xiaoyi
838513e05c
Cargo.lock & format 2020-05-13 15:12:15 +08:00
Liu Xiaoyi
54504eb317
Fixed stack overflow caused by large struct initialization on stack 2020-05-13 05:00:25 +08:00
function2-llx
0c4d53f8d4 fix getdents64: set inode id and file type properly 2020-05-13 02:05:31 +08:00
function2-llx
17b55552d1 Merge branch 'master' of github.com:rcore-os/rCore 2020-05-12 22:07:07 +08:00
function2-llx
db6a8a9015 decrease offset when write fail in getdents64 2020-05-12 19:31:37 +08:00
Chen
cc93de1d25
Merge branch 'master' into fix-nanosleep 2020-05-11 12:35:33 +08:00
Jiajie Chen
14f74aaaeb Let halt quit QEMU with zero exit code 2020-05-11 12:13:49 +08:00
Jiajie Chen
104c0c83e6 Fix 0ns case of nanosleep 2020-05-11 11:55:05 +08:00
function2-llx
64957a6d2e use wrapping add to prevent panic 2020-05-09 11:07:28 +08:00
function2-llx
1aaa2aad20 implement some of semctl; run libc-test 2020-05-09 06:24:22 +08:00
function2-llx
b946f8606d fix fork(dup) 2020-05-08 22:24:42 +08:00
Jiajie Chen
c5a5cc398a Support F_DUPFD_CLOEXEC in fcntl 2020-04-27 12:43:11 +08:00
function2-llx
d32027a645 run make 2020-04-27 03:08:23 +08:00
function2-llx
f98db379ff fix time 2020-04-26 14:20:09 +08:00
function2-llx
6e5e91a10a record time in metadata 2020-04-26 02:04:09 +08:00
function2-llx
ff9b0cc303 add utimensat, fix touch 2020-04-25 23:05:40 +08:00
function2-llx
db9ef2112b symlink 2020-04-25 18:41:41 +08:00
function2-llx
2271bbd0e9 fix trunc 2020-04-20 13:06:14 +08:00
宋香君
c5c0196a54 fix options in FileHandle 2020-04-20 00:16:54 +08:00
function2-llx
c50d25dba9 fix fork 2020-04-19 23:40:37 +08:00
function2-llx
c740b67a52 Merge branch 'master' of github.com:rcore-os/rCore 2020-04-19 19:47:41 +08:00
equation314
395b8b51c1 Updata rcore-fs version to 7e7c74a
Support non-zero return value for INode::io_control()
2020-04-14 20:24:27 +08:00
function2-llx
8bb6370f6c fmt 2020-04-13 13:16:34 +08:00
function2-llx
cc1bd96778 dup3 2020-04-13 11:23:07 +08:00
function2-llx
555ad64102 add block in pipe, fix some bug 2020-04-13 00:33:32 +08:00
function2-llx
b2e714d68d fix dup 2020-04-12 18:52:21 +08:00
function2-llx
d777f59118 run shell 2020-04-11 10:05:49 +08:00
function2-llx
47dade0c73 merge 2020-04-09 22:30:33 +08:00
Runji Wang
139544f946 update Rust nightly to 2020-04-06 2020-04-06 17:19:05 +08:00
equation314
d3b82267c1 Merge branch 'master' into clear-warning 2020-04-06 00:44:18 +08:00
equation314
d10997f90f Update Rust nightly to 2020-03-23. 2020-04-05 22:01:43 +08:00
equation314
c7f64461d0 Bump rboot version 2020-04-05 21:35:07 +08:00
function2-llx
7223cee638 add tty 2020-04-05 20:25:11 +08:00
equation314
332830b7c4 Update rcore-fs version 2020-04-04 23:48:39 +08:00
equation314
822f3010c8 Move device file system codes into src/fs/devfs 2020-04-04 23:48:28 +08:00
equation314
f95b863d80 Add read_at/write_at functions to Framebuffer 2020-04-04 23:33:36 +08:00
equation314
f1e5b94ec5 Dispatch mmap operation of files in FileHandle 2020-04-04 23:33:35 +08:00
equation314
357be4858e Add fbdev to DevFS 2020-04-04 23:33:03 +08:00
equation314
5c8fa87c27 Resolve deprecated funtions 2020-04-04 23:02:05 +08:00
equation314
9b488bed06 Resolve never used constants/fileds/methods 2020-04-04 21:57:37 +08:00
equation314
110c967693 Resolve unused variables & unnecessary mut 2020-04-04 19:01:24 +08:00
equation314
a6cd153fca Remove unused import 2020-04-04 17:58:20 +08:00
function2-llx
749f2e40ce debug 2020-03-31 22:05:52 +08:00
function2-llx
9168afa818 Merge branch 'master' of github.com:rcore-os/rCore 2020-03-30 17:14:19 +08:00
function2-llx
9f07940204 fix rcore-fs 2020-03-26 20:15:36 +08:00
function2-llx
dc2bf6e879 test 2020-03-25 20:49:16 +08:00
Runji Wang
a395d5ea10 move virtio drivers to external crate 2020-03-24 22:27:21 +08:00
Jiajie Chen
1f75b26945 Run cargo fmt 2020-03-24 20:27:49 +08:00
Jiajie Chen
3e742b7cbc Fix compilation for mipsel target 2020-03-24 20:21:59 +08:00
Jiajie Chen
d5c0e0d58c Run cargo fmt 2020-03-24 20:03:02 +08:00
Jiajie Chen
5fb1fb08c8 Merge remote-tracking branch 'rcore/master' into orig-Loremkang 2020-03-24 19:56:45 +08:00
Jiajie Chen
c0be01319b Don't create len=0 slices in iov 2020-03-24 18:44:25 +08:00
Jiajie Chen
36a1ed98c8 Bump rcore-fs revision for newer bitvec version 2020-03-24 18:21:33 +08:00
equation314
79baa289f4 ARM: Use RwLock to wrap raspi3 IRQ handler 2020-03-24 15:09:18 +08:00
Chen
cd81f4cc73
Add .align 4 to fix potential alignment problem, see issue #33 (#34) 2020-02-17 21:26:06 +08:00
Runji Wang
f66c8d29cd uppercase arguments in Makefile 2020-02-01 13:25:55 +08:00
Runji Wang
ab06b2cd55 remove dependency cargo-binutils 2020-02-01 12:47:43 +08:00
Runji Wang
3723dde083 update dependencies and CI badge 2020-01-29 20:09:04 +08:00
Runji Wang
fc5c82be28 ci: add GitHub Actions 2020-01-29 17:42:08 +08:00
Runji Wang
9c2459f2f0 update Rust nightly to 2020-01-17. remove dependence of cargo-xbuild. 2020-01-29 11:57:14 +08:00
Jiajie Chen
ab8356f28d Bump rboot and user commit, update Cargo.lock and fix addr2line.py 2020-01-29 10:59:39 +08:00
Hongbo Kang
ed5471ff3d support basic shm syscall & pass test. 2020-01-02 16:33:15 +08:00
康鸿博
eb99232432 add shmget, shmat, shmdt syscall and pass compilation. 2020-01-02 14:16:00 +08:00
康鸿博
7c7031e5d0 Use offset instead of virtAddrAddress in shared memory guard, provide basis for sys_shm. Merge branch 'master' into shared_memory 2019-12-31 21:23:06 +08:00
Runji Wang
af83913188 fix data racing on thread crate
The key point is that all methods on 'Processor' must be called with interrupt disabled. Otherwise if an interrupt happened inside a method, and then the thread is switched to other CPUs, it will touch other 'Processor'.
2019-11-30 18:11:26 +08:00
Runji Wang
20f8b45888 riscv: rename 'arch/riscv32' to 'arch/riscv' 2019-11-30 15:48:12 +08:00
Runji Wang
915ef6f95e riscv: use -bios option for QEMU 4.1
And remove prebuilt OpenSBI for virt, since it's included in QEMU.
Ref: https://qemu.weilnetz.de/doc/qemu-doc.html#Deprecated-features B.1.15
2019-11-30 15:48:12 +08:00
Runji Wang
7d1a37a7bf update Rust nightly to 2019-11-28
- disable hard float on mips to avoid LLVM error
- update smoltcp and fix drivers for API change
- update atomic.patch for libcore on riscv
- update rboot to fit new nightly
2019-11-30 15:48:09 +08:00
Jiajie Chen
52afd05946 Run code format 2019-11-18 13:59:12 +08:00
LoremKang
b5c08c2825 add support for mmap shared memory. passed compilation. 2019-11-08 02:36:55 +08:00
ssryps
0a1e422cac change code structure 2019-11-07 22:57:13 +08:00
ssryps
f6e5769a51 fix some bug 2019-11-06 10:02:14 +08:00
ssryps
ec1d588890 optimize code structure 2019-11-04 14:34:43 +08:00
ssryps
47f8a7d6eb modification for pull request 2019-11-03 23:35:15 +08:00
ssryps
a81bb579ef epoll module complete 2019-11-03 23:35:15 +08:00
ssryps
93a4962205 fix a bug of epoll module 2019-11-03 23:35:10 +08:00
ssryps
14f0965bd2 finish epoll implementation 2019-11-03 23:35:10 +08:00
ssryps
ba09ab92a8 modify select implementation 2019-11-03 23:34:26 +08:00
ssryps
0aa995d98c improve the implementation of poll 2019-11-03 23:34:26 +08:00
ssryps
d1c2a2c731 finish lab1 2019-11-03 23:34:26 +08:00
Runji Wang
7d849f8d30 fix fb_bitfield for all pixel formats 2019-11-02 01:28:02 +08:00
Runji Wang
242cbfa76c implement sys_pselect6, same as sys_select 2019-11-02 00:56:48 +08:00
Runji Wang
1ee6796346 init FramebufferInfo for VirtIOGPU 2019-11-01 17:14:43 +08:00
Runji Wang
91a4860b64 Rust style docs and cargo fmt 2019-11-01 15:12:56 +08:00
刘丰源
74b13a449a fix bugs 2019-10-30 18:08:45 +08:00
刘丰源
d28ce19ae4 update ioctl 2019-10-30 17:06:30 +08:00
Runji Wang
d4702faa0f fix SYS_IPC on mips 2019-10-26 11:29:27 +08:00
Runji Wang
b7a192a1ea move all process related semaphore operations to struct SemProc 2019-10-24 20:33:00 +08:00
Runji Wang
a99f4396eb clean and improve code 2019-10-24 19:44:42 +08:00
LoremKang
0b05a58e3b update submodule rboot & user. format the code. 2019-10-24 15:50:46 +08:00
LoremKang
4da6a1471a support SEM_UNDO. now support all 3 syscall without safety check. 2019-10-22 23:23:30 +08:00
LoremKang
702ea47ae8 fix the deadlock bug. semaphores now work well without SEM_UNDO. 2019-10-22 16:15:03 +08:00
LoremKang
e6b4c77c05 solve a potential unwrap error. deadlock when child lock first. 2019-10-22 14:58:48 +08:00
LoremKang
a180c3b4bb solve the deadlock problem & sometimes pass test. 2019-10-22 14:30:23 +08:00
LoremKang
198717c071 try to solve the deadlock problem caused by locking SemArray while waiting for Semaphores. 2019-10-22 13:48:17 +08:00
LoremKang
d4d57a5095 finish semctl.setval. pass compilation. 2019-10-21 15:33:40 +08:00
HongboKang
c241ec1f5b finish semget & semop. write a small test on semget. 2019-10-21 14:55:17 +08:00
HongboKang
64cdfa277f pass compilation with semget and part of semop. 2019-10-18 02:16:32 +08:00
HongboKang
374c34cd34 write code for semget and semop. not compiled yet. 2019-10-14 23:30:20 +08:00
Bran
3caa091ec5 solve forktest problem, release zombie process when parent process exits. (#21) 2019-10-14 01:36:48 +08:00
Runji Wang
b11e1b9be1 update user submodule and thread crate
fix some bugs in ucore programs found at OSTrain2019
2019-10-06 13:47:55 +08:00
equation314
44f1c8e8c3 aarch64: Add some comments for SMP booting 2019-10-05 15:45:32 +08:00
equation314
3069e17d78 Remove unnecessary lazy_static 2019-10-05 13:02:43 +08:00
equation314
9f6cb5966d Fix typo 2019-10-05 13:00:47 +08:00
equation314
6a7c72dbde aarch64: add mutex for KERNEL_MEMORY_SET, update bcm2837 2019-10-05 00:11:50 +08:00
equation314
90c2cd28f8 aarch64: use new cache & TLB maintenance operations 2019-10-04 23:25:42 +08:00
equation314
acd7ee945a Flush I/D cache after copying user code in page fault handler
* Now SMP works in real machine with no bugs!!!
2019-10-04 14:05:20 +08:00