Jiajie Chen
|
221304d78a
|
Use phys_to_virt and virt_to_phys to replace the use of KERNEL_OFFSET
|
2019-05-12 15:28:42 +08:00 |
|
Jiajie Chen
|
f6a54c398d
|
[WIP] rv32 can enter userland now
|
2019-05-11 23:10:19 +08:00 |
|
WangRunji
|
cd22273ef9
|
refactor to linear mapping for x86_64
|
2019-05-11 01:06:44 +08:00 |
|
WangRunji
|
fbd2aef916
|
fix page table racing by adding a global mutex
|
2019-05-10 00:11:09 +08:00 |
|
Harry Chen
|
887a207c8b
|
Run cargo fmt
Signed-off-by: Harry Chen <i@harrychen.xyz>
|
2019-05-09 10:12:19 +08:00 |
|
Jiajie Chen
|
b2777032c8
|
Merge remote-tracking branch 'origin/mipsel' into dev
|
2019-05-06 10:58:27 +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
|
ad2f02388c
|
Fix compilation on mipsel
|
2019-05-02 15:18:41 +08:00 |
|
Jiajie Chen
|
81fde731d0
|
Save and log file paths on sys_open and sys_close
|
2019-05-02 15:07:06 +08:00 |
|
Jiajie Chen
|
8651f09b31
|
Automatically enlarge heap when kernel heap is about to run out
|
2019-05-01 18:33:55 +08:00 |
|
Yuhao Zhou
|
b45d75c168
|
Align base address in init_heap().
|
2019-04-30 00:10:39 +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
|
734e01cc46
|
fix bug: sys_mmap didn't zero clean the anonymous memory
We can use delay mode or eager mode(in added comment codes)
WRJ's great work!
|
2019-04-25 16:00:29 +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 |
|
chyyuu
|
144090e42d
|
add syscall: sys_times partial implementation
|
2019-04-21 17:07:40 +08:00 |
|
WangRunji
|
e01d23e526
|
replace riscv-pk by OpenSBI !
|
2019-04-20 00:15:55 +08:00 |
|
Jiajie Chen
|
41dab25f9c
|
Merge remote-tracking branch 'origin/master' into dev
|
2019-04-09 20:30:30 +08:00 |
|
Yuhao Zhou
|
cbb4431231
|
Fix memory size.
|
2019-04-06 02:10:30 +08:00 |
|
WangRunji
|
b77a52dccb
|
move bit-allocator and rcore-thread crate to remote
|
2019-04-04 12:45:55 +08:00 |
|
Harry Chen
|
2d5b6948b5
|
Pass dtb to driver, remove rv code in io
Signed-off-by: Harry Chen <i@harrychen.xyz>
|
2019-04-02 01:59:50 +08:00 |
|
WangRunji
|
b836b11792
|
reformat code using cargo fmt
|
2019-03-27 18:45:24 +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 |
|
WangRunji
|
5ddd5ece8d
|
rename, simplify
|
2019-03-22 23:45:57 +08:00 |
|
Jiajie Chen
|
2ada090430
|
Use buddy_system_allocator for a drop inreplacement for linked_list_allocator
|
2019-03-18 09:00:51 +08:00 |
|
WangRunji
|
c6c76147d6
|
impl custom syscall: sys_get_paddr
|
2019-03-16 21:24:41 +08:00 |
|
Jiajie Chen
|
71808b49f5
|
Initial ixgbe driver capable of receiving frames
|
2019-03-14 09:30:43 +08:00 |
|
WangRunji
|
84c12ae6e1
|
rename functions. ignore readonly in mmap to avoid page fault.
|
2019-03-09 15:55:00 +08:00 |
|
WangRunji
|
8ab991ebe1
|
remove global ActivePageTable, because it's CPU local
|
2019-03-02 11:19:47 +08:00 |
|
WangRunji
|
2d5178d0b7
|
rename ucore to rcore
|
2019-01-03 21:26:50 +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 |
|
dzy
|
21adebb203
|
run until ms.token()
|
2018-12-26 14:56:13 +08:00 |
|
dzy
|
0dbffbc0fa
|
temporary
|
2018-12-26 00:12:10 +08:00 |
|
WangRunji
|
d4b6cc1082
|
compile rv64 pass on macOS
|
2018-12-20 01:13:42 +08:00 |
|
Ben Pig Chu
|
1ca2bde069
|
maually remove warning, pt1
|
2018-12-17 23:54:13 +08:00 |
|
WangRunji
|
9b0b0064d0
|
Merge remote-tracking branch 'equation314/arch-aarch64' into dev
# Conflicts:
# kernel/src/arch/aarch64/memory.rs
# kernel/src/arch/aarch64/paging.rs
# kernel/src/process/context.rs
|
2018-12-15 20:33:25 +08:00 |
|
equation314
|
81af2c82fd
|
aarch64: reduce some warnings, config system/generic timer in Makefile
|
2018-12-11 16:58:04 +08:00 |
|
WangRunji
|
ff806d4465
|
move common codes to InactivePageTable trait
|
2018-12-08 12:50:50 +08:00 |
|
WangRunji
|
102866bcf9
|
introduce MemoryHandler and refactor MemorySet. temporary disable swap.
This is a manual rebase of LCY's code
|
2018-12-08 00:29:55 +08:00 |
|
WangRunji
|
b5ced136f7
|
fix merge compile error
|
2018-12-02 00:58:15 +08:00 |
|
WangRunji
|
2afe8c731e
|
Merge remote-tracking branch 'equation314/arch-aarch64' into dev
# Conflicts:
# crate/memory/src/memory_set.rs
# kernel/Cargo.lock
# kernel/src/arch/aarch64/interrupt/handler.rs
# kernel/src/arch/aarch64/interrupt/mod.rs
# kernel/src/arch/aarch64/memory.rs
# kernel/src/arch/aarch64/mod.rs
# kernel/src/arch/aarch64/paging.rs
# kernel/src/consts.rs
# kernel/src/fs.rs
# kernel/src/lib.rs
# kernel/src/memory.rs
# kernel/src/process/context.rs
# tools/riscv-pk/.gitignore
# tools/riscv-pk/LICENSE
# tools/riscv-pk/Makefile.in
# tools/riscv-pk/README.md
# tools/riscv-pk/aclocal.m4
# tools/riscv-pk/bbl/bbl.ac
# tools/riscv-pk/bbl/bbl.c
# tools/riscv-pk/bbl/bbl.h
# tools/riscv-pk/bbl/bbl.lds
# tools/riscv-pk/bbl/bbl.mk.in
# tools/riscv-pk/bbl/logo.c
# tools/riscv-pk/bbl/payload.S
# tools/riscv-pk/bbl/raw_logo.S
# tools/riscv-pk/bbl/riscv_logo.txt
# tools/riscv-pk/config.h.in
# tools/riscv-pk/configure
# tools/riscv-pk/configure.ac
# tools/riscv-pk/dummy_payload/dummy_entry.S
# tools/riscv-pk/dummy_payload/dummy_payload.lds
# tools/riscv-pk/dummy_payload/dummy_payload.mk.in
# tools/riscv-pk/machine/atomic.h
# tools/riscv-pk/machine/bits.h
# tools/riscv-pk/machine/disabled_hart_mask.h
# tools/riscv-pk/machine/emulation.c
# tools/riscv-pk/machine/emulation.h
# tools/riscv-pk/machine/encoding.h
# tools/riscv-pk/machine/fdt.c
# tools/riscv-pk/machine/fdt.h
# tools/riscv-pk/machine/finisher.c
# tools/riscv-pk/machine/finisher.h
# tools/riscv-pk/machine/flush_icache.c
# tools/riscv-pk/machine/htif.c
# tools/riscv-pk/machine/htif.h
# tools/riscv-pk/machine/machine.ac
# tools/riscv-pk/machine/machine.mk.in
# tools/riscv-pk/machine/mcall.h
# tools/riscv-pk/machine/mentry.S
# tools/riscv-pk/machine/minit.c
# tools/riscv-pk/machine/misaligned_ldst.c
# tools/riscv-pk/machine/mtrap.c
# tools/riscv-pk/machine/mtrap.h
# tools/riscv-pk/machine/muldiv_emulation.c
# tools/riscv-pk/machine/uart.c
# tools/riscv-pk/machine/uart.h
# tools/riscv-pk/machine/uart16550.c
# tools/riscv-pk/machine/uart16550.h
# tools/riscv-pk/machine/unprivileged_memory.h
# tools/riscv-pk/machine/vm.h
# tools/riscv-pk/scripts/config.guess
# tools/riscv-pk/scripts/config.sub
# tools/riscv-pk/scripts/install.sh
# tools/riscv-pk/scripts/mk-install-dirs.sh
# tools/riscv-pk/scripts/vcs-version.sh
# tools/riscv-pk/util/snprintf.c
# tools/riscv-pk/util/string.c
# tools/riscv-pk/util/util.mk.in
|
2018-12-02 00:27:10 +08:00 |
|
WangRunji
|
18640b7537
|
impl NoMMU
|
2018-11-27 01:23:07 +08:00 |
|
WangRunji
|
52fe93188d
|
disable delay allocating frame, remove memory_set_record
|
2018-11-27 01:18:30 +08:00 |
|
equation314
|
9e8124abbb
|
aarch64/mmu: mmu enabled
|
2018-11-20 16:46:16 +08:00 |
|
WangRunji
|
2daf8c188d
|
Merge remote-tracking branch 'equation314/arch-aarch64' into dev
# Conflicts:
# .gitignore
# kernel/Cargo.lock
# kernel/Cargo.toml
# kernel/Makefile
# kernel/riscv32-blog_os.json
# kernel/src/consts.rs
# kernel/src/fs.rs
# kernel/src/lib.rs
# kernel/src/process/context.rs
# kernel/src/process/mod.rs
|
2018-11-20 00:15:19 +08:00 |
|
WangRunji
|
56fcad245a
|
update kernel to 2018 edition
|
2018-11-19 20:11:17 +08:00 |
|