Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • O OSKernel2025-SC7
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • 智核速启队
  • OSKernel2025-SC7
  • Merge requests
  • !21

[feat] 可以生成opensbi的rv系统镜像 能系统调用

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Bandiera Rossa requested to merge SC7 into master Apr 17, 2025
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 14
  1. 修改Makefile,使用make sbi生成支持opensbi的镜像,使用make sbi_qemu运行
  2. 修改uart.c,支持opensbi
  3. 修改entry.S,避免S态读M态csr的错误。如果之后要支持多核可能需要改回来
  4. 修改riscv.h,sbi下能正确映射内核
  5. 暂时把cpu.c中的r_tp()改成0

[fix] 把timer.c中的include改成本项目的include文件,而不是/user/include

[todo]

  1. 把sbi_call改为inline函数,提高效率
  2. 查清楚sbi下cpu.c中r_tp()的问题
  3. sbi支持时钟中断,磁盘中断
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: SC7