WangRunji
3af0cf7e16
fix warnings
2019-05-04 15:27:17 +08:00
WangRunji
b2de8dc9e6
fix page table racing on multi-thread
2019-05-04 14:36:12 +08:00
WangRunji
da58486be5
refactor syscall: move all context and functions to struct Syscall
2019-05-04 13:16:42 +08:00
Jiajie Chen
64b383b69c
Save path even in release mode
2019-05-02 15:47:10 +08:00
Jiajie Chen
ad2f02388c
Fix compilation on mipsel
2019-05-02 15:18:41 +08:00
WangRunji
bc1bad3060
optimize sys_exec: only read ELF header
2019-04-30 19:21:14 +08:00
WangRunji
c885ea6d77
impl pseudo INode '/proc/self/exe'
2019-04-30 17:37:18 +08:00
WangRunji
60cdea81d9
fix check user ptr across VMAs
2019-04-30 16:30:00 +08:00
WangRunji
a25c8132fe
delay mapping file
2019-04-30 15:02:52 +08:00
WangRunji
88e1055eed
refactor fork MemorySet, introduce clone_map to MemoryHandler
2019-04-30 11:34:31 +08:00
Jiajie Chen
e5894b652c
Format code
2019-04-29 10:20:51 +08:00
WangRunji
5bc6395b23
fix sys_exec
2019-04-29 01:30:57 +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
WangRunji
ab62d542fd
allocate pid independently from tid. fix sys_fork return value.
2019-04-26 11:22:27 +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
chyyuu
5080ee2579
add log info for envs in new_user function
2019-04-25 10:56:13 +08:00
WangRunji
45c2ec0b17
works on K210!
2019-04-21 23:48:46 +08:00
WangRunji
1e5f901926
shrink kstack size, avoid alloc kstack for init thread
2019-04-21 23:48:46 +08:00
WangRunji
8090e154c1
simplify sys_sendfile. check elf arch
2019-04-19 12:43:12 +08:00
Jiajie Chen
8494bf9b0c
Fix sys_sendfile args
2019-04-19 12:34:27 +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
chyyuu
594cc3e16f
fix bugs about cpu num config (x86-64)
...
TODO:
Unfixed bugs: rcore can not identify the hyperthread-mode cpus(i9-9900k) and dead.
2019-04-16 18:13:55 +08:00
WangRunji
3556c758db
impl more file system *at syscalls
2019-04-14 15:47:42 +08:00
WangRunji
fe0045c0c9
remove legacy 'is32' code
2019-04-12 19:23:45 +08:00
Jiajie Chen
1f99f1270a
Implement recvmsg syscall for netlink
2019-04-06 14:21:35 +08:00
WangRunji
1ffd44cde0
HUGE REFACTOR net module
2019-03-29 13:23:49 +08:00
WangRunji
b836b11792
reformat code using cargo fmt
2019-03-27 18:45:24 +08:00
Jiajie Chen
fcfe677bcc
Fix makefile and loader NULL character stripping
2019-03-26 16:50:21 +08:00
WangRunji
6923efd250
fix last commit. improve process code.
2019-03-26 11:23:58 +08:00
Jiajie Chen
e3fb47a03e
Remove m-mode and k210 support.
2019-03-26 08:28:10 +08:00
Jiajie Chen
0edfc07939
Allow page fault handler to bypass process lock and fix thread pool wakeup for exited process
2019-03-23 23:50:30 +08:00
Jiajie Chen
547baa9ecd
Implement symlink following
2019-03-23 15:47:44 +08:00
Jiajie Chen
1444fb4c42
Respect INTERP loader command in ELF and load the interpreter instead
2019-03-23 01:32:08 +08:00
WangRunji
5ddd5ece8d
rename, simplify
2019-03-22 23:45:57 +08:00
Jiajie Chen
960ef2e1f8
Implement PCI driver detach and merge NetDriver trait into Driver
2019-03-20 11:36:41 +08:00
Jiajie Chen
5d601c3ea4
Move socket to global, move and merge functions to net/structs.rs
2019-03-19 18:33:13 +08:00
WangRunji
d0202c945e
test and fix something on HiFiveU
2019-03-18 18:24:58 +08:00
WangRunji
17e644e54e
unimportant changes
2019-03-18 00:18:03 +08:00
equation314
18626a2a19
Merge branch 'bootloader' into biscuit
2019-03-17 15:53:37 +08:00
Jiajie Chen
755f820c41
Enable interrupt throttling, use spin before wait in sys_read and fix sys_bind, sys_poll for udp
2019-03-17 00:33:05 +08:00
Jiajie Chen
8860f1e4a3
Implement mapping from riscv to x86_64 syscall numbering
2019-03-15 23:55:01 +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
af63d937d6
Add udp remote endpoint state
2019-03-12 13:38:20 +08:00
Jiajie Chen
17c08ce26c
Fix sys_exit/sys_exit_group deadlock
2019-03-11 17:19:00 +08:00
WangRunji
98b3b12c96
continue refactoring process
2019-03-11 01:06:44 +08:00
Jiajie Chen
8cb11b7aa8
Implement tid/pid/ppid separation
2019-03-10 15:23:15 +08:00
Jiajie Chen
cb0a51d28d
Use union to implement sockaddr, and eliminate many warnings
2019-03-10 08:39:22 +08:00
Jiajie Chen
6697861860
Add is_listening to TcpSocketState, support sys_poll for listen
2019-03-10 00:58:10 +08:00