Skip to content
Open
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
16 changes: 16 additions & 0 deletions include/arch-loongarch.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#pragma once

#define KERNEL_ADDR 0x9000000000000000
#define MODULE_ADDR 0xffff800000000000
#define PAGE_OFFSET 0x9000000000000000
#define TASK_SIZE (PAGE_OFFSET)

#define PAGE_SHIFT 14
#define PTE_FILE_MAX_BITS 31

#define PTRACE_GETREGS 0
#define PTRACE_GETFPREGS 0
#define PTRACE_SETREGS 0
#define PTRACE_SETFPREGS 0

#define SYSCALLS syscalls_loongarch
3 changes: 3 additions & 0 deletions include/arch-syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
#ifdef __tile__
#include "syscalls-tile.h"
#endif
#ifdef __loongarch__
#include "syscalls-loongarch.h"
#endif
#if defined(__riscv) || defined(__riscv__)
#if __riscv_xlen == 64
#include "syscalls-riscv64.h"
Expand Down
4 changes: 4 additions & 0 deletions include/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
#include "arch-tile.h"
#endif

#ifdef __loongarch__
#include "arch-loongarch.h"
#endif

#if defined(__riscv) || defined(__riscv__)
#if __riscv_xlen == 64
#include "arch-riscv64.h"
Expand Down
Loading