这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
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,865 changes: 12,865 additions & 0 deletions 0001-penglai-opensbi-version-0.2.patch

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions include/sbi/sbi_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ typedef unsigned long long uint64_t;
typedef int bool;
typedef unsigned long ulong;
typedef unsigned long uintptr_t;
typedef long intptr_t;
typedef unsigned long size_t;
typedef long ssize_t;
typedef unsigned long virtual_addr_t;
Expand Down
3 changes: 1 addition & 2 deletions include/sm/enclave.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
#include "sbi/riscv_locks.h"
#include "sbi/sbi_string.h"
#include "sbi/riscv_asm.h"
#include "sbi/sbi_types.h"
#include "sm/thread.h"
#include "sm/vm.h"
#include <stdint.h>
#include <stddef.h>



Expand Down
2 changes: 1 addition & 1 deletion include/sm/enclave_mm.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _ENCLAVE_MM_H
#define _ENCLAVE_MM_H

#include <stdint.h>
#include "sbi/sbi_types.h"
#include "sm/enclave.h"

struct mm_region_list_t
Expand Down
2 changes: 1 addition & 1 deletion include/sm/ipi.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "sbi/riscv_atomic.h"
#include "sbi/riscv_locks.h"
#include "stdint.h"
#include "sbi/sbi_types.h"

#define IPI_PMP_SYNC 0x1
#define IPI_STOP_ENCLAVE 0x2
Expand Down
2 changes: 1 addition & 1 deletion include/sm/pmp.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _PMP_H
#define _PMP_H

#include <stdint.h>
#include "sbi/sbi_types.h"
#include "sbi/riscv_encoding.h"
#include "sbi/sbi_hartmask.h"

Expand Down
2 changes: 1 addition & 1 deletion include/sm/sm.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _SM_H
#define _SM_H

#include <stdint.h>
#include "sbi/sbi_types.h"
#include "sm/enclave_args.h"
#include "sm/ipi.h"

Expand Down
2 changes: 1 addition & 1 deletion include/sm/thread.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __THREAD_H__
#define __THREAD_H__

#include <stdint.h>
#include "sbi/sbi_types.h"

/// \brief define the number of general registers
#define N_GENERAL_REGISTERS 32
Expand Down
2 changes: 1 addition & 1 deletion include/sm/vm.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "sbi/riscv_encoding.h"
#include "sbi/sbi_bitops.h"
#include <stdint.h>
#include "sbi/sbi_types.h"

#define MEGAPAGE_SIZE ((uintptr_t)(RISCV_PGSIZE << RISCV_PGLEVEL_BITS))
#if __riscv_xlen == 64
Expand Down
1 change: 0 additions & 1 deletion lib/sbi/sm/pmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "sbi/riscv_asm.h"
#include "sbi/sbi_pmp.h"
#include "sbi/sbi_console.h"
#include <stddef.h>

/**
* \brief Set pmp and sync all harts.
Expand Down