Jiajie Chen
6d14fbf3db
Fix typo in ioctl
2019-05-03 14:32:06 +08:00
Jackey-Huo
c63831870d
remove the fxxk words....
2019-05-03 14:06:00 +08:00
Jackey-Huo
6ec65b3c1d
Merge branch 'dev' of github.com:rcore-os/rCore into dev
2019-05-03 11:40:06 +08:00
Jackey-Huo
e91718648e
add htif read function for rocket-chip
2019-05-03 11:33:44 +08:00
Jackey-Huo
e594a4af32
stage debug code for output
2019-05-02 21:32:19 +08:00
Jiajie Chen
ad2f02388c
Fix compilation on mipsel
2019-05-02 15:18:41 +08:00
Jiajie Chen
bd158e4e74
Do not panic when exec file is invalid
2019-04-30 17:10:35 +08:00
WangRunji
a25c8132fe
delay mapping file
2019-04-30 15:02:52 +08:00
Jiajie Chen
e5894b652c
Format code
2019-04-29 10:20:51 +08:00
chyyuu
28dbfd66b9
add more comments and CHANGE Fn name: run_user_shell TO add_user_shell
2019-04-27 15:57:34 +08:00
chyyuu
88b54fdacd
fix unknow bug: change busybox from docker, maintain the PATH env vars
2019-04-26 14:13:07 +08:00
chyyuu
091902ae0d
set 'busybox ash' dynamic-linked app from alpine linux as the default init shell in x86_64 environment
2019-04-26 08:38:53 +08:00
chyyuu
0d790f2dc5
add LOG info in sys_exec and new_user, add env var in run_user_shell
2019-04-26 02:34:42 +08:00
WangRunji
f74a3b8e8b
by default: use busybox sh, disable log, build in release mode
2019-04-19 00:37:30 +08:00
WangRunji
520bb2d957
change args from Iter to Vec<String>
2019-04-18 20:24:36 +08:00
Jiajie Chen
0ff24fe589
Implement env support in sys_exec
2019-04-18 17:43:35 +08:00
chyyuu
56e472c8f8
fix bug: sys_exec should name as exec_path, then loader can find the exec file.
...
items of VEC args from argv is the args lists, and args[0] isn't the complete exec_path.
the new_user function should add exec_path as a new args.
BUGS:
ls app doesn't show any thing. Why?
2019-04-17 14:59:06 +08:00
WangRunji
b836b11792
reformat code using cargo fmt
2019-03-27 18:45:24 +08:00
Jiajie Chen
5c33191765
Implement automatic tests using kernel cmdline
2019-03-26 16:05:21 +08:00
Jiajie Chen
556d263d8e
Implement sys_openat and sys_renameat
2019-03-24 00:36:13 +08:00
WangRunji
17e644e54e
unimportant changes
2019-03-18 00:18:03 +08:00
Jiajie Chen
a4c1d1231b
Use rust user shell instead of kernel shell and fix sys_exec
2019-03-14 20:51:30 +08:00
Jiajie Chen
71808b49f5
Initial ixgbe driver capable of receiving frames
2019-03-14 09:30:43 +08:00
Jiajie Chen
8cb11b7aa8
Implement tid/pid/ppid separation
2019-03-10 15:23:15 +08:00
WangRunji
d51c52902d
minimal impl sys_clone
2019-03-08 22:37:47 +08:00
Jiajie Chen
dcb1b51a5f
Improve time-related syscall precision and add some comment for MSI
2019-03-04 23:52:19 +08:00
Jiajie Chen
1a1e39c960
Move socket set to iface, redesign NetDriver trait and implement blocking net syscalls
2019-03-04 15:34:02 +08:00
Jiajie Chen
6ea04c91b2
Fix line editing bug
2019-02-28 15:53:41 +08:00
Jiajie Chen
29865d7aaa
Add line editing function to user shell and refactor net syscall
2019-02-28 15:50:58 +08:00
Jiajie Chen
af9a978a9d
Fix a bug in e1000 driver, run net thread and update Makefile
2019-02-26 20:46:51 +08:00
WangRunji
0ec5ad8056
split Process and Thread
2019-01-25 23:28:48 +08:00
WangRunji
5bffce787b
rename 'process' crate to 'thread'
2019-01-24 19:03:45 +08:00
WangRunji
33eaded142
Merge remote-tracking branch 'bpc/user-lib-bin' into merge-1228
...
# Conflicts:
# kernel/src/arch/riscv32/compiler_rt.c
# kernel/src/arch/riscv32/consts.rs
# kernel/src/arch/riscv32/context.rs
# kernel/src/arch/riscv32/io.rs
# kernel/src/arch/riscv32/memory.rs
# kernel/src/arch/riscv32/paging.rs
# user/ucore-ulib/src/syscall.rs
2018-12-28 17:41:21 +08:00
WangRunji
a852c96136
Merge branch 'master' into rust-rv64
...
# Conflicts:
# crate/memory/src/memory_set.rs
# kernel/src/arch/riscv32/compiler_rt.rs
# kernel/src/arch/riscv32/memory.rs
# kernel/src/arch/riscv32/paging.rs
# kernel/src/memory.rs
# kernel/src/process/mod.rs
2018-12-28 16:55:09 +08:00
WangRunji
0d957ff1a6
fix getchar on K210
2018-12-26 23:53:14 +08:00
Ben Pig Chu
1ca2bde069
maually remove warning, pt1
2018-12-17 23:54:13 +08:00
WangRunji
d20d22b85b
add hint for user shell. detect cores through 'SMP' env.
2018-12-15 20:17:02 +08:00
WangRunji
6952f008e0
rename ContextImpl to Process
2018-12-14 02:37:51 +08:00
equation314
f882a085d6
user: link created SFS image in kernel
2018-11-29 17:33:31 +08:00
WangRunji
56fcad245a
update kernel to 2018 edition
2018-11-19 20:11:17 +08:00
WangRunji
df485d506e
simplify ProcessManager
...
- given that a proc can only be waited by its parent, wait_queue is no longer needed.
2018-11-17 12:58:40 +08:00
WangRunji
5ce7d0a9c0
use user shell by default. fix kernel shell removing user thread.
2018-11-16 01:22:59 +08:00
WangRunji
21b0bdcbca
separate kernel shell to a mod, remove console mod
2018-11-16 00:49:42 +08:00