History log of /DragonOS/kernel/src/driver/base/ (Results 26 – 49 of 49)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
c566df4501-Jan-2024 LoGin <longjin@DragonOS.org>

添加帧缓冲区抽象并实现vesafb的驱动 (#483)

- 添加bootparams对象
- 修正由于bus的driver、device强弱引用关系 不正确从而导致对象被释放的bug
- 添加vesafb的驱动
- 实现framebuffer抽象层
- 为通用帧缓冲区抽象实现sysfs的属性
- 修改设备号DeviceNumber的定义
- 仿照linux,添加initcall,并

添加帧缓冲区抽象并实现vesafb的驱动 (#483)

- 添加bootparams对象
- 修正由于bus的driver、device强弱引用关系 不正确从而导致对象被释放的bug
- 添加vesafb的驱动
- 实现framebuffer抽象层
- 为通用帧缓冲区抽象实现sysfs的属性
- 修改设备号DeviceNumber的定义
- 仿照linux,添加initcall,并在第一个内核线程中,调用他们。

show more ...


/DragonOS/kernel/src/arch/x86_64/driver/apic/apic.c
/DragonOS/kernel/src/arch/x86_64/driver/apic/apic_timer.rs
/DragonOS/kernel/src/arch/x86_64/driver/hpet.rs
/DragonOS/kernel/src/arch/x86_64/driver/mod.rs
/DragonOS/kernel/src/arch/x86_64/driver/tsc.rs
/DragonOS/kernel/src/arch/x86_64/driver/video/mod.rs
/DragonOS/kernel/src/arch/x86_64/ipc/signal.rs
/DragonOS/kernel/src/arch/x86_64/process/mod.rs
/DragonOS/kernel/src/arch/x86_64/syscall/mod.rs
block/block_device.rs
char/mod.rs
class.rs
cpu.rs
device/bus.rs
device/dd.rs
device/device_number.rs
device/driver.rs
device/mod.rs
init.rs
kobject.rs
map/mod.rs
platform/mod.rs
platform/platform_device.rs
platform/platform_driver.rs
subsys.rs
/DragonOS/kernel/src/driver/disk/ahci/ahcidisk.rs
/DragonOS/kernel/src/driver/net/e1000e/e1000e_driver.rs
/DragonOS/kernel/src/driver/net/virtio_net.rs
/DragonOS/kernel/src/driver/tty/serial/mod.rs
/DragonOS/kernel/src/driver/tty/serial/serial8250/mod.rs
/DragonOS/kernel/src/driver/tty/tty_device.rs
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon.rs
/DragonOS/kernel/src/driver/video/fbdev/base/fbmem.rs
/DragonOS/kernel/src/driver/video/fbdev/base/fbsysfs.rs
/DragonOS/kernel/src/driver/video/fbdev/base/mod.rs
/DragonOS/kernel/src/driver/video/fbdev/base/modedb.rs
/DragonOS/kernel/src/driver/video/fbdev/mod.rs
/DragonOS/kernel/src/driver/video/fbdev/vesafb.rs
/DragonOS/kernel/src/driver/video/mod.rs
/DragonOS/kernel/src/exception/softirq.rs
/DragonOS/kernel/src/exception/trap.c
/DragonOS/kernel/src/filesystem/fat/fs.rs
/DragonOS/kernel/src/filesystem/procfs/mod.rs
/DragonOS/kernel/src/filesystem/ramfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/filesystem/vfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/mount.rs
/DragonOS/kernel/src/filesystem/vfs/syscall.rs
/DragonOS/kernel/src/init/initcall.rs
/DragonOS/kernel/src/init/initial_kthread.rs
/DragonOS/kernel/src/init/mod.rs
/DragonOS/kernel/src/ipc/pipe.rs
/DragonOS/kernel/src/ipc/signal.rs
/DragonOS/kernel/src/ipc/signal_types.rs
/DragonOS/kernel/src/ipc/syscall.rs
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/rwlock.rs
/DragonOS/kernel/src/libs/wait_queue.rs
/DragonOS/kernel/src/net/event_poll/mod.rs
/DragonOS/kernel/src/net/mod.rs
/DragonOS/kernel/src/net/net_core.rs
/DragonOS/kernel/src/net/socket.rs
/DragonOS/kernel/src/process/exit.rs
/DragonOS/kernel/src/process/fork.rs
/DragonOS/kernel/src/process/kthread.rs
/DragonOS/kernel/src/process/mod.rs
/DragonOS/kernel/src/sched/cfs.rs
/DragonOS/kernel/src/sched/core.rs
/DragonOS/kernel/src/sched/rt.rs
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/kernel/src/time/timekeeping.rs
/DragonOS/kernel/src/time/timer.rs
/DragonOS/tools/bootstrap.sh
/DragonOS/tools/install_musl_gcc.sh
/DragonOS/user/apps/test_sqlite3/Makefile
/DragonOS/user/dadk/config/nova_shell-0.1.0.dadk
91e9d4ab25-Dec-2023 LoGin <longjin@DragonOS.org>

实现unified-init库,支持收集初始化函数到一个数组,并统一初始化 (#474)

* 添加“统一初始化”的过程宏,并把SystemError独立成crate

* 使用unified-init来初始化fbmem

* 更新workflow,增加内核自动化静态测试


/DragonOS/.github/workflows/makefile.yml
/DragonOS/Makefile
/DragonOS/docs/kernel/libs/index.rst
/DragonOS/docs/kernel/libs/unified-init.md
/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/Makefile
/DragonOS/kernel/crates/system_error/Cargo.toml
/DragonOS/kernel/crates/system_error/src/lib.rs
/DragonOS/kernel/crates/unified-init/Cargo.toml
/DragonOS/kernel/crates/unified-init/macros/Cargo.toml
/DragonOS/kernel/crates/unified-init/macros/src/lib.rs
/DragonOS/kernel/crates/unified-init/src/lib.rs
/DragonOS/kernel/crates/unified-init/src/main.rs
/DragonOS/kernel/src/arch/riscv64/kvm/mod.rs
/DragonOS/kernel/src/arch/riscv64/mm/mod.rs
/DragonOS/kernel/src/arch/riscv64/process/kthread.rs
/DragonOS/kernel/src/arch/riscv64/process/mod.rs
/DragonOS/kernel/src/arch/riscv64/process/syscall.rs
/DragonOS/kernel/src/arch/riscv64/syscall/mod.rs
/DragonOS/kernel/src/arch/x86_64/acpi.rs
/DragonOS/kernel/src/arch/x86_64/driver/apic/apic_timer.rs
/DragonOS/kernel/src/arch/x86_64/driver/apic/ioapic.rs
/DragonOS/kernel/src/arch/x86_64/driver/apic/mod.rs
/DragonOS/kernel/src/arch/x86_64/driver/hpet.rs
/DragonOS/kernel/src/arch/x86_64/driver/tsc.rs
/DragonOS/kernel/src/arch/x86_64/interrupt/ipi.rs
/DragonOS/kernel/src/arch/x86_64/ipc/signal.rs
/DragonOS/kernel/src/arch/x86_64/kvm/mod.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/ept.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/mmu.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/seg.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/vcpu.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/vmexit.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/vmx_asm_wrapper.rs
/DragonOS/kernel/src/arch/x86_64/mm/mod.rs
/DragonOS/kernel/src/arch/x86_64/process/kthread.rs
/DragonOS/kernel/src/arch/x86_64/process/mod.rs
/DragonOS/kernel/src/arch/x86_64/process/syscall.rs
/DragonOS/kernel/src/arch/x86_64/setup.rs
/DragonOS/kernel/src/arch/x86_64/smp/mod.rs
/DragonOS/kernel/src/arch/x86_64/syscall/mod.rs
/DragonOS/kernel/src/driver/acpi/bus.rs
/DragonOS/kernel/src/driver/acpi/mod.rs
/DragonOS/kernel/src/driver/acpi/sysfs.rs
block/block_device.rs
char/mod.rs
class.rs
cpu.rs
device/bus.rs
device/dd.rs
device/driver.rs
device/init.rs
device/mod.rs
firmware.rs
hypervisor.rs
init.rs
kobject.rs
kset.rs
platform/mod.rs
platform/platform_device.rs
platform/platform_driver.rs
platform/subsys.rs
subsys.rs
/DragonOS/kernel/src/driver/disk/ahci/ahci_inode.rs
/DragonOS/kernel/src/driver/disk/ahci/ahcidisk.rs
/DragonOS/kernel/src/driver/disk/ahci/mod.rs
/DragonOS/kernel/src/driver/keyboard/ps2_keyboard.rs
/DragonOS/kernel/src/driver/net/e1000e/e1000e_driver.rs
/DragonOS/kernel/src/driver/net/mod.rs
/DragonOS/kernel/src/driver/net/virtio_net.rs
/DragonOS/kernel/src/driver/timers/rtc/rtc.rs
/DragonOS/kernel/src/driver/tty/init.rs
/DragonOS/kernel/src/driver/tty/serial/mod.rs
/DragonOS/kernel/src/driver/tty/serial/serial8250/mod.rs
/DragonOS/kernel/src/driver/tty/serial/serial8250/serial8250_pio.rs
/DragonOS/kernel/src/driver/tty/tty_device.rs
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon.rs
/DragonOS/kernel/src/driver/video/fbdev/base/fbmem.rs
/DragonOS/kernel/src/driver/video/fbdev/base/mod.rs
/DragonOS/kernel/src/driver/video/mod.rs
/DragonOS/kernel/src/exception/softirq.rs
/DragonOS/kernel/src/filesystem/devfs/mod.rs
/DragonOS/kernel/src/filesystem/devfs/null_dev.rs
/DragonOS/kernel/src/filesystem/devfs/zero_dev.rs
/DragonOS/kernel/src/filesystem/fat/bpb.rs
/DragonOS/kernel/src/filesystem/fat/entry.rs
/DragonOS/kernel/src/filesystem/fat/fs.rs
/DragonOS/kernel/src/filesystem/kernfs/callback.rs
/DragonOS/kernel/src/filesystem/kernfs/mod.rs
/DragonOS/kernel/src/filesystem/procfs/mod.rs
/DragonOS/kernel/src/filesystem/ramfs/mod.rs
/DragonOS/kernel/src/filesystem/sysfs/dir.rs
/DragonOS/kernel/src/filesystem/sysfs/file.rs
/DragonOS/kernel/src/filesystem/sysfs/group.rs
/DragonOS/kernel/src/filesystem/sysfs/mod.rs
/DragonOS/kernel/src/filesystem/sysfs/symlink.rs
/DragonOS/kernel/src/filesystem/vfs/core.rs
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/filesystem/vfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/mount.rs
/DragonOS/kernel/src/filesystem/vfs/open.rs
/DragonOS/kernel/src/filesystem/vfs/syscall.rs
/DragonOS/kernel/src/filesystem/vfs/utils.rs
/DragonOS/kernel/src/ipc/pipe.rs
/DragonOS/kernel/src/ipc/signal.rs
/DragonOS/kernel/src/ipc/signal_types.rs
/DragonOS/kernel/src/ipc/syscall.rs
/DragonOS/kernel/src/libs/align.rs
/DragonOS/kernel/src/libs/elf.rs
/DragonOS/kernel/src/libs/futex/futex.rs
/DragonOS/kernel/src/libs/futex/syscall.rs
/DragonOS/kernel/src/libs/intertrait/src/lib.rs
/DragonOS/kernel/src/libs/lib_ui/screen_manager.rs
/DragonOS/kernel/src/libs/lib_ui/textui.rs
/DragonOS/kernel/src/libs/lib_ui/textui_no_alloc.rs
/DragonOS/kernel/src/libs/mutex.rs
/DragonOS/kernel/src/libs/notifier.rs
/DragonOS/kernel/src/libs/rbtree.rs
/DragonOS/kernel/src/libs/rwlock.rs
/DragonOS/kernel/src/libs/semaphore.rs
/DragonOS/kernel/src/libs/spinlock.rs
/DragonOS/kernel/src/libs/vec_cursor.rs
/DragonOS/kernel/src/libs/wait_queue.rs
/DragonOS/kernel/src/mm/c_adapter.rs
/DragonOS/kernel/src/mm/kernel_mapper.rs
/DragonOS/kernel/src/mm/mmio_buddy.rs
/DragonOS/kernel/src/mm/mod.rs
/DragonOS/kernel/src/mm/syscall.rs
/DragonOS/kernel/src/mm/ucontext.rs
/DragonOS/kernel/src/net/event_poll/mod.rs
/DragonOS/kernel/src/net/event_poll/syscall.rs
/DragonOS/kernel/src/net/mod.rs
/DragonOS/kernel/src/net/net_core.rs
/DragonOS/kernel/src/net/socket.rs
/DragonOS/kernel/src/net/syscall.rs
/DragonOS/kernel/src/process/exec.rs
/DragonOS/kernel/src/process/exit.rs
/DragonOS/kernel/src/process/fork.rs
/DragonOS/kernel/src/process/idle.rs
/DragonOS/kernel/src/process/kthread.rs
/DragonOS/kernel/src/process/mod.rs
/DragonOS/kernel/src/process/process.rs
/DragonOS/kernel/src/process/resource.rs
/DragonOS/kernel/src/process/syscall.rs
/DragonOS/kernel/src/sched/completion.rs
/DragonOS/kernel/src/sched/syscall.rs
/DragonOS/kernel/src/smp/mod.rs
/DragonOS/kernel/src/syscall/misc.rs
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/kernel/src/time/clocksource.rs
/DragonOS/kernel/src/time/jiffies.rs
/DragonOS/kernel/src/time/sleep.rs
/DragonOS/kernel/src/time/syscall.rs
/DragonOS/kernel/src/time/timer.rs
/DragonOS/kernel/src/virt/kvm/host_mem.rs
/DragonOS/kernel/src/virt/kvm/kvm_dev.rs
/DragonOS/kernel/src/virt/kvm/vcpu.rs
/DragonOS/kernel/src/virt/kvm/vcpu_dev.rs
/DragonOS/kernel/src/virt/kvm/vm.rs
/DragonOS/kernel/src/virt/kvm/vm_dev.rs
/DragonOS/tools/bootstrap.sh
08a2ee4020-Dec-2023 LoGin <longjin@DragonOS.org>

添加FrameBuffer的接口抽象&完善设备驱动模型的class相关代码 (#472)

* 添加FrameBuffer的接口抽象(参考Linux 6.1.9)

* feature: 完善设备驱动模型的class的抽象,并创建graphics class

* feature: 完善设备驱动模型中Device对class的处理,使得能够在class下注册设备

目前注册了fbco

添加FrameBuffer的接口抽象&完善设备驱动模型的class相关代码 (#472)

* 添加FrameBuffer的接口抽象(参考Linux 6.1.9)

* feature: 完善设备驱动模型的class的抽象,并创建graphics class

* feature: 完善设备驱动模型中Device对class的处理,使得能够在class下注册设备

目前注册了fbcon设备,但是由于虚拟终端还没写,因此fbcon的到终端以及帧缓冲区的映射还没加上去.

show more ...

1a72a75106-Dec-2023 LoGin <longjin@DragonOS.org>

在riscv输出hello world (#466)

增加了以下内容:
- SBI驱动
- 把内核的rust工具链升级到2023-08-15版本
- 输出riscv的helloworld
- 设置内核是PIC的


/DragonOS/.github/workflows/cache-toolchain.yml
/DragonOS/.gitmodules
/DragonOS/.vscode/settings.json
/DragonOS/Makefile
/DragonOS/README.md
/DragonOS/README_EN.md
/DragonOS/build-scripts/kernel_build/src/bindgen/arch/mod.rs
/DragonOS/build-scripts/kernel_build/src/bindgen/arch/riscv64.rs
/DragonOS/build-scripts/kernel_build/src/cfiles/arch/mod.rs
/DragonOS/build-scripts/kernel_build/src/cfiles/arch/riscv64.rs
/DragonOS/build-scripts/kernel_build/src/cfiles/arch/x86_64.rs
/DragonOS/build-scripts/kernel_build/src/cfiles/mod.rs
/DragonOS/build-scripts/kernel_build/src/constant/mod.rs
/DragonOS/docs/index.rst
/DragonOS/docs/introduction/build_system.md
/DragonOS/docs/kernel/configuration/arch.md
/DragonOS/docs/kernel/configuration/index.rst
/DragonOS/env.mk
/DragonOS/kernel/.cargo/config.toml
/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/Makefile
/DragonOS/kernel/rust-toolchain.toml
/DragonOS/kernel/src/Makefile
/DragonOS/kernel/src/arch/arch.h
/DragonOS/kernel/src/arch/mod.rs
/DragonOS/kernel/src/arch/riscv64/asm/bitops.rs
/DragonOS/kernel/src/arch/riscv64/asm/head.S
/DragonOS/kernel/src/arch/riscv64/asm/irqflags.h
/DragonOS/kernel/src/arch/riscv64/asm/mod.rs
/DragonOS/kernel/src/arch/riscv64/asm/spinlock.c
/DragonOS/kernel/src/arch/riscv64/cpu.rs
/DragonOS/kernel/src/arch/riscv64/driver/mod.rs
/DragonOS/kernel/src/arch/riscv64/driver/sbi/ecall.rs
/DragonOS/kernel/src/arch/riscv64/driver/sbi/legacy.rs
/DragonOS/kernel/src/arch/riscv64/driver/sbi/mod.rs
/DragonOS/kernel/src/arch/riscv64/include/asm/asm.h
/DragonOS/kernel/src/arch/riscv64/include/asm/irqflags.h
/DragonOS/kernel/src/arch/riscv64/init/mod.rs
/DragonOS/kernel/src/arch/riscv64/interrupt/ipi.rs
/DragonOS/kernel/src/arch/riscv64/interrupt/mod.rs
/DragonOS/kernel/src/arch/riscv64/ipc/mod.rs
/DragonOS/kernel/src/arch/riscv64/ipc/signal.rs
/DragonOS/kernel/src/arch/riscv64/kvm/mod.rs
/DragonOS/kernel/src/arch/riscv64/link.ld
/DragonOS/kernel/src/arch/riscv64/mm/bump.rs
/DragonOS/kernel/src/arch/riscv64/mm/mod.rs
/DragonOS/kernel/src/arch/riscv64/mod.rs
/DragonOS/kernel/src/arch/riscv64/msi.rs
/DragonOS/kernel/src/arch/riscv64/pci/mod.rs
/DragonOS/kernel/src/arch/riscv64/pio.rs
/DragonOS/kernel/src/arch/riscv64/process/kthread.rs
/DragonOS/kernel/src/arch/riscv64/process/mod.rs
/DragonOS/kernel/src/arch/riscv64/process/syscall.rs
/DragonOS/kernel/src/arch/riscv64/rand.rs
/DragonOS/kernel/src/arch/riscv64/riscv64imac-unknown-none-elf.json
/DragonOS/kernel/src/arch/riscv64/sched.rs
/DragonOS/kernel/src/arch/riscv64/syscall/mod.rs
/DragonOS/kernel/src/arch/riscv64/syscall/nr.rs
/DragonOS/kernel/src/arch/riscv64/time.rs
/DragonOS/kernel/src/arch/x86_64/cpu.rs
/DragonOS/kernel/src/arch/x86_64/driver/apic/apic.h
/DragonOS/kernel/src/arch/x86_64/driver/hpet.rs
/DragonOS/kernel/src/arch/x86_64/include/asm/asm.h
/DragonOS/kernel/src/arch/x86_64/link.lds
/DragonOS/kernel/src/arch/x86_64/mm/bump.rs
/DragonOS/kernel/src/arch/x86_64/mm/c_adapter.rs
/DragonOS/kernel/src/arch/x86_64/mm/mod.rs
/DragonOS/kernel/src/arch/x86_64/msi.rs
/DragonOS/kernel/src/arch/x86_64/pci/pci.rs
/DragonOS/kernel/src/arch/x86_64/process/c_adapter.rs
/DragonOS/kernel/src/arch/x86_64/process/mod.rs
/DragonOS/kernel/src/arch/x86_64/rand.rs
/DragonOS/kernel/src/arch/x86_64/syscall/mod.rs
/DragonOS/kernel/src/arch/x86_64/syscall/nr.rs
/DragonOS/kernel/src/common/asm.h
/DragonOS/kernel/src/common/atomic.h
/DragonOS/kernel/src/common/idr.h
/DragonOS/kernel/src/common/math.h
/DragonOS/kernel/src/common/stddef.h
/DragonOS/kernel/src/common/string.h
/DragonOS/kernel/src/driver/acpi/acpi.c
/DragonOS/kernel/src/driver/acpi/acpi.h
/DragonOS/kernel/src/driver/acpi/c_adapter.rs
/DragonOS/kernel/src/driver/acpi/mod.rs
kset.rs
/DragonOS/kernel/src/driver/disk/ahci/ahcidisk.rs
/DragonOS/kernel/src/driver/multiboot2/multiboot2.c
/DragonOS/kernel/src/driver/multiboot2/multiboot2.h
/DragonOS/kernel/src/driver/pci/pci_irq.c
/DragonOS/kernel/src/driver/pci/pci_irq.rs
/DragonOS/kernel/src/driver/timers/rtc/rtc.rs
/DragonOS/kernel/src/driver/tty/serial/serial8250/mod.rs
/DragonOS/kernel/src/driver/video/mod.rs
/DragonOS/kernel/src/exception/gate.h
/DragonOS/kernel/src/exception/irq.c
/DragonOS/kernel/src/exception/softirq.rs
/DragonOS/kernel/src/exception/trap.c
/DragonOS/kernel/src/filesystem/fat/entry.rs
/DragonOS/kernel/src/filesystem/procfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/filesystem/vfs/syscall.rs
/DragonOS/kernel/src/include/DragonOS/refcount.h
/DragonOS/kernel/src/include/bindings/wrapper.h
/DragonOS/kernel/src/init/mod.rs
/DragonOS/kernel/src/ipc/signal_types.rs
/DragonOS/kernel/src/ipc/syscall.rs
/DragonOS/kernel/src/ktest/test-idr.c
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/cpu.c
/DragonOS/kernel/src/libs/elf.rs
/DragonOS/kernel/src/libs/futex/futex.rs
/DragonOS/kernel/src/libs/idr.c
/DragonOS/kernel/src/libs/lib_ui/screen_manager.rs
/DragonOS/kernel/src/libs/lib_ui/textui.rs
/DragonOS/kernel/src/libs/lib_ui/textui_no_alloc.rs
/DragonOS/kernel/src/libs/lock_free_flags.rs
/DragonOS/kernel/src/libs/lockref.c
/DragonOS/kernel/src/libs/lz4.c
/DragonOS/kernel/src/libs/mod.rs
/DragonOS/kernel/src/libs/notifier.rs
/DragonOS/kernel/src/libs/rwlock.rs
/DragonOS/kernel/src/libs/string.c
/DragonOS/kernel/src/mm/allocator/buddy.rs
/DragonOS/kernel/src/mm/allocator/bump.rs
/DragonOS/kernel/src/mm/c_adapter.rs
/DragonOS/kernel/src/mm/mm.h
/DragonOS/kernel/src/mm/mmio_buddy.rs
/DragonOS/kernel/src/mm/mod.rs
/DragonOS/kernel/src/mm/ucontext.rs
/DragonOS/kernel/src/net/socket.rs
/DragonOS/kernel/src/net/syscall.rs
/DragonOS/kernel/src/process/c_adapter.rs
/DragonOS/kernel/src/process/fork.rs
/DragonOS/kernel/src/process/idle.rs
/DragonOS/kernel/src/process/kthread.rs
/DragonOS/kernel/src/process/mod.rs
/DragonOS/kernel/src/process/syscall.rs
/DragonOS/kernel/src/sched/syscall.rs
/DragonOS/kernel/src/smp/ipi.h
/DragonOS/kernel/src/smp/smp.c
/DragonOS/kernel/src/syscall/misc.rs
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/kernel/src/syscall/syscall.c
/DragonOS/kernel/src/time/sleep.rs
/DragonOS/kernel/src/time/timer.rs
/DragonOS/kernel/src/virt/kvm/vm.rs
/DragonOS/kernel/submodules/DragonStub
/DragonOS/tools/.gdbinit
/DragonOS/tools/arch/riscv64/.gitignore
/DragonOS/tools/bootstrap.sh
/DragonOS/tools/build_gcc_toolchain.sh
/DragonOS/tools/create_hdd_image.sh
/DragonOS/tools/grub_auto_install.sh
/DragonOS/tools/install_musl_gcc.sh
/DragonOS/tools/mount_virt_disk.sh
/DragonOS/tools/run-qemu.sh
/DragonOS/tools/umount_virt_disk.sh
/DragonOS/tools/write_disk_image.sh
/DragonOS/user/Makefile
/DragonOS/user/dadk/config/dragon_reach-0.1.0.dadk
/DragonOS/user/dadk/config/nova_shell-0.1.0.dadk
/DragonOS/user/dadk/config/tar_1_35.dadk
/DragonOS/user/libs/libc/src/Makefile
46e234ae17-Nov-2023 LoGin <longjin@DragonOS.org>

使用cargo管理一些C文件的编译,并且移动部分汇编到arch目录 (#447)

* 使用cargo管理main.c的编译

* 使用build-scripts编译架构相关的c代码

* 删除elf.h


/DragonOS/.vscode/settings.json
/DragonOS/Makefile
/DragonOS/README.md
/DragonOS/README_EN.md
/DragonOS/build-scripts/Cargo.toml
/DragonOS/build-scripts/Makefile
/DragonOS/build-scripts/kernel_build/Cargo.toml
/DragonOS/build-scripts/kernel_build/src/bindgen/arch/mod.rs
/DragonOS/build-scripts/kernel_build/src/bindgen/arch/x86_64.rs
/DragonOS/build-scripts/kernel_build/src/bindgen/mod.rs
/DragonOS/build-scripts/kernel_build/src/cfiles/arch/mod.rs
/DragonOS/build-scripts/kernel_build/src/cfiles/arch/x86_64.rs
/DragonOS/build-scripts/kernel_build/src/cfiles/mod.rs
/DragonOS/build-scripts/kernel_build/src/constant/mod.rs
/DragonOS/build-scripts/kernel_build/src/kconfig/mod.rs
/DragonOS/build-scripts/kernel_build/src/lib.rs
/DragonOS/build-scripts/kernel_build/src/utils/cargo_handler.rs
/DragonOS/build-scripts/kernel_build/src/utils/mod.rs
/DragonOS/docs/_static/dragonos-logo.svg
/DragonOS/docs/index.rst
/DragonOS/docs/kernel/configuration/config.md
/DragonOS/docs/kernel/configuration/index.rst
/DragonOS/kernel/.gitignore
/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/build.rs
/DragonOS/kernel/src/Makefile
/DragonOS/kernel/src/arch/x86_64/asm/apu_boot.S
/DragonOS/kernel/src/arch/x86_64/asm/entry.S
/DragonOS/kernel/src/arch/x86_64/asm/head.S
/DragonOS/kernel/src/arch/x86_64/driver/apic/apic_timer.rs
/DragonOS/kernel/src/arch/x86_64/include/asm/asm.h
/DragonOS/kernel/src/arch/x86_64/include/x86_64_ipi.h
/DragonOS/kernel/src/arch/x86_64/init/main.c
/DragonOS/kernel/src/arch/x86_64/interrupt/x86_64_ipi.c
/DragonOS/kernel/src/arch/x86_64/ipc/signal.rs
/DragonOS/kernel/src/arch/x86_64/process/syscall.rs
/DragonOS/kernel/src/arch/x86_64/syscall.rs
/DragonOS/kernel/src/common/glib.h
/DragonOS/kernel/src/common/time.h
/DragonOS/kernel/src/common/unistd.h
block/disk_info.rs
/DragonOS/kernel/src/driver/keyboard/ps2_keyboard.c
/DragonOS/kernel/src/driver/keyboard/ps2_keyboard.rs
/DragonOS/kernel/src/exception/Makefile
/DragonOS/kernel/src/exception/softirq.rs
/DragonOS/kernel/src/filesystem/vfs/VFS.h
/DragonOS/kernel/src/filesystem/vfs/core.rs
/DragonOS/kernel/src/filesystem/vfs/fcntl.rs
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/filesystem/vfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/open.rs
/DragonOS/kernel/src/filesystem/vfs/syscall.rs
/DragonOS/kernel/src/filesystem/vfs/utils.rs
/DragonOS/kernel/src/include/bindings/wrapper.h
/DragonOS/kernel/src/ipc/pipe.rs
/DragonOS/kernel/src/ipc/signal_types.rs
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/glib.c
/DragonOS/kernel/src/libs/lib_ui/textui.rs
/DragonOS/kernel/src/libs/unistd.c
/DragonOS/kernel/src/link.lds
/DragonOS/kernel/src/mm/c_adapter.rs
/DragonOS/kernel/src/mm/mm.h
/DragonOS/kernel/src/mm/ucontext.rs
/DragonOS/kernel/src/net/mod.rs
/DragonOS/kernel/src/net/syscall.rs
/DragonOS/kernel/src/process/exit.rs
/DragonOS/kernel/src/process/fork.rs
/DragonOS/kernel/src/process/mod.rs
/DragonOS/kernel/src/process/preempt.h
/DragonOS/kernel/src/process/process.h
/DragonOS/kernel/src/process/resource.rs
/DragonOS/kernel/src/process/syscall.rs
/DragonOS/kernel/src/smp/Makefile
/DragonOS/kernel/src/smp/ipi.h
/DragonOS/kernel/src/syscall/misc.rs
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/kernel/src/syscall/user_access.rs
/DragonOS/kernel/src/time/clocksource.rs
/DragonOS/kernel/src/time/syscall.rs
/DragonOS/kernel/src/time/timekeeping.rs
/DragonOS/kernel/src/time/timer.h
/DragonOS/kernel/src/time/timer.rs
/DragonOS/tools/create_hdd_image.sh
/DragonOS/tools/run-qemu.sh
/DragonOS/user/Makefile
/DragonOS/user/apps/shell/cmd.c
/DragonOS/user/dadk/config/tar_1_35.dadk
0facf62308-Nov-2023 LoGin <longjin@DragonOS.org>

修正文件open和写入的错误 (#429)

1. 修正文件open的时候可能错误的把inode清空的问题(如果当前inode是mknod创建的)
2. 修正fat和block device中,对文件写入部分的错误问题

7b32f50807-Nov-2023 LoGin <longjin@DragonOS.org>

增加内存分配日志监视器 (#424)

* 完成内存日志监视,并输出日志到文件
* 修复进程退出后,procfs查看进程status文件会崩溃的问题
* 修复signal唤醒进程的判断条件问题


/DragonOS/.gitignore
/DragonOS/.vscode/settings.json
/DragonOS/Makefile
/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/Makefile
/DragonOS/kernel/build.rs
/DragonOS/kernel/crates/crc/Cargo.toml
/DragonOS/kernel/crates/crc/src/crc64.rs
/DragonOS/kernel/crates/crc/src/lib.rs
/DragonOS/kernel/crates/crc/src/tables/crc64.rs
/DragonOS/kernel/crates/crc/src/tables/mod.rs
/DragonOS/kernel/crates/kdepends/Cargo.toml
/DragonOS/kernel/crates/kdepends/src/lib.rs
/DragonOS/kernel/crates/klog_types/Cargo.toml
/DragonOS/kernel/crates/klog_types/src/lib.rs
/DragonOS/kernel/src/Makefile
/DragonOS/kernel/src/arch/Makefile
/DragonOS/kernel/src/arch/x86_64/Makefile
/DragonOS/kernel/src/arch/x86_64/asm/Makefile
/DragonOS/kernel/src/arch/x86_64/driver/apic/apic.c
/DragonOS/kernel/src/arch/x86_64/driver/apic/apic.h
/DragonOS/kernel/src/arch/x86_64/driver/apic/apic_timer.c
/DragonOS/kernel/src/arch/x86_64/driver/apic/apic_timer.h
/DragonOS/kernel/src/arch/x86_64/driver/apic/apic_timer.rs
/DragonOS/kernel/src/arch/x86_64/driver/apic/c_adapter.rs
/DragonOS/kernel/src/arch/x86_64/driver/apic/ioapic.rs
/DragonOS/kernel/src/arch/x86_64/driver/apic/mod.rs
/DragonOS/kernel/src/arch/x86_64/driver/apic/x2apic.rs
/DragonOS/kernel/src/arch/x86_64/driver/apic/xapic.rs
/DragonOS/kernel/src/arch/x86_64/driver/hpet.c
/DragonOS/kernel/src/arch/x86_64/driver/mod.rs
/DragonOS/kernel/src/arch/x86_64/interrupt/c_adapter.rs
/DragonOS/kernel/src/arch/x86_64/interrupt/ipi.rs
/DragonOS/kernel/src/arch/x86_64/interrupt/mod.rs
/DragonOS/kernel/src/arch/x86_64/ipc/signal.rs
/DragonOS/kernel/src/arch/x86_64/process/mod.rs
/DragonOS/kernel/src/arch/x86_64/smp/mod.rs
/DragonOS/kernel/src/arch/x86_64/x86_64_ipi.c
/DragonOS/kernel/src/arch/x86_64/x86_64_ipi.h
/DragonOS/kernel/src/common/Makefile
/DragonOS/kernel/src/debug/klog/mm.rs
/DragonOS/kernel/src/debug/klog/mod.rs
/DragonOS/kernel/src/debug/mod.rs
/DragonOS/kernel/src/driver/Makefile
platform/platform_device.rs
/DragonOS/kernel/src/driver/hid/Makefile
/DragonOS/kernel/src/driver/keyboard/ps2_keyboard.c
/DragonOS/kernel/src/driver/mouse/ps2_mouse.c
/DragonOS/kernel/src/driver/tty/mod.rs
/DragonOS/kernel/src/exception/entry.S
/DragonOS/kernel/src/exception/irq.c
/DragonOS/kernel/src/exception/irq.h
/DragonOS/kernel/src/filesystem/procfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/include/bindings/wrapper.h
/DragonOS/kernel/src/ipc/signal.rs
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/Makefile
/DragonOS/kernel/src/libs/ida/src/lib.rs
/DragonOS/kernel/src/libs/lock_free_flags.rs
/DragonOS/kernel/src/libs/mod.rs
/DragonOS/kernel/src/libs/rwlock.rs
/DragonOS/kernel/src/main.c
/DragonOS/kernel/src/mm/allocator/kernel_allocator.rs
/DragonOS/kernel/src/process/fork.rs
/DragonOS/kernel/src/process/kthread.rs
/DragonOS/kernel/src/process/mod.rs
/DragonOS/kernel/src/sched/cfs.rs
/DragonOS/kernel/src/sched/core.rs
/DragonOS/kernel/src/sched/sched.h
/DragonOS/kernel/src/smp/cpu/c_adapter.rs
/DragonOS/kernel/src/smp/cpu/mod.rs
/DragonOS/kernel/src/smp/mod.rs
/DragonOS/kernel/src/smp/smp.c
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/tools/Cargo.toml
/DragonOS/tools/Makefile
/DragonOS/tools/debugging/logmonitor/.gitignore
/DragonOS/tools/debugging/logmonitor/Cargo.toml
/DragonOS/tools/debugging/logmonitor/README.md
/DragonOS/tools/debugging/logmonitor/src/app.rs
/DragonOS/tools/debugging/logmonitor/src/backend/error.rs
/DragonOS/tools/debugging/logmonitor/src/backend/event.rs
/DragonOS/tools/debugging/logmonitor/src/backend/loader.rs
/DragonOS/tools/debugging/logmonitor/src/backend/mod.rs
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/logset.rs
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/mm.rs
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/mod.rs
/DragonOS/tools/debugging/logmonitor/src/command.rs
/DragonOS/tools/debugging/logmonitor/src/constant/mod.rs
/DragonOS/tools/debugging/logmonitor/src/event.rs
/DragonOS/tools/debugging/logmonitor/src/handler.rs
/DragonOS/tools/debugging/logmonitor/src/lib.rs
/DragonOS/tools/debugging/logmonitor/src/logging.rs
/DragonOS/tools/debugging/logmonitor/src/main.rs
/DragonOS/tools/debugging/logmonitor/src/tui.rs
/DragonOS/tools/debugging/logmonitor/src/ui.rs
/DragonOS/tools/run-qemu.sh
/DragonOS/user/apps/shell/cmd.c
/DragonOS/user/dadk/config/relibc-0.1.0.dadk
1effcfe505-Nov-2023 GnoCiYeH <heyicong@dragonos.org>

修复readdir以及读磁盘时buf传错问题 (#422)

* 修复readdir以及读磁盘时buf传错问题

* fix potential memory problem

---------

Co-authored-by: longjin <longjin@DragonOS.org>


/DragonOS/.gitignore
/DragonOS/.vscode/settings.json
/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/build.rs
/DragonOS/kernel/src/Makefile
/DragonOS/kernel/src/arch/x86_64/c_adapter.rs
/DragonOS/kernel/src/arch/x86_64/driver/c_adapter.rs
/DragonOS/kernel/src/arch/x86_64/driver/hpet.c
/DragonOS/kernel/src/arch/x86_64/driver/hpet.rs
/DragonOS/kernel/src/arch/x86_64/driver/mod.rs
/DragonOS/kernel/src/arch/x86_64/driver/tsc.rs
/DragonOS/kernel/src/arch/x86_64/fpu.rs
/DragonOS/kernel/src/arch/x86_64/ipc/mod.rs
/DragonOS/kernel/src/arch/x86_64/ipc/signal.rs
/DragonOS/kernel/src/arch/x86_64/kvm/mod.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/ept.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/kvm_emulation.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/mmu.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/mod.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/seg.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/vcpu.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/vmcs.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/vmexit.rs
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/vmx_asm_wrapper.rs
/DragonOS/kernel/src/arch/x86_64/mm/mod.rs
/DragonOS/kernel/src/arch/x86_64/mod.rs
/DragonOS/kernel/src/arch/x86_64/pci/pci.rs
/DragonOS/kernel/src/arch/x86_64/process/mod.rs
/DragonOS/kernel/src/arch/x86_64/process/syscall.rs
/DragonOS/kernel/src/arch/x86_64/process/table.rs
/DragonOS/kernel/src/arch/x86_64/rand.rs
/DragonOS/kernel/src/arch/x86_64/syscall.rs
/DragonOS/kernel/src/arch/x86_64/time.rs
/DragonOS/kernel/src/common/cpu.h
/DragonOS/kernel/src/common/glib.h
/DragonOS/kernel/src/debug/kallsyms.c
/DragonOS/kernel/src/debug/traceback/traceback.c
/DragonOS/kernel/src/driver/acpi/mod.rs
/DragonOS/kernel/src/driver/acpi/pmtmr.rs
block/block_device.rs
/DragonOS/kernel/src/driver/disk/ahci/ahcidisk.rs
/DragonOS/kernel/src/driver/interrupt/apic/apic.c
/DragonOS/kernel/src/driver/interrupt/apic/apic_timer.c
/DragonOS/kernel/src/driver/net/dma.rs
/DragonOS/kernel/src/driver/net/e1000e/e1000e.rs
/DragonOS/kernel/src/driver/net/e1000e/e1000e_driver.rs
/DragonOS/kernel/src/driver/net/e1000e/mod.rs
/DragonOS/kernel/src/driver/net/mod.rs
/DragonOS/kernel/src/driver/pci/pci_irq.rs
/DragonOS/kernel/src/driver/timers/Makefile
/DragonOS/kernel/src/driver/timers/hpet/mod.rs
/DragonOS/kernel/src/driver/timers/mod.rs
/DragonOS/kernel/src/driver/tty/mod.rs
/DragonOS/kernel/src/exception/entry.S
/DragonOS/kernel/src/exception/irq.c
/DragonOS/kernel/src/exception/irq.h
/DragonOS/kernel/src/filesystem/devfs/mod.rs
/DragonOS/kernel/src/filesystem/fat/fs.rs
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/filesystem/vfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/syscall.rs
/DragonOS/kernel/src/head.S
/DragonOS/kernel/src/include/bindings/wrapper.h
/DragonOS/kernel/src/ipc/mod.rs
/DragonOS/kernel/src/ipc/signal.rs
/DragonOS/kernel/src/ipc/signal_types.rs
/DragonOS/kernel/src/ipc/syscall.rs
/DragonOS/kernel/src/ktest/ktest.h
/DragonOS/kernel/src/ktest/test-kvm.c
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/cpu.c
/DragonOS/kernel/src/libs/futex/constant.rs
/DragonOS/kernel/src/libs/futex/futex.rs
/DragonOS/kernel/src/libs/futex/mod.rs
/DragonOS/kernel/src/libs/futex/syscall.rs
/DragonOS/kernel/src/libs/lib_ui/textui.rs
/DragonOS/kernel/src/libs/mod.rs
/DragonOS/kernel/src/libs/printk.rs
/DragonOS/kernel/src/libs/rand.rs
/DragonOS/kernel/src/libs/rwlock.rs
/DragonOS/kernel/src/libs/volatile.rs
/DragonOS/kernel/src/libs/wait_queue.rs
/DragonOS/kernel/src/link.lds
/DragonOS/kernel/src/main.c
/DragonOS/kernel/src/mm/allocator/kernel_allocator.rs
/DragonOS/kernel/src/mm/mod.rs
/DragonOS/kernel/src/mm/ucontext.rs
/DragonOS/kernel/src/net/socket.rs
/DragonOS/kernel/src/net/syscall.rs
/DragonOS/kernel/src/process/c_adapter.rs
/DragonOS/kernel/src/process/fork.rs
/DragonOS/kernel/src/process/idle.rs
/DragonOS/kernel/src/process/init.rs
/DragonOS/kernel/src/process/kthread.rs
/DragonOS/kernel/src/process/mod.rs
/DragonOS/kernel/src/process/pid.rs
/DragonOS/kernel/src/process/proc-types.h
/DragonOS/kernel/src/process/syscall.rs
/DragonOS/kernel/src/sched/completion.rs
/DragonOS/kernel/src/sched/core.rs
/DragonOS/kernel/src/smp/smp.c
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/kernel/src/syscall/syscall_num.h
/DragonOS/kernel/src/syscall/user_access.rs
/DragonOS/kernel/src/time/mod.rs
/DragonOS/kernel/src/time/timer.h
/DragonOS/kernel/src/time/timer.rs
/DragonOS/kernel/src/virt/kvm/host_mem.rs
/DragonOS/kernel/src/virt/kvm/kvm.h
/DragonOS/kernel/src/virt/kvm/kvm_dev.rs
/DragonOS/kernel/src/virt/kvm/mod.rs
/DragonOS/kernel/src/virt/kvm/vcpu.rs
/DragonOS/kernel/src/virt/kvm/vcpu_dev.rs
/DragonOS/kernel/src/virt/kvm/vm.rs
/DragonOS/kernel/src/virt/kvm/vm_dev.rs
/DragonOS/kernel/src/virt/mod.rs
/DragonOS/tools/.gdbinit
/DragonOS/tools/.gitignore
/DragonOS/tools/bootstrap.sh
/DragonOS/tools/create_hdd_image.sh
/DragonOS/tools/run-qemu.sh
/DragonOS/tools/write_disk_image.sh
/DragonOS/user/apps/Makefile
/DragonOS/user/apps/shell/cmd.c
/DragonOS/user/apps/test_kvm/Makefile
/DragonOS/user/apps/test_kvm/bootstrap/Makefile
/DragonOS/user/apps/test_kvm/bootstrap/boot.bin
/DragonOS/user/apps/test_kvm/bootstrap/boot.hex
/DragonOS/user/apps/test_kvm/link.lds
/DragonOS/user/apps/test_kvm/main.c
/DragonOS/user/apps/test_signal/Makefile
/DragonOS/user/apps/test_signal/link.lds
/DragonOS/user/apps/test_signal/main.c
/DragonOS/user/apps/test_uart/Makefile
/DragonOS/user/dadk/config/dragon_reach-0.1.0.dadk
/DragonOS/user/dadk/config/relibc-0.1.0.dadk
/DragonOS/user/dadk/config/test_signal-0.1.0.dadk
/DragonOS/user/libs/libc/src/Makefile
/DragonOS/user/libs/libc/src/dirent.c
/DragonOS/user/libs/libc/src/fcntl.c
/DragonOS/user/libs/libc/src/include/export/fcntl.h
/DragonOS/user/libs/libc/src/printf.c
/DragonOS/user/libs/libc/src/signal.c
/DragonOS/user/libs/libc/src/stdlib.c
/DragonOS/user/libs/libc/src/sys/stat.c
/DragonOS/user/libs/libc/src/sys/wait.c
/DragonOS/user/libs/libc/src/time.c
/DragonOS/user/libs/libc/src/unistd.c
/DragonOS/user/libs/libsystem/syscall.c
/DragonOS/user/libs/libsystem/syscall.h
d7f5742a23-Oct-2023 LoGin <longjin@DragonOS.org>

初步编写cpu信息获取的代码 (#406)

1. 启动时从acpi获取所有的cpu信息并存到SMP_BOOT_DATA
2. 注册cpu subsystem/bus到sysfs(暂时未添加内容)

todo:
1. build_cpu_map(在X86_64SmpManager中)
2. 实现cpu mask
3. 把cpu设备注册到sysfs

7eda31b222-Oct-2023 LoGin <longjin@DragonOS.org>

在Sysfs中引入ACPI Firmware (#405)

- bugfix: multiboot2启动的信息因为没及时转存导致后面无法从其中进行查询的bug
- feature: 把acpi表、acpi bus加入sysfs

a03c4f9d20-Oct-2023 LoGin <longjin@DragonOS.org>

设备驱动模型:完善platform bus相关内容。并注册串口到sysfs (#403)

* 完成初始化platform bus
* 删除旧的sysfs
* 把uart驱动移动到tty/serial文件夹下
* 完成将串口挂载到sysfs
* 修复vfs系统调用未能follow symlink的问题
* 修复shell未能正确获取pwd的问题


/DragonOS/.vscode/settings.json
/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/src/arch/io.rs
/DragonOS/kernel/src/arch/mod.rs
/DragonOS/kernel/src/arch/x86_64/asm/mod.rs
/DragonOS/kernel/src/arch/x86_64/asm/pio.rs
/DragonOS/kernel/src/arch/x86_64/mm/mod.rs
/DragonOS/kernel/src/arch/x86_64/mod.rs
/DragonOS/kernel/src/driver/acpi/bus.rs
/DragonOS/kernel/src/driver/acpi/mod.rs
device/bus.rs
device/dd.rs
device/driver.rs
device/init.rs
device/mod.rs
init.rs
kobject.rs
kset.rs
platform/mod.rs
platform/platform_device.rs
platform/platform_driver.rs
platform/subsys.rs
subsys.rs
/DragonOS/kernel/src/driver/disk/ahci/ahcidisk.rs
/DragonOS/kernel/src/driver/interrupt/apic/apic.c
/DragonOS/kernel/src/driver/mod.rs
/DragonOS/kernel/src/driver/net/mod.rs
/DragonOS/kernel/src/driver/net/virtio_net.rs
/DragonOS/kernel/src/driver/tty/init.rs
/DragonOS/kernel/src/driver/tty/mod.rs
/DragonOS/kernel/src/driver/tty/serial/mod.rs
/DragonOS/kernel/src/driver/tty/serial/serial8250/mod.rs
/DragonOS/kernel/src/driver/tty/serial/serial8250/serial8250_pio.rs
/DragonOS/kernel/src/driver/tty/tty_device.rs
/DragonOS/kernel/src/driver/tty/tty_driver.rs
/DragonOS/kernel/src/driver/video/mod.rs
/DragonOS/kernel/src/filesystem/kernfs/mod.rs
/DragonOS/kernel/src/filesystem/sysfs/group.rs
/DragonOS/kernel/src/filesystem/sysfs/symlink.rs
/DragonOS/kernel/src/filesystem/vfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/syscall.rs
/DragonOS/kernel/src/init/c_adapter.rs
/DragonOS/kernel/src/init/mod.rs
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/ida/Cargo.toml
/DragonOS/kernel/src/libs/ida/src/lib.rs
/DragonOS/kernel/src/libs/int_like.rs
/DragonOS/kernel/src/libs/lib_ui/screen_manager.h
/DragonOS/kernel/src/libs/lib_ui/screen_manager.rs
/DragonOS/kernel/src/libs/lib_ui/textui.rs
/DragonOS/kernel/src/libs/lib_ui/textui_no_alloc.rs
/DragonOS/kernel/src/libs/wait_queue.rs
/DragonOS/kernel/src/main.c
/DragonOS/user/apps/shell/cmd.c
/DragonOS/user/libs/libc/src/include/export/unistd.h
/DragonOS/user/libs/libc/src/unistd.c
/DragonOS/user/libs/libsystem/syscall.h
06d5e24710-Oct-2023 LoGin <longjin@DragonOS.org>

完善设备驱动模型,基于kset、kobj来维护对象之间的关系 (#401)

* 使用kobj和kset管理/sys文件夹下的对象

* 修改notifier,把action从u64换为泛型。

* 完善设备驱动模型,基于kset、kobj来维护对象之间的关系


/DragonOS/.github/workflows/cache-toolchain.yml
/DragonOS/.vscode/settings.json
/DragonOS/docs/kernel/filesystem/index.rst
/DragonOS/docs/kernel/filesystem/kernfs.md
/DragonOS/docs/userland/libc/apis/api-list/string.md
/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/src/arch/x86_64/mm/mod.rs
/DragonOS/kernel/src/arch/x86_64/msi.rs
/DragonOS/kernel/src/arch/x86_64/process/syscall.rs
/DragonOS/kernel/src/arch/x86_64/syscall.rs
/DragonOS/kernel/src/driver/acpi/acpi.c
/DragonOS/kernel/src/driver/acpi/glue.rs
/DragonOS/kernel/src/driver/acpi/mod.rs
block/block_device.rs
c_adapter.rs
char/mod.rs
class.rs
device/bus.rs
device/dd.rs
device/driver.rs
device/init.rs
device/mod.rs
firmware.rs
hypervisor.rs
init.rs
kobject.rs
kset.rs
map/mod.rs
mod.rs
platform/mod.rs
platform/platform_device.rs
platform/subsys.rs
subsys.rs
swnode.rs
/DragonOS/kernel/src/driver/disk/ahci/ahci_inode.rs
/DragonOS/kernel/src/driver/disk/ahci/ahcidisk.rs
/DragonOS/kernel/src/driver/interrupt/apic/apic.c
/DragonOS/kernel/src/driver/keyboard/ps2_keyboard.rs
/DragonOS/kernel/src/driver/mod.rs
/DragonOS/kernel/src/driver/net/virtio_net.rs
/DragonOS/kernel/src/driver/pci/pci.rs
/DragonOS/kernel/src/driver/pci/pci_irq.c
/DragonOS/kernel/src/driver/pci/pci_irq.rs
/DragonOS/kernel/src/driver/tty/tty_device.rs
/DragonOS/kernel/src/driver/uart/uart_device.rs
/DragonOS/kernel/src/driver/uart/uart_driver.rs
/DragonOS/kernel/src/driver/virtio/transport_pci.rs
/DragonOS/kernel/src/exception/irq.c
/DragonOS/kernel/src/exception/irq.h
/DragonOS/kernel/src/filesystem/devfs/mod.rs
/DragonOS/kernel/src/filesystem/devfs/null_dev.rs
/DragonOS/kernel/src/filesystem/devfs/zero_dev.rs
/DragonOS/kernel/src/filesystem/fat/fs.rs
/DragonOS/kernel/src/filesystem/kernfs/callback.rs
/DragonOS/kernel/src/filesystem/kernfs/mod.rs
/DragonOS/kernel/src/filesystem/mod.rs
/DragonOS/kernel/src/filesystem/procfs/mod.rs
/DragonOS/kernel/src/filesystem/ramfs/mod.rs
/DragonOS/kernel/src/filesystem/sysfs/dir.rs
/DragonOS/kernel/src/filesystem/sysfs/file.rs
/DragonOS/kernel/src/filesystem/sysfs/group.rs
/DragonOS/kernel/src/filesystem/sysfs/mod.rs
/DragonOS/kernel/src/filesystem/sysfs/symlink.rs
/DragonOS/kernel/src/filesystem/vfs/core.rs
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/filesystem/vfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/mount.rs
/DragonOS/kernel/src/filesystem/vfs/syscall.rs
/DragonOS/kernel/src/init/c_adapter.rs
/DragonOS/kernel/src/init/mod.rs
/DragonOS/kernel/src/ipc/pipe.rs
/DragonOS/kernel/src/ipc/syscall.rs
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/intertrait/.gitignore
/DragonOS/kernel/src/libs/intertrait/Cargo.toml
/DragonOS/kernel/src/libs/intertrait/LICENSE-MIT
/DragonOS/kernel/src/libs/intertrait/README.md
/DragonOS/kernel/src/libs/intertrait/macros/Cargo.toml
/DragonOS/kernel/src/libs/intertrait/macros/LICENSE-APACHE
/DragonOS/kernel/src/libs/intertrait/macros/LICENSE-MIT
/DragonOS/kernel/src/libs/intertrait/macros/src/args.rs
/DragonOS/kernel/src/libs/intertrait/macros/src/gen_caster.rs
/DragonOS/kernel/src/libs/intertrait/macros/src/item_impl.rs
/DragonOS/kernel/src/libs/intertrait/macros/src/item_type.rs
/DragonOS/kernel/src/libs/intertrait/macros/src/lib.rs
/DragonOS/kernel/src/libs/intertrait/src/cast.rs
/DragonOS/kernel/src/libs/intertrait/src/cast/cast_arc.rs
/DragonOS/kernel/src/libs/intertrait/src/cast/cast_box.rs
/DragonOS/kernel/src/libs/intertrait/src/cast/cast_mut.rs
/DragonOS/kernel/src/libs/intertrait/src/cast/cast_rc.rs
/DragonOS/kernel/src/libs/intertrait/src/cast/cast_ref.rs
/DragonOS/kernel/src/libs/intertrait/src/hasher.rs
/DragonOS/kernel/src/libs/intertrait/src/lib.rs
/DragonOS/kernel/src/libs/intertrait/tests/castable_to.rs
/DragonOS/kernel/src/libs/intertrait/tests/on-enum.rs
/DragonOS/kernel/src/libs/intertrait/tests/on-struct.rs
/DragonOS/kernel/src/libs/intertrait/tests/on-trait-impl-assoc-type1.rs
/DragonOS/kernel/src/libs/intertrait/tests/on-trait-impl-assoc-type2.rs
/DragonOS/kernel/src/libs/intertrait/tests/on-trait-impl-assoc-type3.rs
/DragonOS/kernel/src/libs/intertrait/tests/on-trait-impl.rs
/DragonOS/kernel/src/libs/intertrait/tests/on-type-multi-traits.rs
/DragonOS/kernel/src/libs/intertrait/tests/run.rs
/DragonOS/kernel/src/libs/intertrait/tests/ui/duplicate-flags.rs
/DragonOS/kernel/src/libs/intertrait/tests/ui/duplicate-flags.stderr
/DragonOS/kernel/src/libs/intertrait/tests/ui/on-generic-type.rs
/DragonOS/kernel/src/libs/intertrait/tests/ui/on-generic-type.stderr
/DragonOS/kernel/src/libs/intertrait/tests/ui/on-type-impl.rs
/DragonOS/kernel/src/libs/intertrait/tests/ui/on-type-impl.stderr
/DragonOS/kernel/src/libs/intertrait/tests/ui/unknown-flag.rs
/DragonOS/kernel/src/libs/intertrait/tests/ui/unknown-flag.stderr
/DragonOS/kernel/src/libs/mod.rs
/DragonOS/kernel/src/libs/notifier.rs
/DragonOS/kernel/src/libs/rbtree.rs
/DragonOS/kernel/src/main.c
/DragonOS/kernel/src/mm/allocator/buddy.rs
/DragonOS/kernel/src/mm/allocator/kernel_allocator.rs
/DragonOS/kernel/src/mm/allocator/page_frame.rs
/DragonOS/kernel/src/net/net_core.rs
/DragonOS/kernel/src/net/socket.rs
/DragonOS/kernel/src/process/abi.rs
/DragonOS/kernel/src/process/exec.rs
/DragonOS/kernel/src/process/fork.rs
/DragonOS/kernel/src/process/init.rs
/DragonOS/kernel/src/process/mod.rs
/DragonOS/kernel/src/process/syscall.rs
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/tools/run-qemu.sh
/DragonOS/user/Makefile
/DragonOS/user/apps/shell/cmd.c
/DragonOS/user/apps/test_mkfifo/Makefile
/DragonOS/user/apps/test_mkfifo/link.lds
/DragonOS/user/apps/test_mkfifo/main.c
/DragonOS/user/dadk/config/dragon_reach-0.1.0.dadk
/DragonOS/user/dadk/config/relibc-0.1.0.dadk
/DragonOS/user/dadk/config/test_mkfifo-0.1.0.dadk
/DragonOS/user/dadk/target/x86_64-unknown-dragonos.json
/DragonOS/user/libs/libc/src/include/export/string.h
/DragonOS/user/libs/libc/src/include/export/sys/stat.h
/DragonOS/user/libs/libc/src/string.c
/DragonOS/user/libs/libc/src/sys/stat.c
/DragonOS/user/libs/libsystem/syscall.h
ae5ede0317-Sep-2023 LoGin <longjin@DragonOS.org>

bugfix: bus/device manager对卸载逻辑的处理错误 (#385)

* 移动位置

* bugfix: bus/device manager对卸载逻辑的处理错误

1496ba7b15-Sep-2023 LoGin <longjin@DragonOS.org>

进程管理模块重构完成 (#380)

* 添加新版pcb的数据结构 (#273)

* 将pcb中的内容分类,分别加锁 (#305)

* 进程管理重构:完成fork的主体逻辑 (#309)

1.完成fork的主体逻辑
2.将文件系统接到新的pcb上
3.经过思考,暂时弃用signal机制,待进程管理重构完成后,重写signal机制.原因是原本的signal机制太烂了

*

进程管理模块重构完成 (#380)

* 添加新版pcb的数据结构 (#273)

* 将pcb中的内容分类,分别加锁 (#305)

* 进程管理重构:完成fork的主体逻辑 (#309)

1.完成fork的主体逻辑
2.将文件系统接到新的pcb上
3.经过思考,暂时弃用signal机制,待进程管理重构完成后,重写signal机制.原因是原本的signal机制太烂了

* chdir getcwd pid pgid ppid (#310)


---------

Co-authored-by: longjin <longjin@RinGoTek.cn>

* 删除旧的fork以及signal的代码,并调整fork/vfork/execve系统调用 (#325)

1.删除旧的fork
2.删除signal相关代码,等进程管理重构结束之后,再重新写.
3.调整了fork/vfork/execve系统调用

* 实现切换进程的代码 (#331)



* 实现切换进程的代码

* Patch modify preempt (#332)

* 修改设置preempt的代码

* 删除rust的list和refcount

* 为每个核心初始化idle进程 (#333)

* 为每个核心初始化idle进程

* 完成了新的内核线程机制 (#335)

* 调度器的pcb替换为新的Arc<ProcessControlBlock>,把调度器队列锁从 RwSpinLock 替换为了 SpinLock (#336)

* 把调度器的pcb替换为新的Arc<ProcessControlBlock>

* 把调度器队列锁从 RwSpinLock 替换为了 SpinLock ,修改了签名以通过编译

* 修正一些双重加锁、细节问题

---------

Co-authored-by: longjin <longjin@RinGoTek.cn>

* github workflow自动检查代码是否格式化

* cache toolchain yml

* 调整rust版本的waitqueue中的pcb为新版的pcb (#343)

* 解决设置rust workspace带来的“工具链不一致”的问题 (#344)


* 解决设置rust workspace带来的“工具链不一致”的问题

更改workflow

* 调整pcb的sched_info和rwlock,以避免调度器死锁问题 (#341)

* 调整pcb的sched_info和rwlock,以避免调度器死锁问题

* 修改为在 WriterGuard 中维护 Irq_guard

* 修正了 write_irqsave方法

* 优化了代码

* 把 set state 操作从 wakup 移动到 sched_enqueue 中

* 修正为在 wakeup 中设置 running ,以保留 set_state 的私有性

* 移除了 process_wakeup

* 实现进程退出的逻辑 (#340)

实现进程退出的逻辑

* 标志进程sleep

* 修复wakeup的问题

---------

Co-authored-by: longjin <longjin@RinGoTek.cn>

* rust 重构 completion (#350)

* 完成了completion的基本结构,待完善上级调用

* 用SpinLock保护结构体并发安全

* 修改原子变量为u32,修复符号错误

* irq guard

* 修改为具有内部可变性的结构体

* temp fix

* 修复了由于进程持有自旋锁导致的不被调度的问题

* 对 complete 系列方法上锁,保护 done 数据并发安全

* 移除了未使用的依赖

* 重写显示刷新驱动 (#363)

* 重构显示刷新驱动

* Patch refactor process management (#366)

* 维护进程树

* 维护进程树

* 更改代码结构

* 新建进程时,设置cwd

* 调整adopt childern函数,降低开销

---------

Co-authored-by: longjin <longjin@RinGoTek.cn>

* waitqueue兼容C部分 (#351)

* PATH

* safe init

* waitqueue兼容C部分

* waitqueue兼容C部分

* 删除semaphore.c,在ps2_keyboard中使用waitqueue

* 删除semaphore.c,在ps2_keyboard中使用waitqueue

* current_pcb的C兼容

* current_pcb的C兼容

* current_pcb的C兼容

* fmt

* current_pcb的兼容

* 针对修改

* 调整代码

* fmt

* 删除pcb的set flags

* 更改函数名

---------

Co-authored-by: longjin <longjin@RinGoTek.cn>

* merge master

* Patch debug process management refactor (#372)

* 能够调通,执行完textui_init

* 能跑到initial kernel thread

* fmt

* 能够正常初始化所有服务(尚未能切换到用户程序)

* 删除部分无用的extern

* 存在问题:ap处理器启动后,bsp的smp_init函数return之后就出错了,怀疑是栈损坏

* 解决smp启动由于未换栈导致的内存访问错误

* debug

* 1

* 1

* lock no preempt

* 调通

* 优化代码,删除一些调试日志

* fix

* 使用rust重写wait4 (#377)

* 维护进程树

* 维护进程树

* 更改代码结构

* 新建进程时,设置cwd

* 调整adopt childern函数,降低开销

* wait4

* 删除c_sys_wait4

* 使用userbuffer保护裸指针

---------

Co-authored-by: longjin <longjin@RinGoTek.cn>

* 消除warning

* 1. 修正未设置cpu executing的问题

* 修正kthread机制可能存在的内存泄露问题

* 删除pcb文档

* 删除C的tss struct

---------

Co-authored-by: Bullet <93781792+GP-Bullet@users.noreply.github.com>
Co-authored-by: Chiichen <39649411+Chiichen@users.noreply.github.com>
Co-authored-by: hanjiezhou <zhouhanjie@dragonos.org>
Co-authored-by: GnoCiYeH <118462160+GnoCiYeH@users.noreply.github.com>
Co-authored-by: houmkh <1119644616@qq.com>

show more ...


/DragonOS/.gitignore
/DragonOS/.vscode/settings.json
/DragonOS/docs/kernel/process_management/index.rst
/DragonOS/docs/kernel/process_management/kthread.md
/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/src/Makefile
/DragonOS/kernel/src/arch/x86_64/asm/bitops.rs
/DragonOS/kernel/src/arch/x86_64/asm/mod.rs
/DragonOS/kernel/src/arch/x86_64/asm/spinlock.c
/DragonOS/kernel/src/arch/x86_64/cpu.rs
/DragonOS/kernel/src/arch/x86_64/fpu.rs
/DragonOS/kernel/src/arch/x86_64/interrupt/mod.rs
/DragonOS/kernel/src/arch/x86_64/ipc/mod.rs
/DragonOS/kernel/src/arch/x86_64/mm/mod.rs
/DragonOS/kernel/src/arch/x86_64/mod.rs
/DragonOS/kernel/src/arch/x86_64/process/c_adapter.rs
/DragonOS/kernel/src/arch/x86_64/process/kthread.rs
/DragonOS/kernel/src/arch/x86_64/process/mod.rs
/DragonOS/kernel/src/arch/x86_64/process/syscall.rs
/DragonOS/kernel/src/arch/x86_64/process/table.rs
/DragonOS/kernel/src/arch/x86_64/sched.rs
/DragonOS/kernel/src/arch/x86_64/smp/mod.rs
/DragonOS/kernel/src/arch/x86_64/syscall.rs
/DragonOS/kernel/src/common/blk_types.h
/DragonOS/kernel/src/common/cpu.h
/DragonOS/kernel/src/common/elf.h
/DragonOS/kernel/src/common/stddef.h
/DragonOS/kernel/src/debug/traceback/traceback.c
/DragonOS/kernel/src/driver/Makefile
device/mod.rs
/DragonOS/kernel/src/driver/disk/ahci/mod.rs
/DragonOS/kernel/src/driver/interrupt/apic/apic.c
/DragonOS/kernel/src/driver/interrupt/apic/apic2rust.h
/DragonOS/kernel/src/driver/interrupt/apic/apic_timer.c
/DragonOS/kernel/src/driver/keyboard/ps2_keyboard.c
/DragonOS/kernel/src/driver/timers/HPET/HPET.c
/DragonOS/kernel/src/driver/video/mod.rs
/DragonOS/kernel/src/driver/virtio/transport_pci.rs
/DragonOS/kernel/src/driver/virtio/virtio.rs
/DragonOS/kernel/src/exception/softirq.rs
/DragonOS/kernel/src/exception/trap.c
/DragonOS/kernel/src/filesystem/procfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/VFS.h
/DragonOS/kernel/src/filesystem/vfs/core.rs
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/filesystem/vfs/mount.rs
/DragonOS/kernel/src/filesystem/vfs/syscall.rs
/DragonOS/kernel/src/head.S
/DragonOS/kernel/src/include/DragonOS/signal.h
/DragonOS/kernel/src/include/bindings/wrapper.h
/DragonOS/kernel/src/ipc/mod.rs
/DragonOS/kernel/src/ipc/pipe.rs
/DragonOS/kernel/src/ipc/syscall.rs
/DragonOS/kernel/src/ktest/Makefile
/DragonOS/kernel/src/ktest/ktest.c
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/align.rs
/DragonOS/kernel/src/libs/elf.rs
/DragonOS/kernel/src/libs/int_like.rs
/DragonOS/kernel/src/libs/lib_ui/screen_manager.h
/DragonOS/kernel/src/libs/lib_ui/screen_manager.rs
/DragonOS/kernel/src/libs/lib_ui/textui.rs
/DragonOS/kernel/src/libs/lib_ui/textui_no_alloc.rs
/DragonOS/kernel/src/libs/mod.rs
/DragonOS/kernel/src/libs/mutex.rs
/DragonOS/kernel/src/libs/printk.rs
/DragonOS/kernel/src/libs/rwlock.rs
/DragonOS/kernel/src/libs/semaphore.rs
/DragonOS/kernel/src/libs/spinlock.rs
/DragonOS/kernel/src/libs/wait_queue.rs
/DragonOS/kernel/src/main.c
/DragonOS/kernel/src/mm/mm-types.h
/DragonOS/kernel/src/mm/mm.h
/DragonOS/kernel/src/mm/mmio_buddy.rs
/DragonOS/kernel/src/mm/mod.rs
/DragonOS/kernel/src/mm/syscall.rs
/DragonOS/kernel/src/mm/ucontext.rs
/DragonOS/kernel/src/net/net_core.rs
/DragonOS/kernel/src/net/syscall.rs
/DragonOS/kernel/src/process/c_adapter.rs
/DragonOS/kernel/src/process/fork.rs
/DragonOS/kernel/src/process/idle.rs
/DragonOS/kernel/src/process/init.rs
/DragonOS/kernel/src/process/kthread.rs
/DragonOS/kernel/src/process/mod.rs
/DragonOS/kernel/src/process/preempt.h
/DragonOS/kernel/src/process/proc-types.h
/DragonOS/kernel/src/process/process.h
/DragonOS/kernel/src/process/process.rs
/DragonOS/kernel/src/process/syscall.rs
/DragonOS/kernel/src/sched/cfs.rs
/DragonOS/kernel/src/sched/completion.rs
/DragonOS/kernel/src/sched/core.rs
/DragonOS/kernel/src/sched/mod.rs
/DragonOS/kernel/src/sched/rt.rs
/DragonOS/kernel/src/sched/sched.h
/DragonOS/kernel/src/sched/syscall.rs
/DragonOS/kernel/src/smp/c_adapter.rs
/DragonOS/kernel/src/smp/core.rs
/DragonOS/kernel/src/smp/mod.rs
/DragonOS/kernel/src/smp/smp.c
/DragonOS/kernel/src/smp/smp.h
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/kernel/src/syscall/syscall.c
/DragonOS/kernel/src/time/clocksource.c
/DragonOS/kernel/src/time/clocksource.h
/DragonOS/kernel/src/time/sleep.h
/DragonOS/kernel/src/time/sleep.rs
/DragonOS/kernel/src/time/timer.h
/DragonOS/kernel/src/time/timer.rs
/DragonOS/tools/.gdbinit
/DragonOS/user/libs/libc/src/malloc.c
b087521e13-Sep-2023 Chiichen <39649411+Chiichen@users.noreply.github.com>

完善设备驱动模型&调试串口驱动 (#379)

* 完成了基本架构重构,正在进行兼容

* 重构了所有 Device Driver ,还没有接上具体设备

* 基本把 Uart 接上了,还没有测试

* 初步完成系统设备初始化

* 初步重构 BlockDevice ,使其兼容新的 Device 结构

* 修改文件系统内的部分函数调用以满足重构后的接口

* 测试完 U

完善设备驱动模型&调试串口驱动 (#379)

* 完成了基本架构重构,正在进行兼容

* 重构了所有 Device Driver ,还没有接上具体设备

* 基本把 Uart 接上了,还没有测试

* 初步完成系统设备初始化

* 初步重构 BlockDevice ,使其兼容新的 Device 结构

* 修改文件系统内的部分函数调用以满足重构后的接口

* 测试完 Uart 设备的功能

* 移除了自动添加的文件

* 修复了 warning 和部分格式

* 解决warning,并且修正sysfs初始化的位置

* Patch fix

* 删除了 sysinfo 的默认实现

* 删除了字符设备读写的 offset 参数

* 修复了 warning 和一些小逻辑错误

---------

Co-authored-by: longjin <longjin@RinGoTek.cn>

show more ...


/DragonOS/.github/workflows/cache-toolchain.yml
/DragonOS/.github/workflows/makefile.yml
/DragonOS/.github/workflows/rustfmt.yml
/DragonOS/.gitignore
/DragonOS/.vscode/c_cpp_properties.json
/DragonOS/.vscode/settings.json
/DragonOS/Makefile
/DragonOS/docs/community/ChangeLog/V0.1.x/V0.1.8.md
/DragonOS/docs/community/ChangeLog/index.rst
/DragonOS/docs/community/contact/index.rst
/DragonOS/docs/index.rst
/DragonOS/docs/introduction/build_system.md
/DragonOS/docs/introduction/features.md
/DragonOS/docs/introduction/mirrors.md
/DragonOS/docs/kernel/core_api/index.rst
/DragonOS/docs/kernel/core_api/notifier_chain.md
/DragonOS/docs/kernel/debug/debug-kernel-with-gdb.md
/DragonOS/docs/kernel/debug/index.rst
/DragonOS/docs/kernel/libs/index.rst
/DragonOS/docs/kernel/libs/lib_ui/scm.md
/DragonOS/docs/kernel/libs/lib_ui/textui.md
/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/Makefile
/DragonOS/kernel/src/Makefile
/DragonOS/kernel/src/arch/mod.rs
/DragonOS/kernel/src/arch/x86_64/cpu.rs
/DragonOS/kernel/src/arch/x86_64/fpu.rs
/DragonOS/kernel/src/arch/x86_64/include/asm/cmpxchg.h
/DragonOS/kernel/src/arch/x86_64/mm/mod.rs
/DragonOS/kernel/src/arch/x86_64/pci/pci.rs
/DragonOS/kernel/src/common/atomic.h
/DragonOS/kernel/src/common/math/Makefile
/DragonOS/kernel/src/common/printk.h
/DragonOS/kernel/src/common/time.h
/DragonOS/kernel/src/debug/Makefile
/DragonOS/kernel/src/debug/kallsyms.c
/DragonOS/kernel/src/debug/traceback/traceback.h
/DragonOS/kernel/src/driver/acpi/Makefile
block/block_device.rs
block/disk_info.rs
block/mod.rs
char/mod.rs
device/bus.rs
device/driver.rs
device/init.rs
device/mod.rs
map/mod.rs
mod.rs
platform/mod.rs
platform/platform_device.rs
platform/platform_driver.rs
/DragonOS/kernel/src/driver/disk/Makefile
/DragonOS/kernel/src/driver/disk/ahci/ahci.h
/DragonOS/kernel/src/driver/disk/ahci/ahci_inode.rs
/DragonOS/kernel/src/driver/disk/ahci/ahcidisk.rs
/DragonOS/kernel/src/driver/disk/ahci/mod.rs
/DragonOS/kernel/src/driver/interrupt/apic/apic.c
/DragonOS/kernel/src/driver/keyboard/Makefile
/DragonOS/kernel/src/driver/mod.rs
/DragonOS/kernel/src/driver/mouse/Makefile
/DragonOS/kernel/src/driver/multiboot2/Makefile
/DragonOS/kernel/src/driver/multiboot2/multiboot2.c
/DragonOS/kernel/src/driver/net/virtio_net.rs
/DragonOS/kernel/src/driver/pci/Makefile
/DragonOS/kernel/src/driver/pci/pci.rs
/DragonOS/kernel/src/driver/pci/pci_irq.c
/DragonOS/kernel/src/driver/pci/pci_irq.rs
/DragonOS/kernel/src/driver/timers/HPET/HPET.c
/DragonOS/kernel/src/driver/tty/tty_device.rs
/DragonOS/kernel/src/driver/uart/mod.rs
/DragonOS/kernel/src/driver/uart/uart_device.rs
/DragonOS/kernel/src/driver/uart/uart_driver.rs
/DragonOS/kernel/src/driver/video/Makefile
/DragonOS/kernel/src/driver/video/video.c
/DragonOS/kernel/src/driver/video/video.h
/DragonOS/kernel/src/driver/virtio/transport_pci.rs
/DragonOS/kernel/src/driver/virtio/virtio.rs
/DragonOS/kernel/src/exception/softirq.rs
/DragonOS/kernel/src/filesystem/devfs/mod.rs
/DragonOS/kernel/src/filesystem/devfs/null_dev.rs
/DragonOS/kernel/src/filesystem/devfs/zero_dev.rs
/DragonOS/kernel/src/filesystem/fat/bpb.rs
/DragonOS/kernel/src/filesystem/fat/entry.rs
/DragonOS/kernel/src/filesystem/fat/fs.rs
/DragonOS/kernel/src/filesystem/procfs/mod.rs
/DragonOS/kernel/src/filesystem/ramfs/mod.rs
/DragonOS/kernel/src/filesystem/sysfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/core.rs
/DragonOS/kernel/src/filesystem/vfs/fcntl.rs
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/filesystem/vfs/io/Makefile
/DragonOS/kernel/src/filesystem/vfs/io/block/Makefile
/DragonOS/kernel/src/filesystem/vfs/io/block/mod.rs
/DragonOS/kernel/src/filesystem/vfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/syscall.rs
/DragonOS/kernel/src/head.S
/DragonOS/kernel/src/include/bindings/wrapper.h
/DragonOS/kernel/src/ipc/pipe.rs
/DragonOS/kernel/src/ipc/syscall.rs
/DragonOS/kernel/src/ktest/Makefile
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/Makefile
/DragonOS/kernel/src/libs/elf.rs
/DragonOS/kernel/src/libs/lib_ui/font/binaries/spleen-8x16.raw_bytes
/DragonOS/kernel/src/libs/lib_ui/font/mod.rs
/DragonOS/kernel/src/libs/lib_ui/font/spleen_font.rs
/DragonOS/kernel/src/libs/lib_ui/mod.rs
/DragonOS/kernel/src/libs/lib_ui/screen_manager.h
/DragonOS/kernel/src/libs/lib_ui/screen_manager.rs
/DragonOS/kernel/src/libs/lib_ui/textui.h
/DragonOS/kernel/src/libs/lib_ui/textui.rs
/DragonOS/kernel/src/libs/lib_ui/textui_no_alloc.rs
/DragonOS/kernel/src/libs/mod.rs
/DragonOS/kernel/src/libs/notifier.rs
/DragonOS/kernel/src/libs/once.rs
/DragonOS/kernel/src/libs/printk.c
/DragonOS/kernel/src/libs/printk.rs
/DragonOS/kernel/src/libs/rwlock.rs
/DragonOS/kernel/src/libs/spinlock.rs
/DragonOS/kernel/src/libs/vec_cursor.rs
/DragonOS/kernel/src/link.lds
/DragonOS/kernel/src/main.c
/DragonOS/kernel/src/mm/allocator/buddy.rs
/DragonOS/kernel/src/mm/kernel_mapper.rs
/DragonOS/kernel/src/mm/mm.h
/DragonOS/kernel/src/mm/mmio_buddy.rs
/DragonOS/kernel/src/mm/mod.rs
/DragonOS/kernel/src/mm/no_init.rs
/DragonOS/kernel/src/mm/page.rs
/DragonOS/kernel/src/mm/percpu.rs
/DragonOS/kernel/src/mm/syscall.rs
/DragonOS/kernel/src/mm/ucontext.rs
/DragonOS/kernel/src/net/socket.rs
/DragonOS/kernel/src/process/exec.rs
/DragonOS/kernel/src/process/process.rs
/DragonOS/kernel/src/process/syscall.rs
/DragonOS/kernel/src/syscall/Makefile
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/kernel/src/syscall/syscall_num.h
/DragonOS/kernel/src/syscall/user_access.rs
/DragonOS/kernel/src/time/syscall.rs
/DragonOS/kernel/src/time/timekeeping.rs
/DragonOS/tools/.gdbinit
/DragonOS/tools/bootstrap.sh
/DragonOS/tools/build_gcc_toolchain.sh
/DragonOS/tools/grub_auto_install.sh
/DragonOS/user/Makefile
/DragonOS/user/apps/Makefile
/DragonOS/user/apps/about/about.c
/DragonOS/user/apps/http_server/Makefile
/DragonOS/user/apps/shell/cmd.c
/DragonOS/user/apps/shell/cmd_test.c
/DragonOS/user/apps/shell/cmd_test.h
/DragonOS/user/apps/shell/shell.c
/DragonOS/user/apps/test_bind/Makefile
/DragonOS/user/apps/test_bind/link.lds
/DragonOS/user/apps/test_bind/main.c
/DragonOS/user/apps/test_fstat/Makefile
/DragonOS/user/apps/test_fstat/link.lds
/DragonOS/user/apps/test_fstat/main.c
/DragonOS/user/apps/test_gettimeofday/Makefile
/DragonOS/user/apps/test_relibc/Makefile
/DragonOS/user/apps/test_sqlite3/.gitignore
/DragonOS/user/apps/test_sqlite3/Makefile
/DragonOS/user/apps/test_sqlite3/main.c
/DragonOS/user/apps/test_uart/Makefile
/DragonOS/user/apps/test_uart/link.lds
/DragonOS/user/apps/test_uart/main.c
/DragonOS/user/dadk/config/relibc-0.1.0.dadk
/DragonOS/user/dadk/config/test_bind-0.1.0.dadk
/DragonOS/user/dadk/config/test_fstat-0.1.0.dadk
/DragonOS/user/dadk/config/test_sqlite3-3.42.0.dadk
/DragonOS/user/dadk/config/test_uart-0.1.0.dadk
/DragonOS/user/libs/Makefile
/DragonOS/user/libs/libc/Makefile
/DragonOS/user/libs/libc/build.rs
/DragonOS/user/libs/libc/src/Makefile
/DragonOS/user/libs/libc/src/include/export/unistd.h
/DragonOS/user/libs/libc/src/include/internal/bindings/mod.rs
/DragonOS/user/libs/libc/src/include/internal/mod.rs
/DragonOS/user/libs/libc/src/include/mod.rs
/DragonOS/user/libs/libc/src/unistd.c
40fe15e022-Jul-2023 LoGin <longjin@DragonOS.org>

新的内存管理模块 (#303)

&emsp;&emsp;实现了具有优秀架构设计的新的内存管理模块,对内核空间和用户空间的内存映射、分配、释放、管理等操作进行了封装,使得内核开发者可以更加方便地进行内存管理。

&emsp;&emsp;内存管理模块主要由以下类型的组件组成:

- **硬件抽象层(MemoryManagementArch)** - 提供对具体处理器架构的抽象,使得内存管理

新的内存管理模块 (#303)

&emsp;&emsp;实现了具有优秀架构设计的新的内存管理模块,对内核空间和用户空间的内存映射、分配、释放、管理等操作进行了封装,使得内核开发者可以更加方便地进行内存管理。

&emsp;&emsp;内存管理模块主要由以下类型的组件组成:

- **硬件抽象层(MemoryManagementArch)** - 提供对具体处理器架构的抽象,使得内存管理模块可以在不同的处理器架构上运行
- **页面映射器(PageMapper)**- 提供对虚拟地址和物理地址的映射,以及页表的创建、填写、销毁、权限管理等操作。分为两种类型:内核页表映射器(KernelMapper)和用户页表映射器(位于具体的用户地址空间结构中)
- **页面刷新器(PageFlusher)** - 提供对页表的刷新操作(整表刷新、单页刷新、跨核心刷新)
- **页帧分配器(FrameAllocator)** - 提供对页帧的分配、释放、管理等操作。具体来说,包括BumpAllocator、BuddyAllocator
- **小对象分配器** - 提供对小内存对象的分配、释放、管理等操作。指的是内核里面的SlabAllocator (SlabAllocator的实现目前还没有完成)
- **MMIO空间管理器** - 提供对MMIO地址空间的分配、管理操作。(目前这个模块待进一步重构)
- **用户地址空间管理机制** - 提供对用户地址空间的管理。
- VMA机制 - 提供对用户地址空间的管理,包括VMA的创建、销毁、权限管理等操作
- 用户映射管理 - 与VMA机制共同作用,管理用户地址空间的映射
- **系统调用层** - 提供对用户空间的内存管理系统调用,包括mmap、munmap、mprotect、mremap等
- **C接口兼容层** - 提供对原有的C代码的接口,是的C代码能够正常运行。


除上面的新增内容以外,其它的更改内容:
- 新增二进制加载器,以及elf的解析器
- 解决由于local_irq_save、local_irq_restore函数的汇编不规范导致影响栈行为的bug。
- 解决local_irq_save未关中断的错误。
- 修复sys_gettimeofday对timezone参数的处理的bug

---------

Co-authored-by: kong <kongweichao@dragonos.org>

show more ...


/DragonOS/.vscode/settings.json
/DragonOS/Makefile
/DragonOS/README.md
/DragonOS/README_EN.md
/DragonOS/docs/community/contact/index.rst
/DragonOS/docs/introduction/build_system.md
/DragonOS/docs/introduction/features.md
/DragonOS/docs/introduction/index.rst
/DragonOS/docs/kernel/core_api/index.rst
/DragonOS/docs/kernel/memory_management/allocate-memory.md
/DragonOS/docs/kernel/memory_management/index.rst
/DragonOS/docs/kernel/memory_management/intro.md
/DragonOS/docs/kernel/process_management/index.rst
/DragonOS/docs/kernel/process_management/load_binary.md
/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/src/Makefile
/DragonOS/kernel/src/arch/mod.rs
/DragonOS/kernel/src/arch/x86_64/asm/irqflags.rs
/DragonOS/kernel/src/arch/x86_64/context.rs
/DragonOS/kernel/src/arch/x86_64/fpu.rs
/DragonOS/kernel/src/arch/x86_64/interrupt/mod.rs
/DragonOS/kernel/src/arch/x86_64/libs/mod.rs
/DragonOS/kernel/src/arch/x86_64/mm/mod.rs
/DragonOS/kernel/src/arch/x86_64/mod.rs
/DragonOS/kernel/src/arch/x86_64/msi.rs
/DragonOS/kernel/src/arch/x86_64/syscall.rs
/DragonOS/kernel/src/common/atomic.h
/DragonOS/kernel/src/driver/acpi/acpi.c
char/mod.rs
device/mod.rs
/DragonOS/kernel/src/driver/disk/ahci/ahci.c
/DragonOS/kernel/src/driver/interrupt/apic/apic.c
/DragonOS/kernel/src/driver/pci/msi.c
/DragonOS/kernel/src/driver/pci/pci.rs
/DragonOS/kernel/src/driver/pci/pci_irq.rs
/DragonOS/kernel/src/driver/uart/uart.rs
/DragonOS/kernel/src/driver/video/video.c
/DragonOS/kernel/src/driver/virtio/virtio_impl.rs
/DragonOS/kernel/src/exception/mod.rs
/DragonOS/kernel/src/exception/softirq.rs
/DragonOS/kernel/src/filesystem/procfs/mod.rs
/DragonOS/kernel/src/filesystem/sysfs/bus.rs
/DragonOS/kernel/src/filesystem/vfs/VFS.h
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/head.S
/DragonOS/kernel/src/include/bindings/wrapper.h
/DragonOS/kernel/src/ipc/signal.rs
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/align.rs
/DragonOS/kernel/src/libs/elf.rs
/DragonOS/kernel/src/libs/libUI/screen_manager.c
/DragonOS/kernel/src/libs/libUI/screen_manager.h
/DragonOS/kernel/src/libs/libUI/textui.c
/DragonOS/kernel/src/libs/libUI/textui.h
/DragonOS/kernel/src/libs/mod.rs
/DragonOS/kernel/src/libs/printk.c
/DragonOS/kernel/src/libs/printk.rs
/DragonOS/kernel/src/libs/rwlock.rs
/DragonOS/kernel/src/libs/spinlock.rs
/DragonOS/kernel/src/main.c
/DragonOS/kernel/src/mm/allocator/buddy.rs
/DragonOS/kernel/src/mm/allocator/bump.rs
/DragonOS/kernel/src/mm/allocator/kernel_allocator.rs
/DragonOS/kernel/src/mm/allocator/mod.rs
/DragonOS/kernel/src/mm/allocator/page_frame.rs
/DragonOS/kernel/src/mm/allocator/slab.rs
/DragonOS/kernel/src/mm/c_adapter.rs
/DragonOS/kernel/src/mm/kernel_mapper.rs
/DragonOS/kernel/src/mm/mm-types.h
/DragonOS/kernel/src/mm/mm.h
/DragonOS/kernel/src/mm/mmio.h
/DragonOS/kernel/src/mm/mmio_buddy.rs
/DragonOS/kernel/src/mm/mod.rs
/DragonOS/kernel/src/mm/no_init.rs
/DragonOS/kernel/src/mm/page.rs
/DragonOS/kernel/src/mm/slab.h
/DragonOS/kernel/src/mm/syscall.rs
/DragonOS/kernel/src/mm/ucontext.rs
/DragonOS/kernel/src/process/abi.rs
/DragonOS/kernel/src/process/c_adapter.rs
/DragonOS/kernel/src/process/exec.rs
/DragonOS/kernel/src/process/fork.c
/DragonOS/kernel/src/process/fork.rs
/DragonOS/kernel/src/process/mod.rs
/DragonOS/kernel/src/process/proc-types.h
/DragonOS/kernel/src/process/process.c
/DragonOS/kernel/src/process/process.h
/DragonOS/kernel/src/process/process.rs
/DragonOS/kernel/src/sched/cfs.rs
/DragonOS/kernel/src/sched/core.c
/DragonOS/kernel/src/sched/core.rs
/DragonOS/kernel/src/sched/rt.rs
/DragonOS/kernel/src/sched/syscall.rs
/DragonOS/kernel/src/smp/c_adapter.rs
/DragonOS/kernel/src/smp/mod.rs
/DragonOS/kernel/src/smp/smp.c
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/kernel/src/syscall/syscall.c
/DragonOS/kernel/src/syscall/syscall_num.h
/DragonOS/kernel/src/syscall/user_access.rs
/DragonOS/kernel/src/time/clocksource.rs
/DragonOS/kernel/src/time/jiffies.rs
/DragonOS/kernel/src/time/syscall.rs
/DragonOS/kernel/src/time/timekeeping.rs
/DragonOS/kernel/src/time/timer.h
/DragonOS/kernel/src/time/timer.rs
/DragonOS/user/apps/about/about.c
/DragonOS/user/apps/shell/cmd.c
/DragonOS/user/apps/test_relibc/Makefile
/DragonOS/user/libs/libc/src/malloc.c
/DragonOS/user/libs/libc/src/unistd.c
bb5f098a22-Jul-2023 LoGin <longjin@DragonOS.org>

Revert "新的内存管理模块 (#301)" (#302)

This reverts commit d8ad0a5e7724469abd5cc3cf271993538878033e.


/DragonOS/.vscode/settings.json
/DragonOS/Makefile
/DragonOS/README.md
/DragonOS/README_EN.md
/DragonOS/docs/Multiboot2 Specification version 2.0.pdf
/DragonOS/docs/community/contact/index.rst
/DragonOS/docs/introduction/build_system.md
/DragonOS/docs/introduction/features.md
/DragonOS/docs/introduction/index.rst
/DragonOS/docs/kernel/core_api/allocate-memory.md
/DragonOS/docs/kernel/core_api/index.rst
/DragonOS/docs/kernel/core_api/mm-api.md
/DragonOS/docs/kernel/memory_management/index.rst
/DragonOS/docs/kernel/process_management/index.rst
/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/src/Makefile
/DragonOS/kernel/src/arch/mod.rs
/DragonOS/kernel/src/arch/x86_64/asm/irqflags.rs
/DragonOS/kernel/src/arch/x86_64/context.rs
/DragonOS/kernel/src/arch/x86_64/fpu.rs
/DragonOS/kernel/src/arch/x86_64/interrupt/mod.rs
/DragonOS/kernel/src/arch/x86_64/mm/mod.rs
/DragonOS/kernel/src/arch/x86_64/mod.rs
/DragonOS/kernel/src/arch/x86_64/msi.rs
/DragonOS/kernel/src/arch/x86_64/syscall.rs
/DragonOS/kernel/src/common/atomic.h
/DragonOS/kernel/src/driver/acpi/acpi.c
char/mod.rs
device/mod.rs
/DragonOS/kernel/src/driver/disk/ahci/ahci.c
/DragonOS/kernel/src/driver/interrupt/apic/apic.c
/DragonOS/kernel/src/driver/pci/msi.c
/DragonOS/kernel/src/driver/pci/pci.rs
/DragonOS/kernel/src/driver/pci/pci_irq.rs
/DragonOS/kernel/src/driver/uart/uart.rs
/DragonOS/kernel/src/driver/video/video.c
/DragonOS/kernel/src/driver/virtio/virtio_impl.rs
/DragonOS/kernel/src/exception/mod.rs
/DragonOS/kernel/src/exception/softirq.rs
/DragonOS/kernel/src/filesystem/procfs/mod.rs
/DragonOS/kernel/src/filesystem/sysfs/bus.rs
/DragonOS/kernel/src/filesystem/vfs/VFS.h
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/head.S
/DragonOS/kernel/src/include/bindings/wrapper.h
/DragonOS/kernel/src/ipc/signal.rs
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/align.rs
/DragonOS/kernel/src/libs/libUI/screen_manager.c
/DragonOS/kernel/src/libs/libUI/screen_manager.h
/DragonOS/kernel/src/libs/libUI/textui.c
/DragonOS/kernel/src/libs/libUI/textui.h
/DragonOS/kernel/src/libs/mod.rs
/DragonOS/kernel/src/libs/printk.c
/DragonOS/kernel/src/libs/printk.rs
/DragonOS/kernel/src/libs/rwlock.rs
/DragonOS/kernel/src/libs/spinlock.rs
/DragonOS/kernel/src/main.c
/DragonOS/kernel/src/mm/Makefile
/DragonOS/kernel/src/mm/allocator.rs
/DragonOS/kernel/src/mm/internal.h
/DragonOS/kernel/src/mm/mm-stat.c
/DragonOS/kernel/src/mm/mm-types.h
/DragonOS/kernel/src/mm/mm.c
/DragonOS/kernel/src/mm/mm.h
/DragonOS/kernel/src/mm/mmap.c
/DragonOS/kernel/src/mm/mmio.c
/DragonOS/kernel/src/mm/mmio.h
/DragonOS/kernel/src/mm/mmio_buddy.rs
/DragonOS/kernel/src/mm/mod.rs
/DragonOS/kernel/src/mm/slab.c
/DragonOS/kernel/src/mm/slab.h
/DragonOS/kernel/src/mm/syscall.rs
/DragonOS/kernel/src/mm/utils.c
/DragonOS/kernel/src/mm/vma.c
/DragonOS/kernel/src/process/fork.c
/DragonOS/kernel/src/process/fork.rs
/DragonOS/kernel/src/process/mod.rs
/DragonOS/kernel/src/process/proc-types.h
/DragonOS/kernel/src/process/process.c
/DragonOS/kernel/src/process/process.h
/DragonOS/kernel/src/process/process.rs
/DragonOS/kernel/src/sched/cfs.rs
/DragonOS/kernel/src/sched/core.c
/DragonOS/kernel/src/sched/core.rs
/DragonOS/kernel/src/sched/rt.rs
/DragonOS/kernel/src/sched/syscall.rs
/DragonOS/kernel/src/smp/mod.rs
/DragonOS/kernel/src/smp/smp.c
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/kernel/src/syscall/syscall.c
/DragonOS/kernel/src/syscall/syscall_num.h
/DragonOS/kernel/src/time/clocksource.rs
/DragonOS/kernel/src/time/jiffies.rs
/DragonOS/kernel/src/time/syscall.rs
/DragonOS/kernel/src/time/timekeeping.rs
/DragonOS/kernel/src/time/timer.h
/DragonOS/kernel/src/time/timer.rs
/DragonOS/user/apps/about/about.c
/DragonOS/user/apps/shell/cmd.c
/DragonOS/user/apps/test_relibc/Makefile
/DragonOS/user/libs/libc/src/malloc.c
/DragonOS/user/libs/libc/src/unistd.c
d8ad0a5e22-Jul-2023 LoGin <longjin@DragonOS.org>

新的内存管理模块 (#301)

&emsp;&emsp;实现了具有优秀架构设计的新的内存管理模块,对内核空间和用户空间的内存映射、分配、释放、管理等操作进行了封装,使得内核开发者可以更加方便地进行内存管理。

&emsp;&emsp;内存管理模块主要由以下类型的组件组成:

- **硬件抽象层(MemoryManagementArch)** - 提供对具体处理器架构的抽象,使得内存管理

新的内存管理模块 (#301)

&emsp;&emsp;实现了具有优秀架构设计的新的内存管理模块,对内核空间和用户空间的内存映射、分配、释放、管理等操作进行了封装,使得内核开发者可以更加方便地进行内存管理。

&emsp;&emsp;内存管理模块主要由以下类型的组件组成:

- **硬件抽象层(MemoryManagementArch)** - 提供对具体处理器架构的抽象,使得内存管理模块可以在不同的处理器架构上运行
- **页面映射器(PageMapper)**- 提供对虚拟地址和物理地址的映射,以及页表的创建、填写、销毁、权限管理等操作。分为两种类型:内核页表映射器(KernelMapper)和用户页表映射器(位于具体的用户地址空间结构中)
- **页面刷新器(PageFlusher)** - 提供对页表的刷新操作(整表刷新、单页刷新、跨核心刷新)
- **页帧分配器(FrameAllocator)** - 提供对页帧的分配、释放、管理等操作。具体来说,包括BumpAllocator、BuddyAllocator
- **小对象分配器** - 提供对小内存对象的分配、释放、管理等操作。指的是内核里面的SlabAllocator (SlabAllocator的实现目前还没有完成)
- **MMIO空间管理器** - 提供对MMIO地址空间的分配、管理操作。(目前这个模块待进一步重构)
- **用户地址空间管理机制** - 提供对用户地址空间的管理。
- VMA机制 - 提供对用户地址空间的管理,包括VMA的创建、销毁、权限管理等操作
- 用户映射管理 - 与VMA机制共同作用,管理用户地址空间的映射
- **系统调用层** - 提供对用户空间的内存管理系统调用,包括mmap、munmap、mprotect、mremap等
- **C接口兼容层** - 提供对原有的C代码的接口,是的C代码能够正常运行。


除上面的新增内容以外,其它的更改内容:
- 新增二进制加载器,以及elf的解析器
- 解决由于local_irq_save、local_irq_restore函数的汇编不规范导致影响栈行为的bug。
- 解决local_irq_save未关中断的错误。
- 修复sys_gettimeofday对timezone参数的处理的bug

show more ...


/DragonOS/.vscode/settings.json
/DragonOS/Makefile
/DragonOS/README.md
/DragonOS/README_EN.md
/DragonOS/docs/community/contact/index.rst
/DragonOS/docs/introduction/build_system.md
/DragonOS/docs/introduction/features.md
/DragonOS/docs/introduction/index.rst
/DragonOS/docs/kernel/core_api/index.rst
/DragonOS/docs/kernel/memory_management/allocate-memory.md
/DragonOS/docs/kernel/memory_management/index.rst
/DragonOS/docs/kernel/memory_management/intro.md
/DragonOS/docs/kernel/process_management/index.rst
/DragonOS/docs/kernel/process_management/load_binary.md
/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/src/Makefile
/DragonOS/kernel/src/arch/mod.rs
/DragonOS/kernel/src/arch/x86_64/asm/irqflags.rs
/DragonOS/kernel/src/arch/x86_64/context.rs
/DragonOS/kernel/src/arch/x86_64/fpu.rs
/DragonOS/kernel/src/arch/x86_64/interrupt/mod.rs
/DragonOS/kernel/src/arch/x86_64/libs/mod.rs
/DragonOS/kernel/src/arch/x86_64/mm/mod.rs
/DragonOS/kernel/src/arch/x86_64/mod.rs
/DragonOS/kernel/src/arch/x86_64/msi.rs
/DragonOS/kernel/src/arch/x86_64/syscall.rs
/DragonOS/kernel/src/common/atomic.h
/DragonOS/kernel/src/driver/acpi/acpi.c
char/mod.rs
device/mod.rs
/DragonOS/kernel/src/driver/disk/ahci/ahci.c
/DragonOS/kernel/src/driver/interrupt/apic/apic.c
/DragonOS/kernel/src/driver/pci/msi.c
/DragonOS/kernel/src/driver/pci/pci.rs
/DragonOS/kernel/src/driver/pci/pci_irq.rs
/DragonOS/kernel/src/driver/uart/uart.rs
/DragonOS/kernel/src/driver/video/video.c
/DragonOS/kernel/src/driver/virtio/virtio_impl.rs
/DragonOS/kernel/src/exception/mod.rs
/DragonOS/kernel/src/exception/softirq.rs
/DragonOS/kernel/src/filesystem/procfs/mod.rs
/DragonOS/kernel/src/filesystem/sysfs/bus.rs
/DragonOS/kernel/src/filesystem/vfs/VFS.h
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/head.S
/DragonOS/kernel/src/include/bindings/wrapper.h
/DragonOS/kernel/src/ipc/signal.rs
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/align.rs
/DragonOS/kernel/src/libs/elf.rs
/DragonOS/kernel/src/libs/libUI/screen_manager.c
/DragonOS/kernel/src/libs/libUI/screen_manager.h
/DragonOS/kernel/src/libs/libUI/textui.c
/DragonOS/kernel/src/libs/libUI/textui.h
/DragonOS/kernel/src/libs/mod.rs
/DragonOS/kernel/src/libs/printk.c
/DragonOS/kernel/src/libs/printk.rs
/DragonOS/kernel/src/libs/rwlock.rs
/DragonOS/kernel/src/libs/spinlock.rs
/DragonOS/kernel/src/main.c
/DragonOS/kernel/src/mm/allocator/buddy.rs
/DragonOS/kernel/src/mm/allocator/bump.rs
/DragonOS/kernel/src/mm/allocator/kernel_allocator.rs
/DragonOS/kernel/src/mm/allocator/mod.rs
/DragonOS/kernel/src/mm/allocator/page_frame.rs
/DragonOS/kernel/src/mm/allocator/slab.rs
/DragonOS/kernel/src/mm/c_adapter.rs
/DragonOS/kernel/src/mm/kernel_mapper.rs
/DragonOS/kernel/src/mm/mm-types.h
/DragonOS/kernel/src/mm/mm.h
/DragonOS/kernel/src/mm/mmio.h
/DragonOS/kernel/src/mm/mmio_buddy.rs
/DragonOS/kernel/src/mm/mod.rs
/DragonOS/kernel/src/mm/no_init.rs
/DragonOS/kernel/src/mm/page.rs
/DragonOS/kernel/src/mm/slab.h
/DragonOS/kernel/src/mm/syscall.rs
/DragonOS/kernel/src/mm/ucontext.rs
/DragonOS/kernel/src/process/abi.rs
/DragonOS/kernel/src/process/c_adapter.rs
/DragonOS/kernel/src/process/exec.rs
/DragonOS/kernel/src/process/fork.c
/DragonOS/kernel/src/process/fork.rs
/DragonOS/kernel/src/process/mod.rs
/DragonOS/kernel/src/process/proc-types.h
/DragonOS/kernel/src/process/process.c
/DragonOS/kernel/src/process/process.h
/DragonOS/kernel/src/process/process.rs
/DragonOS/kernel/src/sched/cfs.rs
/DragonOS/kernel/src/sched/core.c
/DragonOS/kernel/src/sched/core.rs
/DragonOS/kernel/src/sched/rt.rs
/DragonOS/kernel/src/sched/syscall.rs
/DragonOS/kernel/src/smp/c_adapter.rs
/DragonOS/kernel/src/smp/mod.rs
/DragonOS/kernel/src/smp/smp.c
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/kernel/src/syscall/syscall.c
/DragonOS/kernel/src/syscall/syscall_num.h
/DragonOS/kernel/src/syscall/user_access.rs
/DragonOS/kernel/src/time/clocksource.rs
/DragonOS/kernel/src/time/jiffies.rs
/DragonOS/kernel/src/time/syscall.rs
/DragonOS/kernel/src/time/timekeeping.rs
/DragonOS/kernel/src/time/timer.h
/DragonOS/kernel/src/time/timer.rs
/DragonOS/user/apps/about/about.c
/DragonOS/user/apps/shell/cmd.c
/DragonOS/user/apps/test_relibc/Makefile
/DragonOS/user/libs/libc/src/malloc.c
/DragonOS/user/libs/libc/src/unistd.c
0663027b12-Jul-2023 TingHuang <92705854+TingSHub@users.noreply.github.com>

注册串口设备,创建字符设备框架(#290)

* 按照rust规范修改两个函数名称

* 修改一些函数句柄以符合rust规范

* 添加字符设备相关

* 添加字符设备相关文件

* 添加字符设备驱动框架代码

* 将串口注册

* 规范代码


/DragonOS/.github/ISSUE_TEMPLATE/bug_report.md
/DragonOS/.github/ISSUE_TEMPLATE/请求新功能.md
/DragonOS/.github/workflows/makefile.yml
/DragonOS/.vscode/c_cpp_properties.json
/DragonOS/Makefile
/DragonOS/README.md
/DragonOS/README_EN.md
/DragonOS/docs/community/ChangeLog/V0.1.x/V0.1.7.md
/DragonOS/docs/community/ChangeLog/index.rst
/DragonOS/docs/kernel/sched/cfs.md
/DragonOS/kernel/rust-toolchain.toml
/DragonOS/kernel/src/Makefile
/DragonOS/kernel/src/arch/x86_64/asm/irqflags.rs
/DragonOS/kernel/src/arch/x86_64/cpu.rs
/DragonOS/kernel/src/arch/x86_64/fpu.rs
/DragonOS/kernel/src/arch/x86_64/interrupt/ipi.rs
/DragonOS/kernel/src/arch/x86_64/interrupt/mod.rs
/DragonOS/kernel/src/arch/x86_64/mod.rs
/DragonOS/kernel/src/arch/x86_64/msi.rs
/DragonOS/kernel/src/arch/x86_64/pci/pci.rs
/DragonOS/kernel/src/arch/x86_64/syscall.rs
/DragonOS/kernel/src/common/cpu.h
/DragonOS/kernel/src/driver/Makefile
char/mod.rs
device/bus.rs
device/driver.rs
device/mod.rs
map/mod.rs
mod.rs
platform/mod.rs
platform/platform_device.rs
platform/platform_driver.rs
/DragonOS/kernel/src/driver/disk/ahci/ahcidisk.rs
/DragonOS/kernel/src/driver/interrupt/apic/apic.c
/DragonOS/kernel/src/driver/interrupt/apic/apic.h
/DragonOS/kernel/src/driver/pci/Makefile
/DragonOS/kernel/src/driver/pci/mod.rs
/DragonOS/kernel/src/driver/pci/pci.rs
/DragonOS/kernel/src/driver/pci/pci_irq.c
/DragonOS/kernel/src/driver/pci/pci_irq.h
/DragonOS/kernel/src/driver/pci/pci_irq.rs
/DragonOS/kernel/src/driver/timers/HPET/HPET.c
/DragonOS/kernel/src/driver/timers/rtc/rtc.rs
/DragonOS/kernel/src/driver/tty/mod.rs
/DragonOS/kernel/src/driver/uart/uart.rs
/DragonOS/kernel/src/driver/virtio/transport_pci.rs
/DragonOS/kernel/src/exception/entry.S
/DragonOS/kernel/src/exception/ipi.rs
/DragonOS/kernel/src/exception/mod.rs
/DragonOS/kernel/src/exception/softirq.rs
/DragonOS/kernel/src/filesystem/sysfs/bus.rs
/DragonOS/kernel/src/filesystem/sysfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/core.rs
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/filesystem/vfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/syscall.rs
/DragonOS/kernel/src/include/bindings/wrapper.h
/DragonOS/kernel/src/ipc/signal.rs
/DragonOS/kernel/src/ipc/syscall.rs
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/align.rs
/DragonOS/kernel/src/libs/cpu.c
/DragonOS/kernel/src/libs/int_like.rs
/DragonOS/kernel/src/libs/mod.rs
/DragonOS/kernel/src/libs/spinlock.rs
/DragonOS/kernel/src/libs/volatile.rs
/DragonOS/kernel/src/main.c
/DragonOS/kernel/src/mm/mm-stat.c
/DragonOS/kernel/src/mm/mod.rs
/DragonOS/kernel/src/mm/syscall.rs
/DragonOS/kernel/src/net/net_core.rs
/DragonOS/kernel/src/net/syscall.rs
/DragonOS/kernel/src/process/mod.rs
/DragonOS/kernel/src/process/pid.rs
/DragonOS/kernel/src/process/process.c
/DragonOS/kernel/src/process/syscall.rs
/DragonOS/kernel/src/sched/cfs.rs
/DragonOS/kernel/src/sched/core.rs
/DragonOS/kernel/src/sched/mod.rs
/DragonOS/kernel/src/sched/rt.rs
/DragonOS/kernel/src/sched/syscall.rs
/DragonOS/kernel/src/smp/mod.rs
/DragonOS/kernel/src/smp/smp.c
/DragonOS/kernel/src/smp/smp.h
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/kernel/src/syscall/syscall.c
/DragonOS/kernel/src/syscall/syscall.h
/DragonOS/kernel/src/syscall/syscall_num.h
/DragonOS/kernel/src/time/Makefile
/DragonOS/kernel/src/time/clocksource.c
/DragonOS/kernel/src/time/clocksource.h
/DragonOS/kernel/src/time/clocksource.rs
/DragonOS/kernel/src/time/jiffies.h
/DragonOS/kernel/src/time/jiffies.rs
/DragonOS/kernel/src/time/mod.rs
/DragonOS/kernel/src/time/sleep.h
/DragonOS/kernel/src/time/sleep.rs
/DragonOS/kernel/src/time/syscall.rs
/DragonOS/kernel/src/time/timeconv.rs
/DragonOS/kernel/src/time/timekeeping.h
/DragonOS/kernel/src/time/timekeeping.rs
/DragonOS/kernel/src/time/timer.h
/DragonOS/kernel/src/time/timer.rs
/DragonOS/rust-toolchain.toml
/DragonOS/tools/bootstrap.sh
/DragonOS/tools/change_rust_src.sh
/DragonOS/tools/write_disk_image.sh
/DragonOS/user/Makefile
/DragonOS/user/apps/about/Makefile
/DragonOS/user/apps/about/about.c
/DragonOS/user/apps/http_server/Makefile
/DragonOS/user/apps/http_server/link.lds
/DragonOS/user/apps/http_server/main.c
/DragonOS/user/apps/shell/Makefile
/DragonOS/user/apps/test_gettimeofday/Makefile
/DragonOS/user/apps/test_gettimeofday/link.lds
/DragonOS/user/apps/test_gettimeofday/main.c
/DragonOS/user/apps/test_relibc/Makefile
/DragonOS/user/apps/test_signal/Makefile
/DragonOS/user/dadk/config/.gitignore
/DragonOS/user/dadk/config/http_server-0.1.0.dadk
/DragonOS/user/dadk/config/relibc-0.1.0.dadk
/DragonOS/user/dadk/config/test_gettimeofday-0.1.0.dadk
/DragonOS/user/dadk/config/test_relibc-0.1.0.dadk
e0de0fd623-Apr-2023 TingHuang <92705854+TingSHub@users.noreply.github.com>

根据sysfs完善设备驱动模型 & 添加sysfs官方文档 (#254)

* 根据sysfs完善设备驱动模型

* 添加sysfs官方文档

dd9f1fc121-Apr-2023 TingHuang <92705854+TingSHub@users.noreply.github.com>

新增SysFS (#250)

* 添加sysfs

* 注册sysfs

* 添加sysfs相关

* 添加rust-anlyzer辅助配置

* 将设备与sysfs相关联

* 添加单独的文件管理sysfs下的文件夹


/DragonOS/.gitignore
/DragonOS/.vscode/settings.json
/DragonOS/docs/kernel/core_api/casting.md
/DragonOS/docs/kernel/core_api/index.rst
/DragonOS/docs/kernel/core_api/softirq.md
/DragonOS/docs/kernel/sched/index.rst
/DragonOS/docs/kernel/sched/kernel_timer.md
/DragonOS/kernel/src/arch/mod.rs
/DragonOS/kernel/src/arch/x86_64/pci/pci.rs
/DragonOS/kernel/src/common/errno.h
device/bus.rs
device/mod.rs
platform/mod.rs
/DragonOS/kernel/src/driver/disk/ahci/ahci_inode.rs
/DragonOS/kernel/src/driver/keyboard/ps2_keyboard.rs
/DragonOS/kernel/src/driver/net/virtio_net.rs
/DragonOS/kernel/src/driver/pci/pci.rs
/DragonOS/kernel/src/driver/tty/tty_device.rs
/DragonOS/kernel/src/driver/usb/xhci/xhci.c
/DragonOS/kernel/src/driver/virtio/virtio.rs
/DragonOS/kernel/src/exception/softirq.h
/DragonOS/kernel/src/exception/softirq.rs
/DragonOS/kernel/src/exception/trap.c
/DragonOS/kernel/src/filesystem/devfs/mod.rs
/DragonOS/kernel/src/filesystem/devfs/null_dev.rs
/DragonOS/kernel/src/filesystem/devfs/zero_dev.rs
/DragonOS/kernel/src/filesystem/fat/fs.rs
/DragonOS/kernel/src/filesystem/mod.rs
/DragonOS/kernel/src/filesystem/procfs/mod.rs
/DragonOS/kernel/src/filesystem/ramfs/mod.rs
/DragonOS/kernel/src/filesystem/sysfs/bus.rs
/DragonOS/kernel/src/filesystem/sysfs/class.rs
/DragonOS/kernel/src/filesystem/sysfs/devices.rs
/DragonOS/kernel/src/filesystem/sysfs/fs.rs
/DragonOS/kernel/src/filesystem/sysfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/core.rs
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/filesystem/vfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/syscall.rs
/DragonOS/kernel/src/ipc/signal.rs
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/casting.rs
/DragonOS/kernel/src/libs/lockref.rs
/DragonOS/kernel/src/libs/mod.rs
/DragonOS/kernel/src/libs/spinlock.rs
/DragonOS/kernel/src/libs/wait_queue.rs
/DragonOS/kernel/src/mm/allocator.rs
/DragonOS/kernel/src/net/mod.rs
/DragonOS/kernel/src/net/net_core.rs
/DragonOS/kernel/src/net/socket.rs
/DragonOS/kernel/src/net/syscall.rs
/DragonOS/kernel/src/process/process.c
/DragonOS/kernel/src/process/process.rs
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/kernel/src/syscall/syscall.c
/DragonOS/kernel/src/syscall/syscall_num.h
/DragonOS/kernel/src/time/timer.rs
/DragonOS/tools/bootstrap.sh
/DragonOS/tools/qemu/ifdown-nat
/DragonOS/tools/qemu/ifup-nat
/DragonOS/tools/run-qemu.sh
/DragonOS/user/apps/shell/cmd.c
/DragonOS/user/apps/test_relibc/Makefile
/DragonOS/user/apps/test_relibc/link.lds
/DragonOS/user/apps/test_relibc/main.c
/DragonOS/user/libs/libc/src/include/export/errno.h
/DragonOS/user/libs/libc/src/malloc.c
/DragonOS/user/libs/libc/src/unistd.c
/DragonOS/user/libs/libsystem/syscall.h
13776c1110-Apr-2023 login <longjin@DragonOS.org>

增加对dhcpv4的支持(tcp、udp socket已写好,但由于缺少epoll机制,尚未完整测试) (#237)

* 为virtio网卡完成smoltcp的phy层配置

* raw socket

* 初步写完udp和tcp socket

* 能够正常通过dhcp获取ipv4地址(具有全局iface btree)

---------

Co-authored-by

增加对dhcpv4的支持(tcp、udp socket已写好,但由于缺少epoll机制,尚未完整测试) (#237)

* 为virtio网卡完成smoltcp的phy层配置

* raw socket

* 初步写完udp和tcp socket

* 能够正常通过dhcp获取ipv4地址(具有全局iface btree)

---------

Co-authored-by: guanjinquan <1666320330@qq.com>

show more ...

78bf93f009-Apr-2023 YJwu2023 <yujianwu2019@gmail.com>

pci重构+pcie支持 (#235)

* pci重构+pcie支持

* pci重构测试完成

* 修正makefile的问题

* 小修改

* 修改函数名字


/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/src/arch/mod.rs
/DragonOS/kernel/src/arch/x86_64/asm/current.rs
/DragonOS/kernel/src/arch/x86_64/context.rs
/DragonOS/kernel/src/arch/x86_64/include/asm/current.h
/DragonOS/kernel/src/arch/x86_64/mod.rs
/DragonOS/kernel/src/arch/x86_64/pci/mod.rs
/DragonOS/kernel/src/arch/x86_64/pci/pci.rs
/DragonOS/kernel/src/driver/Makefile
/DragonOS/kernel/src/driver/acpi/acpi.c
/DragonOS/kernel/src/driver/acpi/acpi.h
/DragonOS/kernel/src/driver/acpi/acpi.rs
/DragonOS/kernel/src/driver/acpi/mod.rs
device/bus.rs
device/driver.rs
device/mod.rs
mod.rs
platform/mod.rs
platform/platform_device.rs
platform/platform_driver.rs
/DragonOS/kernel/src/driver/disk/ahci/ahci_inode.rs
/DragonOS/kernel/src/driver/disk/ahci/mod.rs
/DragonOS/kernel/src/driver/keyboard/mod.rs
/DragonOS/kernel/src/driver/mod.rs
/DragonOS/kernel/src/driver/pci/pci.h
/DragonOS/kernel/src/driver/pci/pci.rs
/DragonOS/kernel/src/driver/timers/rtc/rtc.rs
/DragonOS/kernel/src/driver/video/mod.rs
/DragonOS/kernel/src/driver/video/video.c
/DragonOS/kernel/src/driver/virtio/transport_pci.rs
/DragonOS/kernel/src/driver/virtio/virtio.h
/DragonOS/kernel/src/driver/virtio/virtio.rs
/DragonOS/kernel/src/driver/virtio/virtio_impl.rs
/DragonOS/kernel/src/filesystem/devfs/null_dev.rs
/DragonOS/kernel/src/filesystem/devfs/zero_dev.rs
/DragonOS/kernel/src/filesystem/fat/bpb.rs
/DragonOS/kernel/src/filesystem/fat/entry.rs
/DragonOS/kernel/src/filesystem/fat/fs.rs
/DragonOS/kernel/src/filesystem/procfs/mod.rs
/DragonOS/kernel/src/filesystem/ramfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/mount.rs
/DragonOS/kernel/src/io/device.rs
/DragonOS/kernel/src/ipc/signal.rs
/DragonOS/kernel/src/ipc/signal_types.rs
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/lazy_init.rs
/DragonOS/kernel/src/libs/libUI/screen_manager.c
/DragonOS/kernel/src/libs/lockref.rs
/DragonOS/kernel/src/libs/mod.rs
/DragonOS/kernel/src/libs/mutex.rs
/DragonOS/kernel/src/libs/rbtree.rs
/DragonOS/kernel/src/libs/rwlock.rs
/DragonOS/kernel/src/libs/volatile.rs
/DragonOS/kernel/src/main.c
/DragonOS/kernel/src/mm/mmio_buddy.rs
/DragonOS/kernel/src/mm/mod.rs
/DragonOS/kernel/src/process/fork.rs
/DragonOS/kernel/src/process/kthread.c
/DragonOS/kernel/src/process/process.c
/DragonOS/kernel/src/sched/cfs.rs
/DragonOS/kernel/src/sched/core.rs
/DragonOS/kernel/src/syscall/mod.rs
2a7d773d05-Apr-2023 TingHuang <92705854+TingSHub@users.noreply.github.com>

新增设备驱动模型,为设备和驱动提供高层视图 (#227)

* 添加base mod

* 添加设备驱动模型相关文件

* 删除单独的mod文件,使用mod.rs,修改一些格式上的问题

* 移动驱动错误类型到该文件

* 修改一些格式上的问题


/DragonOS/.github/workflows/makefile.yml
/DragonOS/.gitignore
/DragonOS/.vscode/.gitignore
/DragonOS/.vscode/c_cpp_properties.json
/DragonOS/.vscode/settings.json
/DragonOS/LICENSE
/DragonOS/Makefile
/DragonOS/README.md
/DragonOS/README_EN.md
/DragonOS/bochsrc
/DragonOS/bx_enh_dbg.ini
/DragonOS/docs/Makefile
/DragonOS/docs/Multiboot2 Specification version 2.0.pdf
/DragonOS/docs/_static/.gitkeep
/DragonOS/docs/_templates/layout.html
/DragonOS/docs/community/ChangeLog/V0.1.x/V0.1.0.md
/DragonOS/docs/community/ChangeLog/V0.1.x/V0.1.1.md
/DragonOS/docs/community/ChangeLog/V0.1.x/V0.1.2.md
/DragonOS/docs/community/ChangeLog/V0.1.x/V0.1.3.md
/DragonOS/docs/community/ChangeLog/V0.1.x/V0.1.4.md
/DragonOS/docs/community/ChangeLog/V0.1.x/V0.1.5.md
/DragonOS/docs/community/ChangeLog/V0.1.x/V0.1.6.md
/DragonOS/docs/community/ChangeLog/index.rst
/DragonOS/docs/community/code_contribution/c-coding-style.md
/DragonOS/docs/community/code_contribution/index.rst
/DragonOS/docs/community/code_contribution/rust-coding-style.md
/DragonOS/docs/community/code_contribution/the-development-process.md
/DragonOS/docs/community/contact/index.rst
/DragonOS/docs/conf.py
/DragonOS/docs/index.rst
/DragonOS/docs/introduction/build_system.md
/DragonOS/docs/introduction/features.md
/DragonOS/docs/introduction/index.rst
/DragonOS/docs/introduction/mirrors.md
/DragonOS/docs/kernel/boot/bootloader.md
/DragonOS/docs/kernel/boot/index.rst
/DragonOS/docs/kernel/boot/multiboot2.md
/DragonOS/docs/kernel/core_api/allocate-memory.md
/DragonOS/docs/kernel/core_api/atomic.md
/DragonOS/docs/kernel/core_api/data_structures.md
/DragonOS/docs/kernel/core_api/index.rst
/DragonOS/docs/kernel/core_api/kernel_api.md
/DragonOS/docs/kernel/core_api/mm-api.md
/DragonOS/docs/kernel/cpu_arch/index.rst
/DragonOS/docs/kernel/cpu_arch/x86_64/index.rst
/DragonOS/docs/kernel/cpu_arch/x86_64/usb_legacy_support.md
/DragonOS/docs/kernel/debug/index.rst
/DragonOS/docs/kernel/debug/traceback.md
/DragonOS/docs/kernel/filesystem/index.rst
/DragonOS/docs/kernel/filesystem/overview.md
/DragonOS/docs/kernel/filesystem/vfs/api.md
/DragonOS/docs/kernel/filesystem/vfs/design.md
/DragonOS/docs/kernel/filesystem/vfs/index.rst
/DragonOS/docs/kernel/ipc/index.rst
/DragonOS/docs/kernel/ipc/signal.md
/DragonOS/docs/kernel/ktest/index.rst
/DragonOS/docs/kernel/ktest/ktest-framework.md
/DragonOS/docs/kernel/locking/index.rst
/DragonOS/docs/kernel/locking/lockref.md
/DragonOS/docs/kernel/locking/locks.md
/DragonOS/docs/kernel/locking/mutex.md
/DragonOS/docs/kernel/locking/rwlock.md
/DragonOS/docs/kernel/locking/spinlock.md
/DragonOS/docs/kernel/memory_management/index.rst
/DragonOS/docs/kernel/memory_management/mmio.md
/DragonOS/docs/kernel/process_management/index.rst
/DragonOS/docs/kernel/process_management/kthread.md
/DragonOS/docs/kernel/process_management/pcb.md
/DragonOS/docs/kernel/sched/c_waiting.md
/DragonOS/docs/kernel/sched/cfs.md
/DragonOS/docs/kernel/sched/core.md
/DragonOS/docs/kernel/sched/index.rst
/DragonOS/docs/kernel/sched/rt.md
/DragonOS/docs/kernel/sched/rust_waiting.md
/DragonOS/docs/make.bat
/DragonOS/docs/requirements.txt
/DragonOS/docs/syscall_api/index.rst
/DragonOS/docs/syscall_api/intro.md
/DragonOS/docs/userland/libc/apis/api-list/ctype.md
/DragonOS/docs/userland/libc/apis/api-list/dirent.md
/DragonOS/docs/userland/libc/apis/api-list/errno.md
/DragonOS/docs/userland/libc/apis/api-list/fcntl.md
/DragonOS/docs/userland/libc/apis/api-list/math.md
/DragonOS/docs/userland/libc/apis/api-list/printf.md
/DragonOS/docs/userland/libc/apis/api-list/stddef.md
/DragonOS/docs/userland/libc/apis/api-list/stdio.md
/DragonOS/docs/userland/libc/apis/api-list/stdlib.md
/DragonOS/docs/userland/libc/apis/api-list/string.md
/DragonOS/docs/userland/libc/apis/api-list/time.md
/DragonOS/docs/userland/libc/apis/api-list/unistd.md
/DragonOS/docs/userland/libc/apis/index.rst
/DragonOS/docs/userland/libc/design/index.rst
/DragonOS/docs/userland/libc/index.rst
/DragonOS/docs/userland/libc/intro.md
/DragonOS/kernel/.cargo/config.toml
/DragonOS/kernel/.gitignore
/DragonOS/kernel/Cargo.toml
/DragonOS/kernel/Makefile
/DragonOS/kernel/build.rs
/DragonOS/kernel/src/Makefile
/DragonOS/kernel/src/arch/Makefile
/DragonOS/kernel/src/arch/arch.h
/DragonOS/kernel/src/arch/x86_64/Makefile
/DragonOS/kernel/src/arch/x86_64/asm/Makefile
/DragonOS/kernel/src/arch/x86_64/asm/bitops.rs
/DragonOS/kernel/src/arch/x86_64/asm/cmpxchg.c
/DragonOS/kernel/src/arch/x86_64/asm/cmpxchg.rs
/DragonOS/kernel/src/arch/x86_64/asm/current.rs
/DragonOS/kernel/src/arch/x86_64/asm/irqflags.rs
/DragonOS/kernel/src/arch/x86_64/asm/mod.rs
/DragonOS/kernel/src/arch/x86_64/asm/ptrace.rs
/DragonOS/kernel/src/arch/x86_64/asm/spinlock.c
/DragonOS/kernel/src/arch/x86_64/context.rs
/DragonOS/kernel/src/arch/x86_64/cpu.rs
/DragonOS/kernel/src/arch/x86_64/fpu.rs
/DragonOS/kernel/src/arch/x86_64/ia64_msi.c
/DragonOS/kernel/src/arch/x86_64/ia64_msi.h
/DragonOS/kernel/src/arch/x86_64/include/asm/asm.h
/DragonOS/kernel/src/arch/x86_64/include/asm/cmpxchg.h
/DragonOS/kernel/src/arch/x86_64/include/asm/current.h
/DragonOS/kernel/src/arch/x86_64/include/asm/irqflags.h
/DragonOS/kernel/src/arch/x86_64/interrupt/mod.rs
/DragonOS/kernel/src/arch/x86_64/math/bitcount.h
/DragonOS/kernel/src/arch/x86_64/mm/barrier.rs
/DragonOS/kernel/src/arch/x86_64/mm/mod.rs
/DragonOS/kernel/src/arch/x86_64/mod.rs
/DragonOS/kernel/src/arch/x86_64/sched.rs
/DragonOS/kernel/src/arch/x86_64/x86_64-unknown-none.json
/DragonOS/kernel/src/arch/x86_64/x86_64_ipi.c
/DragonOS/kernel/src/arch/x86_64/x86_64_ipi.h
/DragonOS/kernel/src/arch/x86_64/x86_64_pci.c
/DragonOS/kernel/src/arch/x86_64/x86_64_pci.h
/DragonOS/kernel/src/common/Makefile
/DragonOS/kernel/src/common/asm.h
/DragonOS/kernel/src/common/atomic.h
/DragonOS/kernel/src/common/bitree.h
/DragonOS/kernel/src/common/blk_types.h
/DragonOS/kernel/src/common/block.h
/DragonOS/kernel/src/common/boot_info.h
/DragonOS/kernel/src/common/compiler.h
/DragonOS/kernel/src/common/compiler_attributes.h
/DragonOS/kernel/src/common/completion.h
/DragonOS/kernel/src/common/cpu.h
/DragonOS/kernel/src/common/crc16.h
/DragonOS/kernel/src/common/crc32.h
/DragonOS/kernel/src/common/crc64.h
/DragonOS/kernel/src/common/crc7.h
/DragonOS/kernel/src/common/crc8.h
/DragonOS/kernel/src/common/dirent.h
/DragonOS/kernel/src/common/elf.h
/DragonOS/kernel/src/common/err.h
/DragonOS/kernel/src/common/errno.h
/DragonOS/kernel/src/common/fcntl.h
/DragonOS/kernel/src/common/font.h
/DragonOS/kernel/src/common/gfp.h
/DragonOS/kernel/src/common/glib.h
/DragonOS/kernel/src/common/hid.h
/DragonOS/kernel/src/common/idr.h
/DragonOS/kernel/src/common/kfifo.h
/DragonOS/kernel/src/common/kprint.h
/DragonOS/kernel/src/common/kthread.h
/DragonOS/kernel/src/common/list.h
/DragonOS/kernel/src/common/lockref.h
/DragonOS/kernel/src/common/lz4.h
/DragonOS/kernel/src/common/math.h
/DragonOS/kernel/src/common/math/Makefile
/DragonOS/kernel/src/common/math/fabs.c
/DragonOS/kernel/src/common/math/libm.h
/DragonOS/kernel/src/common/math/pow.c
/DragonOS/kernel/src/common/math/round.c
/DragonOS/kernel/src/common/mutex.h
/DragonOS/kernel/src/common/numa.h
/DragonOS/kernel/src/common/printk.h
/DragonOS/kernel/src/common/semaphore.h
/DragonOS/kernel/src/common/spinlock.h
/DragonOS/kernel/src/common/stddef.h
/DragonOS/kernel/src/common/stdio.h
/DragonOS/kernel/src/common/stdlib.h
/DragonOS/kernel/src/common/string.h
/DragonOS/kernel/src/common/sys/types.h
/DragonOS/kernel/src/common/sys/wait.h
/DragonOS/kernel/src/common/time.h
/DragonOS/kernel/src/common/unistd.h
/DragonOS/kernel/src/common/user_namespace.h
/DragonOS/kernel/src/common/wait_queue.h
/DragonOS/kernel/src/debug/.gitignore
/DragonOS/kernel/src/debug/Makefile
/DragonOS/kernel/src/debug/bug.h
/DragonOS/kernel/src/debug/kallsyms.c
/DragonOS/kernel/src/debug/traceback/traceback.c
/DragonOS/kernel/src/debug/traceback/traceback.h
/DragonOS/kernel/src/driver/Makefile
/DragonOS/kernel/src/driver/acpi/Makefile
/DragonOS/kernel/src/driver/acpi/acpi.c
/DragonOS/kernel/src/driver/acpi/acpi.h
device/bus.rs
device/driver.rs
device/mod.rs
mod.rs
platform/mod.rs
platform/platform_device.rs
platform/platform_driver.rs
/DragonOS/kernel/src/driver/disk/Makefile
/DragonOS/kernel/src/driver/disk/ahci/ahci.c
/DragonOS/kernel/src/driver/disk/ahci/ahci.h
/DragonOS/kernel/src/driver/disk/ahci/ahci_inode.rs
/DragonOS/kernel/src/driver/disk/ahci/ahci_rust.h
/DragonOS/kernel/src/driver/disk/ahci/ahcidisk.rs
/DragonOS/kernel/src/driver/disk/ahci/hba.rs
/DragonOS/kernel/src/driver/disk/ahci/mod.rs
/DragonOS/kernel/src/driver/disk/ata.c
/DragonOS/kernel/src/driver/disk/ata.h
/DragonOS/kernel/src/driver/disk/mod.rs
/DragonOS/kernel/src/driver/hid/Makefile
/DragonOS/kernel/src/driver/hid/hidparse.c
/DragonOS/kernel/src/driver/hid/hidstrings.c
/DragonOS/kernel/src/driver/hid/internal.h
/DragonOS/kernel/src/driver/hid/usbhid/Makefile
/DragonOS/kernel/src/driver/interrupt/8259A/8259A.c
/DragonOS/kernel/src/driver/interrupt/8259A/8259A.h
/DragonOS/kernel/src/driver/interrupt/Makefile
/DragonOS/kernel/src/driver/interrupt/apic/apic.c
/DragonOS/kernel/src/driver/interrupt/apic/apic.h
/DragonOS/kernel/src/driver/interrupt/apic/apic_timer.c
/DragonOS/kernel/src/driver/interrupt/apic/apic_timer.h
/DragonOS/kernel/src/driver/keyboard/Makefile
/DragonOS/kernel/src/driver/keyboard/mod.rs
/DragonOS/kernel/src/driver/keyboard/ps2_keyboard.c
/DragonOS/kernel/src/driver/keyboard/ps2_keyboard.h
/DragonOS/kernel/src/driver/keyboard/ps2_keyboard.rs
/DragonOS/kernel/src/driver/mod.rs
/DragonOS/kernel/src/driver/mouse/Makefile
/DragonOS/kernel/src/driver/mouse/ps2_mouse.c
/DragonOS/kernel/src/driver/mouse/ps2_mouse.h
/DragonOS/kernel/src/driver/multiboot2/Makefile
/DragonOS/kernel/src/driver/multiboot2/multiboot2.c
/DragonOS/kernel/src/driver/multiboot2/multiboot2.h
/DragonOS/kernel/src/driver/pci/Makefile
/DragonOS/kernel/src/driver/pci/mod.rs
/DragonOS/kernel/src/driver/pci/msi.c
/DragonOS/kernel/src/driver/pci/msi.h
/DragonOS/kernel/src/driver/pci/pci.c
/DragonOS/kernel/src/driver/pci/pci.h
/DragonOS/kernel/src/driver/pci/pci.rs
/DragonOS/kernel/src/driver/timers/HPET/HPET.c
/DragonOS/kernel/src/driver/timers/HPET/HPET.h
/DragonOS/kernel/src/driver/timers/Makefile
/DragonOS/kernel/src/driver/timers/mod.rs
/DragonOS/kernel/src/driver/timers/rtc/mod.rs
/DragonOS/kernel/src/driver/timers/rtc/rtc.rs
/DragonOS/kernel/src/driver/tty/mod.rs
/DragonOS/kernel/src/driver/tty/tty_device.rs
/DragonOS/kernel/src/driver/uart/mod.rs
/DragonOS/kernel/src/driver/uart/uart.h
/DragonOS/kernel/src/driver/uart/uart.rs
/DragonOS/kernel/src/driver/usb/Makefile
/DragonOS/kernel/src/driver/usb/usb.c
/DragonOS/kernel/src/driver/usb/usb.h
/DragonOS/kernel/src/driver/usb/xhci/internal.h
/DragonOS/kernel/src/driver/usb/xhci/xhci.c
/DragonOS/kernel/src/driver/usb/xhci/xhci.h
/DragonOS/kernel/src/driver/video/Makefile
/DragonOS/kernel/src/driver/video/mod.rs
/DragonOS/kernel/src/driver/video/video.c
/DragonOS/kernel/src/driver/video/video.h
/DragonOS/kernel/src/driver/virtio/Makefile
/DragonOS/kernel/src/driver/virtio/mod.rs
/DragonOS/kernel/src/driver/virtio/transport_pci.rs
/DragonOS/kernel/src/driver/virtio/virtio.c
/DragonOS/kernel/src/driver/virtio/virtio.h
/DragonOS/kernel/src/driver/virtio/virtio.rs
/DragonOS/kernel/src/driver/virtio/virtio_impl.rs
/DragonOS/kernel/src/exception/Makefile
/DragonOS/kernel/src/exception/entry.S
/DragonOS/kernel/src/exception/gate.h
/DragonOS/kernel/src/exception/irq.c
/DragonOS/kernel/src/exception/irq.h
/DragonOS/kernel/src/exception/mod.rs
/DragonOS/kernel/src/exception/softirq.h
/DragonOS/kernel/src/exception/softirq.rs
/DragonOS/kernel/src/exception/trap.c
/DragonOS/kernel/src/exception/trap.h
/DragonOS/kernel/src/filesystem/devfs/mod.rs
/DragonOS/kernel/src/filesystem/devfs/null_dev.rs
/DragonOS/kernel/src/filesystem/devfs/zero_dev.rs
/DragonOS/kernel/src/filesystem/fat/bpb.rs
/DragonOS/kernel/src/filesystem/fat/entry.rs
/DragonOS/kernel/src/filesystem/fat/fs.rs
/DragonOS/kernel/src/filesystem/fat/mod.rs
/DragonOS/kernel/src/filesystem/fat/utils.rs
/DragonOS/kernel/src/filesystem/mbr.rs
/DragonOS/kernel/src/filesystem/mod.rs
/DragonOS/kernel/src/filesystem/procfs/mod.rs
/DragonOS/kernel/src/filesystem/ramfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/VFS.h
/DragonOS/kernel/src/filesystem/vfs/core.rs
/DragonOS/kernel/src/filesystem/vfs/file.rs
/DragonOS/kernel/src/filesystem/vfs/mod.rs
/DragonOS/kernel/src/filesystem/vfs/mount.rs
/DragonOS/kernel/src/filesystem/vfs/syscall.rs
/DragonOS/kernel/src/filesystem/vfs/utils.rs
/DragonOS/kernel/src/head.S
/DragonOS/kernel/src/include/DragonOS/refcount.h
/DragonOS/kernel/src/include/DragonOS/signal.h
/DragonOS/kernel/src/include/DragonOS/stdint.h
/DragonOS/kernel/src/include/bindings/mod.rs
/DragonOS/kernel/src/include/bindings/wrapper.h
/DragonOS/kernel/src/include/mod.rs
/DragonOS/kernel/src/io/Makefile
/DragonOS/kernel/src/io/block/Makefile
/DragonOS/kernel/src/io/block/mod.rs
/DragonOS/kernel/src/io/device.rs
/DragonOS/kernel/src/io/disk_info.rs
/DragonOS/kernel/src/io/mod.rs
/DragonOS/kernel/src/ipc/Makefile
/DragonOS/kernel/src/ipc/mod.rs
/DragonOS/kernel/src/ipc/signal.rs
/DragonOS/kernel/src/ipc/signal_types.rs
/DragonOS/kernel/src/ktest/Makefile
/DragonOS/kernel/src/ktest/ktest.c
/DragonOS/kernel/src/ktest/ktest.h
/DragonOS/kernel/src/ktest/ktest_utils.h
/DragonOS/kernel/src/ktest/test-bitree.c
/DragonOS/kernel/src/ktest/test-idr.c
/DragonOS/kernel/src/ktest/test-kfifo.c
/DragonOS/kernel/src/ktest/test-mutex.c
/DragonOS/kernel/src/lib.rs
/DragonOS/kernel/src/libs/Makefile
/DragonOS/kernel/src/libs/atomic.rs
/DragonOS/kernel/src/libs/bitree.c
/DragonOS/kernel/src/libs/cpu.c
/DragonOS/kernel/src/libs/crc16.c
/DragonOS/kernel/src/libs/crc32.c
/DragonOS/kernel/src/libs/crc64.c
/DragonOS/kernel/src/libs/crc7.c
/DragonOS/kernel/src/libs/crc8.c
/DragonOS/kernel/src/libs/ffi_convert.rs
/DragonOS/kernel/src/libs/glib.c
/DragonOS/kernel/src/libs/idr.c
/DragonOS/kernel/src/libs/keyboard_parser.rs
/DragonOS/kernel/src/libs/kfifo.c
/DragonOS/kernel/src/libs/libELF/Makefile
/DragonOS/kernel/src/libs/libELF/elf.c
/DragonOS/kernel/src/libs/libELF/elf.h
/DragonOS/kernel/src/libs/libUI/Makefile
/DragonOS/kernel/src/libs/libUI/screen_manager.c
/DragonOS/kernel/src/libs/libUI/screen_manager.h
/DragonOS/kernel/src/libs/libUI/textui-render.c
/DragonOS/kernel/src/libs/libUI/textui.c
/DragonOS/kernel/src/libs/libUI/textui.h
/DragonOS/kernel/src/libs/list.rs
/DragonOS/kernel/src/libs/lockref.c
/DragonOS/kernel/src/libs/lockref.rs
/DragonOS/kernel/src/libs/lz4.c
/DragonOS/kernel/src/libs/mod.rs
/DragonOS/kernel/src/libs/mutex.c
/DragonOS/kernel/src/libs/mutex.rs
/DragonOS/kernel/src/libs/printk.c
/DragonOS/kernel/src/libs/printk.rs
/DragonOS/kernel/src/libs/refcount.rs
/DragonOS/kernel/src/libs/rwlock.rs
/DragonOS/kernel/src/libs/semaphore.c
/DragonOS/kernel/src/libs/semaphore.rs
/DragonOS/kernel/src/libs/spinlock.rs
/DragonOS/kernel/src/libs/stdlib.c
/DragonOS/kernel/src/libs/string.c
/DragonOS/kernel/src/libs/sys/Makefile
/DragonOS/kernel/src/libs/sys/wait.c
/DragonOS/kernel/src/libs/unistd.c
/DragonOS/kernel/src/libs/vec_cursor.rs
/DragonOS/kernel/src/libs/volatile.rs
/DragonOS/kernel/src/libs/wait_queue.c
/DragonOS/kernel/src/libs/wait_queue.rs
/DragonOS/kernel/src/libs/wait_queue_head.c
/DragonOS/kernel/src/link.lds
/DragonOS/kernel/src/main.c
/DragonOS/kernel/src/mm/Makefile
/DragonOS/kernel/src/mm/allocator.rs
/DragonOS/kernel/src/mm/gfp.rs
/DragonOS/kernel/src/mm/internal.h
/DragonOS/kernel/src/mm/mm-stat.c
/DragonOS/kernel/src/mm/mm-types.h
/DragonOS/kernel/src/mm/mm.c
/DragonOS/kernel/src/mm/mm.h
/DragonOS/kernel/src/mm/mmap.c
/DragonOS/kernel/src/mm/mmio.c
/DragonOS/kernel/src/mm/mmio.h
/DragonOS/kernel/src/mm/mmio_buddy.rs
/DragonOS/kernel/src/mm/mod.rs
/DragonOS/kernel/src/mm/slab.c
/DragonOS/kernel/src/mm/slab.h
/DragonOS/kernel/src/mm/utils.c
/DragonOS/kernel/src/mm/vma.c
/DragonOS/kernel/src/net/mod.rs
/DragonOS/kernel/src/process/Makefile
/DragonOS/kernel/src/process/fork.c
/DragonOS/kernel/src/process/fork.rs
/DragonOS/kernel/src/process/initial_proc.rs
/DragonOS/kernel/src/process/kthread.c
/DragonOS/kernel/src/process/mod.rs
/DragonOS/kernel/src/process/pid.rs
/DragonOS/kernel/src/process/preempt.h
/DragonOS/kernel/src/process/preempt.rs
/DragonOS/kernel/src/process/proc-types.h
/DragonOS/kernel/src/process/proc.S
/DragonOS/kernel/src/process/process.c
/DragonOS/kernel/src/process/process.h
/DragonOS/kernel/src/process/process.rs
/DragonOS/kernel/src/process/ptrace.h
/DragonOS/kernel/src/sched/Makefile
/DragonOS/kernel/src/sched/cfs.rs
/DragonOS/kernel/src/sched/completion.c
/DragonOS/kernel/src/sched/core.c
/DragonOS/kernel/src/sched/core.rs
/DragonOS/kernel/src/sched/mod.rs
/DragonOS/kernel/src/sched/rt.rs
/DragonOS/kernel/src/sched/sched.h
/DragonOS/kernel/src/smp/Makefile
/DragonOS/kernel/src/smp/apu_boot.S
/DragonOS/kernel/src/smp/core.rs
/DragonOS/kernel/src/smp/ipi.h
/DragonOS/kernel/src/smp/mod.rs
/DragonOS/kernel/src/smp/smp.c
/DragonOS/kernel/src/smp/smp.h
/DragonOS/kernel/src/syscall/Makefile
/DragonOS/kernel/src/syscall/mod.rs
/DragonOS/kernel/src/syscall/syscall.c
/DragonOS/kernel/src/syscall/syscall.h
/DragonOS/kernel/src/syscall/syscall_num.h
/DragonOS/kernel/src/time/mod.rs
/DragonOS/kernel/src/time/sleep.h
/DragonOS/kernel/src/time/sleep.rs
/DragonOS/kernel/src/time/timekeep.rs
/DragonOS/kernel/src/time/timer.h
/DragonOS/kernel/src/time/timer.rs
/DragonOS/tools/.gdbinit
/DragonOS/tools/.gitignore
/DragonOS/tools/Dockerfile
/DragonOS/tools/arch/i386/efi/OVMF-pure-efi.fd
/DragonOS/tools/arch/i386/legacy/.gitkeep
/DragonOS/tools/arch/x86_64/efi/OVMF-pure-efi.fd
/DragonOS/tools/batch_delete_loop.py
/DragonOS/tools/bochsinit
/DragonOS/tools/bootstrap.sh
/DragonOS/tools/build_gcc_toolchain.sh
/DragonOS/tools/build_in_docker.sh
/DragonOS/tools/change_rust_src.sh
/DragonOS/tools/create_hdd_image.sh
/DragonOS/tools/dump_kernel.sh
/DragonOS/tools/grub_auto_install.sh
/DragonOS/tools/init_rust_toolchain.sh
/DragonOS/tools/list_contributors.py
/DragonOS/tools/mount_virt_disk.sh
/DragonOS/tools/run-qemu.sh
/DragonOS/tools/umount_virt_disk.sh
/DragonOS/tools/write_disk_image.sh
/DragonOS/user/Makefile
/DragonOS/user/apps/Makefile
/DragonOS/user/apps/about/.gitignore
/DragonOS/user/apps/about/Makefile
/DragonOS/user/apps/about/about.c
/DragonOS/user/apps/about/about.lds
/DragonOS/user/apps/shell/Makefile
/DragonOS/user/apps/shell/cmd.c
/DragonOS/user/apps/shell/cmd.h
/DragonOS/user/apps/shell/cmd_help.c
/DragonOS/user/apps/shell/cmd_help.h
/DragonOS/user/apps/shell/cmd_test.c
/DragonOS/user/apps/shell/cmd_test.h
/DragonOS/user/apps/shell/shell.c
/DragonOS/user/apps/shell/shell.lds
/DragonOS/user/apps/test_signal/Makefile
/DragonOS/user/apps/test_signal/link.lds
/DragonOS/user/apps/test_signal/main.c
/DragonOS/user/libs/Makefile
/DragonOS/user/libs/libKeyboard/Makefile
/DragonOS/user/libs/libKeyboard/keyboard.c
/DragonOS/user/libs/libKeyboard/keyboard.h
/DragonOS/user/libs/libc/.cargo/config.toml
/DragonOS/user/libs/libc/.gitignore
/DragonOS/user/libs/libc/Cargo.toml
/DragonOS/user/libs/libc/Makefile
/DragonOS/user/libs/libc/build.rs
/DragonOS/user/libs/libc/src/Makefile
/DragonOS/user/libs/libc/src/arch/x86_64/Makefile
/DragonOS/user/libs/libc/src/arch/x86_64/crt0.c
/DragonOS/user/libs/libc/src/arch/x86_64/crti.S
/DragonOS/user/libs/libc/src/arch/x86_64/crtn.S
/DragonOS/user/libs/libc/src/arch/x86_64/x86_64-unknown-none.json
/DragonOS/user/libs/libc/src/ctype.c
/DragonOS/user/libs/libc/src/cxa.c
/DragonOS/user/libs/libc/src/dirent.c
/DragonOS/user/libs/libc/src/errno.c
/DragonOS/user/libs/libc/src/fcntl.c
/DragonOS/user/libs/libc/src/include/export/__libc__.h
/DragonOS/user/libs/libc/src/include/export/ctype.h
/DragonOS/user/libs/libc/src/include/export/dirent.h
/DragonOS/user/libs/libc/src/include/export/errno.h
/DragonOS/user/libs/libc/src/include/export/fcntl.h
/DragonOS/user/libs/libc/src/include/export/libm.h
/DragonOS/user/libs/libc/src/include/export/math.h
/DragonOS/user/libs/libc/src/include/export/printf.h
/DragonOS/user/libs/libc/src/include/export/signal.h
/DragonOS/user/libs/libc/src/include/export/stddef.h
/DragonOS/user/libs/libc/src/include/export/stdint.h
/DragonOS/user/libs/libc/src/include/export/stdio.h
/DragonOS/user/libs/libc/src/include/export/stdlib.h
/DragonOS/user/libs/libc/src/include/export/string.h
/DragonOS/user/libs/libc/src/include/export/sys/stat.h
/DragonOS/user/libs/libc/src/include/export/sys/types.h
/DragonOS/user/libs/libc/src/include/export/sys/wait.h
/DragonOS/user/libs/libc/src/include/export/time.h
/DragonOS/user/libs/libc/src/include/export/unistd.h
/DragonOS/user/libs/libc/src/include/internal/bindings/.gitignore
/DragonOS/user/libs/libc/src/include/internal/bindings/mod.rs
/DragonOS/user/libs/libc/src/include/internal/bindings/wrapper.h
/DragonOS/user/libs/libc/src/include/internal/mod.rs
/DragonOS/user/libs/libc/src/include/mod.rs
/DragonOS/user/libs/libc/src/lib.rs
/DragonOS/user/libs/libc/src/libc_init.c
/DragonOS/user/libs/libc/src/malloc.c
/DragonOS/user/libs/libc/src/math/Makefile
/DragonOS/user/libs/libc/src/math/fabs.c
/DragonOS/user/libs/libc/src/math/pow.c
/DragonOS/user/libs/libc/src/math/round.c
/DragonOS/user/libs/libc/src/printf.c
/DragonOS/user/libs/libc/src/signal.c
/DragonOS/user/libs/libc/src/stdio.c
/DragonOS/user/libs/libc/src/stdlib.c
/DragonOS/user/libs/libc/src/string.c
/DragonOS/user/libs/libc/src/sys/Makefile
/DragonOS/user/libs/libc/src/sys/stat.c
/DragonOS/user/libs/libc/src/sys/wait.c
/DragonOS/user/libs/libc/src/time.c
/DragonOS/user/libs/libc/src/unistd.c
/DragonOS/user/libs/libsystem/Makefile
/DragonOS/user/libs/libsystem/syscall.c
/DragonOS/user/libs/libsystem/syscall.h
/DragonOS/user/port/README.md
/DragonOS/user/port/binutils/2.38/.gitignore
/DragonOS/user/port/binutils/2.38/Dockerfile
/DragonOS/user/port/binutils/2.38/README.md
/DragonOS/user/port/binutils/2.38/build.sh
/DragonOS/user/port/binutils/2.38/run.sh
/DragonOS/user/port/build.sh
/DragonOS/user/port/flex/2.6.4/.gitignore
/DragonOS/user/port/flex/2.6.4/build.sh
/DragonOS/user/port/gcc/11.3.0/.gitignore
/DragonOS/user/port/gcc/11.3.0/build-hosted.sh
/DragonOS/user/port/gmp/6.2.1/build.sh
/DragonOS/user/port/mpc/1.2.1/build.sh
/DragonOS/user/port/mpfr/4.1.1/build.sh
/DragonOS/user/port/pkg-config.sh

12