80 Commits (185fb6e8914e33843cbb7e18919dc8ccb912e072)

Author SHA1 Message Date
Harry Cheng 185fb6e891 Clean all warnings
6 years ago
Harry Cheng 605680401f Compiles and works: 2019-04-14
6 years ago
Jiajie Chen 53bb55b971 Merge remote-tracking branch 'origin/dev' into dev
6 years ago
PanQL 9740983b2d
Merge branch 'mgba' into dev
6 years ago
Jiajie Chen c67f00d7ca Use MaybeUninit for uninitialized
6 years ago
PanQL f8c88baeea nonblock stdin for mgba keyboard support
6 years ago
Jiajie Chen f6a54c398d [WIP] rv32 can enter userland now
6 years ago
WangRunji cd22273ef9 refactor to linear mapping for x86_64
6 years ago
WangRunji ba8d08d733 fix Process dropping by making `proc.parent` a weak reference
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.
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