Commit Graph

3477 Commits

Author SHA1 Message Date
ClawSeven 888853a6de Add mutex primitive and replace mutex in Jinux 2023-04-09 21:16:37 +08:00
ClawSeven 5277886b5d Add Spinlock primitive with disabling IRQ 2023-04-09 21:16:37 +08:00
ClawSeven dbbf3a9db8 Add disabling IRQ 2023-04-09 21:16:37 +08:00
ClawSeven 2ec6a0a5df Add the per-cpu variable interface 2023-04-09 21:16:37 +08:00
Jianfeng Jiang ec80d4ac4e add a banner 2023-04-06 12:17:58 +08:00
Jianfeng Jiang 85076777f0 rewrite function logic with block 2023-04-06 12:17:58 +08:00
Jianfeng Jiang 1a525454ef map all the segments of the ELF in a range 2023-04-06 12:17:58 +08:00
Jianfeng Jiang 9ae2ca4c02 map segments with vnode 2023-04-06 12:17:58 +08:00
Jianfeng Jiang 7bee03f91f fix mapping cow vmo's parent's pages with write access 2023-04-06 12:17:58 +08:00
Jianfeng Jiang d19dc09563 support dynamic linking 2023-04-06 12:17:58 +08:00
Jianfeng Jiang 567ac612e5 support file-backed mmap 2023-04-06 12:17:58 +08:00
Jianfeng Jiang bfaf6bb051 add syscall pread64 2023-04-06 12:17:58 +08:00
Jianfeng Jiang 66d72b0104 support loading shared object 2023-04-06 12:17:58 +08:00
Yuke Peng 5a2f3c94b0 Remove instruction pointer etc functions in UserSpace 2023-04-03 22:12:38 +08:00
Yuke Peng 207bc1e4c2 Enable interrupts when go back with UserEvent::Expcetion 2023-04-03 22:05:04 +08:00
Yuke Peng 9cad3d7252 Remove UserEvent::Fault 2023-04-03 22:05:04 +08:00
Yuke Peng efe88f9d47 Remove the pub access in UserContext's fields 2023-04-03 22:05:04 +08:00
Yuke Peng d7d2d2ce40 Add virtio input device license 2023-04-03 22:05:04 +08:00
Yuke Peng cb1a117681 Extract x86 specific irq code 2023-04-03 22:05:04 +08:00
Yuke Peng b3f4075bec Remove pod 2023-04-03 22:05:04 +08:00
Yuke Peng 4c7449d2c1 Refactor CpuContext; impl CpuException 2023-04-03 22:05:04 +08:00
Yuke Peng fbcfbe19d1 Use target_arch instead of features 2023-04-03 22:05:04 +08:00
Yuke Peng e0c0fc7937 Extract align_ext as a sparated crate 2023-04-03 22:05:04 +08:00
Yuke Peng 0fbad25503 Change the memory layout of CpuContext 2023-04-03 22:05:04 +08:00
Yuke Peng d0268309ff Extract x86-specific code into arch/x86 2023-04-03 22:05:04 +08:00
Yuke Peng b01987c721 Extract framebuffer out of framework 2023-04-03 22:05:04 +08:00
Yuke Peng bed56703de Extract RTC out of framework 2023-04-03 22:05:04 +08:00
LI Qing b02b29dde7 Add ProcFS 2023-04-03 14:41:33 +08:00
LI Qing 12b4e0637d Add DirEntryVec and use it to refine ramfs. 2023-04-03 14:41:33 +08:00
LI Qing d0bcd2491f Rewrite dentry cache 2023-04-03 14:41:33 +08:00
LI Qing a0f757d37c Add support for uncacheable and persistent fs 2023-04-03 14:41:33 +08:00
LI Qing db449d4697 Add the basic observer pattern 2023-04-03 14:41:33 +08:00
Jianfeng Jiang 0b15be894b support killing signal to process group 2023-04-02 15:05:37 +08:00
Jianfeng Jiang 32f3f5c300 Support interrupting foreground job with Ctrl+C 2023-04-02 15:05:37 +08:00
LI Qing ad76b0329a Fix the wrong metadata blocks for ramfs 2023-03-27 17:16:45 +08:00
Jianfeng Jiang 16b435e310 fix dead lock in tty 2023-03-22 21:09:50 +08:00
Yuke Peng 6e29996720 Refactor functions in vm module 2023-03-22 16:29:45 +08:00
Yuke Peng 8c7b5d84d1 Refactor IoPort 2023-03-22 16:29:45 +08:00
Yuke Peng ebfb199512 Rename structure 2023-03-22 16:29:45 +08:00
Yuke Peng 90a390ecda Combine PhysFrame and VmFrame into one 2023-03-22 16:29:45 +08:00
Yuke Peng 8dc7bda147 Combine vm and mm modules into one 2023-03-22 16:29:45 +08:00
Yuke Peng 840fe53845 Remove x86_64_util 2023-03-22 16:29:45 +08:00
LI Qing 02731914dc Add support for getdents64 syscall 2023-03-22 10:51:01 +08:00
Jianfeng Jiang 44904f00c8 Add syscall pause 2023-03-16 21:03:51 +08:00
Jianfeng Jiang 72e0725a0e add syscall time 2023-03-16 21:02:41 +08:00
Jianfeng Jiang 1e83996d09 add syscall umask 2023-03-16 21:02:41 +08:00
LI Qing eb2c09cd13 [ramfs] Fix the false judgement in rmdir 2023-03-16 17:11:58 +08:00
Jianfeng Jiang ee01113761 Add shell cmd tests 2023-03-16 17:11:21 +08:00
Yuke Peng 6a90603200 Use modified trapframe 2023-03-15 14:54:07 +08:00
Jianfeng Jiang 45427da50e support returning Err when creating posix thread 2023-03-15 10:41:02 +08:00