Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

支持 RISC-V #77

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions core/kernel-space/base/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,18 @@ void disable_wp(unsigned long addr)
}
#endif

#ifdef CONFIG_RISCV
void enable_wp(unsigned long addr)
{
return;
}

void disable_wp(unsigned long addr)
{
return;
}
#endif

kallsyms_lookup_name_t hk_kallsyms_lookup_name = NULL;
static struct kprobe hk_kp = { .symbol_name = "kallsyms_lookup_name" };
static void hk_kallsyms_lookup_name_init(void)
Expand Down
4 changes: 2 additions & 2 deletions core/kernel-space/process/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,12 @@ int process_protect_disable(void)
return 0;
}

int process_protect_init()
int process_protect_init(void)
{
return process_perm_hlist_init();
}

int process_protect_destory()
int process_protect_destory(void)
{
return process_protect_disable();
}