816ee5ae54
refactor: 删除过时的va-pa转换函数,改为统一使用MMArch ( #862 )
2024-07-26 00:27:35 +08:00
bd70d2d1f4
chore: 将工具链更新到2024-07-23 ( #864 )
...
* chore: 将工具链更新到2024-07-23
2024-07-25 00:55:02 +08:00
1ea2daad81
feat(driver/net): 实现Loopback网卡接口 ( #845 )
...
* 初步实现loopback设备
2024-07-22 16:22:45 +08:00
af097f9f4b
fix(time): modify update wall time ( #836 )
...
更改了时间子系统的update_wall_time函数,通过读取当前周期数,计算delta值进行更新,而不是通过传入delta值进行更新
2024-07-16 21:51:21 +08:00
415e14e9c3
fix(driver): fix memory security problem in tty device ioctl ( #833 )
...
* add soft link to musl-gcc
* fix the tty_ioctl
* modified
* modified
2024-05-31 10:20:51 +08:00
bde08cded6
feat(driver/pci): 完善pci root结构体,增加portio的pci配置空间访问 ( #818 )
...
* feat(driver/pci): 完善pci root结构体,增加portio的pci配置空间访问
2024-05-16 17:47:01 +08:00
2eab6dd743
feat(log): 将内核日志统一为新的logger ( #814 )
2024-05-16 17:25:23 +08:00
92deae638b
chore: move setup_arch_post timepoint to before clocksource_boot_finish ( #820 )
...
This commit adjusts the timing of the setup_arch_post event to occur before the clocksource_boot_finish event, allowing the time subsystem to properly register architecture-specific clock sources.
2024-05-16 14:06:23 +08:00
1f4877a4c5
feat(driver/pci): add pci bus into sysfs ( #792 )
...
把pci设备加入sysfs
2024-05-13 15:27:08 +08:00
0102d69fdd
feat:(riscv/intr) 实现riscv plic驱动,能处理外部中断 ( #799 )
...
* feat:(riscv/intr) 实现riscv plic驱动,能处理外部中断
- 实现riscv plic驱动,能处理外部中断
- 能收到virtio-blk的中断
- 实现fasteoi interrupt handler
2024-05-01 21:11:32 +08:00
0722a06a09
fix: (riscv/timer): 修复riscv下没有更新墙上时钟以及没有处理软中断的bug ( #783 )
2024-04-28 19:40:09 +08:00
942cf26b48
fix(riscv/process): 把riscv的调度时钟节拍率与HZ同步,并且修复切换到用户态的时候忘了在内核态关中断的bug ( #780 )
2024-04-28 16:49:40 +08:00
dd8e74ef0d
feat(driver/acpi_pm): Implement ACPI PM Timer ( #772 )
...
* feat: Implement ACPI PM Timer
2024-04-28 13:25:12 +08:00
471d65cf15
feat(riscv): riscv下能够运行hello world用户程序 ( #770 )
...
* feat(riscv): riscv下能够运行hello world用户程序
2024-04-26 11:59:47 +08:00
731bc2b32d
feat(virtio): riscv: 添加virtio-blk driver,并在riscv下能够正确挂载FAT32 ( #761 )
2024-04-23 17:19:54 +08:00
e32effb150
feat(driver): 把virtio添加到sysfs ( #752 )
2024-04-22 15:11:47 +08:00
b502fbf0b9
chore: Update virtio-drivers to commit 61ece509c4 and modify max_queue_size implementation ( #748 )
2024-04-21 13:30:29 +08:00
881ff6f95e
将smoltcp升级到0.11.0版本 ( #740 )
2024-04-21 11:39:00 +08:00
370472f728
pci: 添加pci root manager来管理pci root,并使得riscv能够正常扫描pci设备. ( #745 )
...
* pci: 添加pci root manager来管理pci root.
pci: 使得riscv能够正常扫描pci设备.
* doc: 添加注释
2024-04-21 11:27:36 +08:00
2709e017d0
pci: 统一使用ecam root ( #744 )
2024-04-20 18:31:56 +08:00
418ad41fd8
Feat(tty): add dummy console ( #735 )
...
使得riscv能暂时完成stdio_init(将来需要实现riscv的串口console)
2024-04-17 10:03:22 +08:00
1012552dea
删除无用的hid代码 ( #734 )
2024-04-16 21:37:42 +08:00
1074eb34e7
feat(filesystem): 引入Umount系统调用 ( #719 )
...
* feat(filesystem): 引入Umount系统调用
* 将所有ENOSYS误用更正
* 修复了一个使同一个挂载点可以挂载2个文件系统的bug
* 统一注释,增强程序稳定性,统一接口。注意:Umount时在fatfs的路径要使用大写,此受限于当前文件系统设计。
2024-04-15 13:02:04 +08:00
9621ab16ef
让riscv64能正常切换进程,并运行完所有的initcall ( #721 )
2024-04-14 20:39:20 +08:00
f049d1af01
初始化riscv-sbi-timer ( #716 )
2024-04-12 14:46:47 +08:00
9365e8017b
完善pty,目前pty能够支持ssh ( #708 )
2024-04-10 19:00:12 +08:00
6fc066ac11
实现SystemV共享内存 ( #690 )
...
* 实现SystemV共享内存
* 测试shm
* 添加测试程序
* 完善细节
* 修正shm的时间数据错误的问题
* fix: devfs的metadata权限为0x777的错误
---------
Co-authored-by: longjin <longjin@DragonOS.org >
2024-04-07 14:04:19 +08:00
eb49bb993a
BlockCache-read cache支持 ( #521 )
...
支持block cache的读缓存
2024-04-07 14:03:51 +08:00
23ef2b33d1
riscv: 把内核编译target改为riscv64gc & 获取time csr的频率 & 修正浮点保存与恢复的汇编的问题 ( #699 )
...
* 1. 把内核编译target改为riscv64gc
2. fix: 修正浮点保存与恢复的汇编的问题
* riscv: 获取time csr的频率
2024-04-06 22:13:26 +08:00
f0c87a897f
重写调度模块 ( #679 )
...
## PR:重写调度模块
---
### 完成的部分
- 实现cfs调度策略
- 搭建框架,后续功能可以迭代开发
- 目前能跑,未测试性能
### 需要后续接力的部分
- 实现组内调度(task_group)
- 实现跨核负载均衡(pelt算法)
- 接入sysfs,实现参数动态调节(sched_stat等)
- nice值以及priority等参数的设置及调优
2024-04-05 17:54:48 +08:00
dfe53cf087
实现pty,附带测试程序 ( #685 )
...
* 实现pty,附带测试程序
* fmt ** clippy
* 将file层的锁粒度缩小,从而不使用no_preempt。更改pipe在sleep部分的bug
* 修复拼写错误
2024-04-05 00:21:55 +08:00
b8ed38251d
修复jiffy时钟过快问题,启用gettimeofday测试,修改mount测试 ( #680 )
...
1. 把clock tick rate与hpet频率关联起来
2. 修复墙上时间同步错误的问题
3. 启用时间watch dog.
4. 修复时间流逝速度异常
---------
Co-authored-by: longjin <longjin@DragonOS.org >
2024-04-05 00:06:26 +08:00
56cc4dbe27
实现页面反向映射 ( #670 )
...
* 实现页面反向映射
* 完善PAGE_MANAGER初始化时机 && 封装lock函数 && 删掉过时注释
2024-03-31 16:33:49 +08:00
da15231979
实现了rtc的抽象,并且把x86的cmos rtc接入到设备驱动模型 ( #674 )
...
* 实现了rtc的抽象,并且把x86的cmos rtc接入到设备驱动模型。
2024-03-28 00:28:13 +08:00
0cb807346c
修复tty设备显示在/sys目录下的bug ( #668 )
2024-03-26 18:26:02 +08:00
2755467c79
支持绘制24位深和16位深显示缓冲区 ( #640 )
...
* 修复了初始化时显示,边界条件的一个bug
* 解决了内存未初始前字体显示的兼容性问题
* 支持绘制24位深和16位深显示缓冲区
2024-03-25 16:39:36 +08:00
4256da7fb6
把Device trait的set_class改为设置Weak指针,以避免循环引用问题。 ( #666 )
2024-03-25 15:47:05 +08:00
7c958c9ef0
移植dns查询工具dog的--tcp功能 ( #652 )
...
* add dog, modify user/Makefile and user.sysconfig
* add dog, modify user/Makefile and user.sysconfig
* fix tty unicode
* 修正无法正确编译dog的问题
---------
Co-authored-by: val213 <val213666@gmail.com >
Co-authored-by: GnoCiYeH <heyicong@dragonos.org >
Co-authored-by: longjin <longjin@DragonOS.org >
2024-03-25 13:04:53 +08:00
b5b571e026
修复内核的clippy检查报错 ( #637 )
...
修复内核的clippy检查报错
---------
Co-authored-by: Samuel Dai <947309196@qq.com >
Co-authored-by: Donkey Kane <109840258+xiaolin2004@users.noreply.github.com >
Co-authored-by: themildwind <107623059+themildwind@users.noreply.github.com >
Co-authored-by: GnoCiYeH <heyicong@dragonos.org >
Co-authored-by: MemoryShore <105195940+MemoryShore@users.noreply.github.com >
Co-authored-by: 曾俊 <110876916+ZZJJWarth@users.noreply.github.com >
Co-authored-by: sun5etop <146408999+sun5etop@users.noreply.github.com >
Co-authored-by: hmt <114841534+1037827920@users.noreply.github.com >
Co-authored-by: laokengwt <143977175+laokengwt@users.noreply.github.com >
Co-authored-by: TTaq <103996388+TTaq@users.noreply.github.com >
Co-authored-by: Jomo <2512364506@qq.com >
Co-authored-by: Samuel Dai <samuka007@qq.com >
Co-authored-by: sspphh <112558065+sspphh@users.noreply.github.com >
2024-03-22 23:26:39 +08:00
8cb2e9b344
重写SMP模块 ( #633 )
...
* 修复cpumask的迭代器的错误。
* 能进系统(AP核心还没有初始化自身)
* 初始化ap core
* 修改percpu
* 删除无用的cpu.c
* riscv64编译通过
2024-03-21 19:19:32 +08:00
59fdb447ee
fix: 键盘中断上下文不再直接操作tty,而是由专门的kthread来渲染 ( #592 )
...
fix: 键盘中断上下文不再直接操作tty,而是由专门的kthread来渲染
1.修正psmouse 日志
2. 键盘中断上下文不再直接操作tty,而是由专门的kthread来渲染
3. 由于调度器设计问题,load balance会由于时序问题导致错误.因此暂时只启用单核.
2024-03-12 16:32:33 +08:00
52bcb59e92
完善Tty的RawMode ( #577 )
...
* 完善rowmode,改掉一部分bug
* 增加两个ansi拓展功能功能,以及标记部分函数nerve inline
* 修改do_signal和其他中断上下文锁未关中断,以及拓展tty功能,修改tty几个算法bug
* 修改两个锁
* 修改syscall_64
* update
2024-03-11 15:13:37 +08:00
338f690326
riscv
: 初始化irq (#560 )
...
完成riscv的irqchip初始化的代码。
这是该功能的第一个PR。由于还需要实现timer驱动才能测试,因此该功能将会通过2~3个PR来完成。
2024-03-05 17:22:04 +08:00
f3b05a97ec
将tty输出接入串口 ( #555 )
2024-03-04 14:10:26 +08:00
e28411791f
完成中断管理模块重构 ( #554 )
...
- 支持中断共享
- 把现有驱动程序移植到新的irq模块
- 使用`ProcessorId`标识处理器id
- 尚未实现threaded_irq
性能上,edge irq flow handler里面,对于锁的使用,可能有点问题。为了获取/修改common data还有其他几个结构体的状态,进行了多次加锁和放锁,导致性能降低。这是接下来需要优化的点。
2024-03-03 16:31:08 +08:00
be60c929c8
修改tty几个bug ( #549 )
...
* 更改ioctl一处逻辑错误
* 删除不必要的impl
* 修改一处bug,并且加入tty的link,为pty做准备
* 修改一处因为vc的pos和x计算错误导致的溢出
2024-02-28 20:18:49 +08:00
52da9a5937
完成与Linux兼容的Ntty ( #517 )
...
* 已经完成的功能:
- 写:printf能够正常在tty输出
- 读:与键盘驱动接上
- 信号: 能够正常通过ctrl向前台进程发送信号
* 支持目前的shell,改动printk使其与新版tty兼容。
* 删除原有tty文件夹,并更改新tty文件名
* 添加clear清屏程序
* 实现tty部分ioctl,更改部分问题
2024-02-26 15:27:19 +08:00
9993c0fc61
添加i8042驱动 改正serio设备文件结构 ( #538 )
...
* 添加i8042驱动 改正serio设备文件结构
2024-02-26 15:03:13 +08:00
196b75dc17
把irqdesc添加到sysfs ( #525 )
...
* 把irqdesc添加到sysfs
2024-02-19 00:56:58 +08:00
3bc96fa4a9
添加irqdesc的抽象,并在系统初始化时创建irqdesc ( #522 )
...
* 添加irqdesc的抽象,并在系统初始化时创建irqdesc
2024-02-19 00:36:36 +08:00