{"id":21179761,"url":"https://github.com/benmezger/strail","last_synced_at":"2025-09-07T21:37:42.176Z","repository":{"id":98944941,"uuid":"233636893","full_name":"benmezger/strail","owner":"benmezger","description":"A kernel with support to the RISCV architecture","archived":false,"fork":false,"pushed_at":"2020-11-14T06:22:38.000Z","size":49,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-07-10T02:23:42.319Z","etag":null,"topics":["asm","c","kernel","operating-system","riscv","unix"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benmezger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-01-13T16:10:44.000Z","updated_at":"2023-10-22T08:29:16.000Z","dependencies_parsed_at":"2023-04-27T05:16:35.040Z","dependency_job_id":null,"html_url":"https://github.com/benmezger/strail","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/benmezger/strail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benmezger%2Fstrail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benmezger%2Fstrail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benmezger%2Fstrail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benmezger%2Fstrail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benmezger","download_url":"https://codeload.github.com/benmezger/strail/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benmezger%2Fstrail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274101209,"owners_count":25222444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asm","c","kernel","operating-system","riscv","unix"],"created_at":"2024-11-20T17:34:06.497Z","updated_at":"2025-09-07T21:37:42.128Z","avatar_url":"https://github.com/benmezger.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://codescene.io/projects/6574/status.svg) Get more details at **codescene.io**.](https://codescene.io/projects/6574/jobs/latest-successful/results)\n\n# strail\nA Kernel with suport to the RISC-V ISA\n\n# Introduction\n\nI wrote a small kernel for my bachelor thesis with support to the RISC-V ISA, focussing \nat the education of operating systems, where students and professors may dive into a \nsimpler kernel implementation for academic puposes, instead of relying on large kernel code-base.\nWe hope this project might give students and professors a big picture of the implementation of \nan operating systems and how components communicate with each other.\n\nAlthough I only had 1 year to write and develop my thesis, it was enough time for \nme to write a small and basic kernel with RISC-V's {machine, supervisor, user}-mode \nsupport, trap handlers and a basic round-robin scheduling algorithm.\nI was approved upon the presentation of my thesis, but I decided to refactor \nthe code and allow multiple architecture support, better code organization, a kernel \ninterface for communicating with the lower level architectural code and better trap \nhandlers and smoother POSIX support.\n\n# Supported ISA's\n\n- [X] RISCV \n\n# Instruction Set Architecture (ISA)\n## RISC-V\n  - Enter `main` through `_start`\n  - `DIRECT MODE` access to trap handlers\n  - Enter machine-mode\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenmezger%2Fstrail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenmezger%2Fstrail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenmezger%2Fstrail/lists"}