PanQL
f8c88baeea
nonblock stdin for mgba keyboard support
6 years ago
WangRunji
3af0cf7e16
fix warnings
6 years ago
WangRunji
b2de8dc9e6
fix page table racing on multi-thread
6 years ago
Jiajie Chen
64b383b69c
Save path even in release mode
6 years ago
Jiajie Chen
ad2f02388c
Fix compilation on mipsel
6 years ago
WangRunji
bc1bad3060
optimize sys_exec: only read ELF header
6 years ago
WangRunji
c885ea6d77
impl pseudo INode '/proc/self/exe'
6 years ago
WangRunji
60cdea81d9
fix check user ptr across VMAs
6 years ago
WangRunji
a25c8132fe
delay mapping file
6 years ago
WangRunji
88e1055eed
refactor fork MemorySet, introduce clone_map to MemoryHandler
6 years ago
Jiajie Chen
e5894b652c
Format code
6 years ago
WangRunji
5bc6395b23
fix sys_exec
6 years ago
WangRunji
ab62d542fd
allocate pid independently from tid. fix sys_fork return value.
6 years ago
chyyuu
0d790f2dc5
add LOG info in sys_exec and new_user, add env var in run_user_shell
6 years ago
chyyuu
5080ee2579
add log info for envs in new_user function
6 years ago
WangRunji
45c2ec0b17
works on K210!
6 years ago
WangRunji
1e5f901926
shrink kstack size, avoid alloc kstack for init thread
6 years ago
WangRunji
8090e154c1
simplify sys_sendfile. check elf arch
6 years ago
WangRunji
520bb2d957
change args from Iter to Vec<String>
6 years ago
Jiajie Chen
0ff24fe589
Implement env support in sys_exec
6 years ago
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?
6 years ago
WangRunji
3556c758db
impl more file system *at syscalls
6 years ago
WangRunji
fe0045c0c9
remove legacy 'is32' code
6 years ago
Jiajie Chen
1f99f1270a
Implement recvmsg syscall for netlink
6 years ago
WangRunji
1ffd44cde0
HUGE REFACTOR net module
6 years ago
WangRunji
b836b11792
reformat code using `cargo fmt`
6 years ago
Jiajie Chen
fcfe677bcc
Fix makefile and loader NULL character stripping
6 years ago
WangRunji
6923efd250
fix last commit. improve process code.
6 years ago
Jiajie Chen
e3fb47a03e
Remove m-mode and k210 support.
6 years ago
Jiajie Chen
0edfc07939
Allow page fault handler to bypass process lock and fix thread pool wakeup for exited process
6 years ago
Jiajie Chen
547baa9ecd
Implement symlink following
6 years ago
Jiajie Chen
1444fb4c42
Respect INTERP loader command in ELF and load the interpreter instead
6 years ago
WangRunji
5ddd5ece8d
rename, simplify
6 years ago
Jiajie Chen
960ef2e1f8
Implement PCI driver detach and merge NetDriver trait into Driver
6 years ago
Jiajie Chen
5d601c3ea4
Move socket to global, move and merge functions to net/structs.rs
6 years ago
WangRunji
17e644e54e
unimportant changes
6 years ago
equation314
18626a2a19
Merge branch 'bootloader' into biscuit
6 years ago
Jiajie Chen
755f820c41
Enable interrupt throttling, use spin before wait in sys_read and fix sys_bind, sys_poll for udp
6 years ago
Jiajie Chen
8860f1e4a3
Implement mapping from riscv to x86_64 syscall numbering
6 years ago
Jiajie Chen
a4c1d1231b
Use rust user shell instead of kernel shell and fix sys_exec
6 years ago
Jiajie Chen
af63d937d6
Add udp remote endpoint state
6 years ago
Jiajie Chen
17c08ce26c
Fix sys_exit/sys_exit_group deadlock
6 years ago
WangRunji
98b3b12c96
continue refactoring process
6 years ago
Jiajie Chen
8cb11b7aa8
Implement tid/pid/ppid separation
6 years ago
Jiajie Chen
cb0a51d28d
Use union to implement sockaddr, and eliminate many warnings
6 years ago
Jiajie Chen
6697861860
Add is_listening to TcpSocketState, support sys_poll for listen
6 years ago
Jiajie Chen
d0d05acfd0
Implement Clone for SocketWrapper
6 years ago
equation314
279f983786
aarch64: put the kernel in the top VA range
6 years ago
WangRunji
84c12ae6e1
rename functions. ignore readonly in mmap to avoid page fault.
6 years ago
WangRunji
491353acfd
impl sys_futex. fix clear_child_tid for thread exit
6 years ago