mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-23 16:23:24 +00:00
新增rust ffi (#77)
* 引入cargo * 取消对Cargo.lock的跟踪 * 解决vscode报错问题 * new: rust的代码能够调用c语言的printk_color * 1、将原本run.sh的工作拆解,变为几个不同的make命令 2、在docker镜像中编译rust * 更改workflow * update workflow * new: 解决workflow无法通过编译的问题
This commit is contained in:
25
kernel/src/include/bindings/wrapper.h
Normal file
25
kernel/src/include/bindings/wrapper.h
Normal file
@ -0,0 +1,25 @@
|
||||
/**
|
||||
* @file sched-wrapper.h
|
||||
* @author longjin (longjin@RinGoTek.cn)
|
||||
* @brief 这是为调度器相关接口创建rust绑定的wrapper
|
||||
* @version 0.1
|
||||
* @date 2022-11-10
|
||||
*
|
||||
* @copyright Copyright (c) 2022
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <common/crc16.h>
|
||||
#include <common/crc32.h>
|
||||
#include <common/crc64.h>
|
||||
#include <common/crc7.h>
|
||||
#include <common/crc8.h>
|
||||
#include <common/kfifo.h>
|
||||
#include <common/list.h>
|
||||
#include <common/lz4.h>
|
||||
#include <common/printk.h>
|
||||
#include <common/spinlock.h>
|
||||
#include <common/unistd.h>
|
||||
#include <sched/cfs.h>
|
||||
#include <sched/sched.h>
|
Reference in New Issue
Block a user