这是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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion opensbi-1.2/include/sbi/sbi_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ struct sbi_platform_operations {
};

/** Platform default per-HART stack size for exception/interrupt handling */
#define SBI_PLATFORM_DEFAULT_HART_STACK_SIZE 8192*8
#define SBI_PLATFORM_DEFAULT_HART_STACK_SIZE 0x2000 * 8 /* 8KB */

/** Representation of a platform */
struct sbi_platform {
Expand Down
2 changes: 1 addition & 1 deletion opensbi-1.2/lib/sbi/sbi_pmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define MAGIC_NUM 30;
extern volatile unsigned long waiting_for_spinlock[MAX_HARTS];
extern volatile unsigned long wait_for_sync[MAX_HARTS];
extern volatile int skip_for_wait[MAX_HARTS][MAX_HARTS]; //slot: mark which rhart no reply
extern volatile unsigned long skip_for_wait[MAX_HARTS][MAX_HARTS]; //slot: mark which rhart no reply
extern volatile int print_m_mode;
static unsigned long pmp_data_offset;
static unsigned long pmp_sync_offset;
Expand Down
16 changes: 16 additions & 0 deletions opensbi-1.3/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
AlignConsecutiveAssignments: true
AlignEscapedNewlines: Left
AlignTrailingComments: true
AllowShortFunctionsOnASingleLine: None
BraceWrapping:
AfterFunction: true
BreakBeforeBraces: Custom
BreakStringLiterals: false
ContinuationIndentWidth: 8
Cpp11BracedListStyle: false
IndentWidth: 8
ReflowComments: false
SortIncludes: false
SpacesInContainerLiterals: false
TabWidth: 8
UseTab: Always
14 changes: 14 additions & 0 deletions opensbi-1.3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Object files
*.o
*.a
*.dep

#Build & install directories
build/
build-oe/
install/

# Development friendly files
tags
cscope*
*.swp
27 changes: 27 additions & 0 deletions opensbi-1.3/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

List of OpenSBI Contributors (Alphabetically sorted)
====================================================

* **[Western Digital Corporation](https://www.wdc.com/)**
* Project initiator and maintainer
* Copyright (c) 2019 Western Digital Corporation or its affiliates

* Alistair Francis <alistair@alistair23.me>

* Andreas Schwab <schwab@suse.de>

* Anup Patel <anup.patel@wdc.com>

* Atish Patra <atish.patra@wdc.com>

* Bin Meng <bmeng.cn@gmail.com>

* Damien Le Moal <damien.lemoal@wdc.com>

* Karsten Merker <merker@debian.org>

* Nick Kossifidis <mickflemm@gmail.com>

* Shawn Chang <citypw@gmail.com>

* Xiang Wang <wxjstz@126.com>
25 changes: 25 additions & 0 deletions opensbi-1.3/COPYING.BSD
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
The 2-Clause BSD License
SPDX short identifier: BSD-2-Clause

Copyright (c) 2019 Western Digital Corporation or its affiliates and other
contributors.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 changes: 25 additions & 0 deletions opensbi-1.3/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# SPDX-License-Identifier: BSD-2-Clause

mainmenu "OpenSBI $(OPENSBI_PLATFORM) Configuration"

config OPENSBI_SRC_DIR
string
option env="OPENSBI_SRC_DIR"

config OPENSBI_PLATFORM
string
option env="OPENSBI_PLATFORM"

config OPENSBI_PLATFORM_SRC_DIR
string
option env="OPENSBI_PLATFORM_SRC_DIR"

menu "Platform Options"
source "$(OPENSBI_PLATFORM_SRC_DIR)/Kconfig"
endmenu

source "$(OPENSBI_SRC_DIR)/lib/sbi/Kconfig"

source "$(OPENSBI_SRC_DIR)/lib/utils/Kconfig"

source "$(OPENSBI_SRC_DIR)/firmware/Kconfig"
Loading