-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bazel] Download and patch FreeRTOS using Bazel
Signed-off-by: Miguel Young de la Sota <[email protected]>
- Loading branch information
Showing
12 changed files
with
1,352 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
third_party/freertos/0001-Remove-mtime-address-macros.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
From 3d0a295ce55a3d5180e947d1b552ed91a1e63967 Mon Sep 17 00:00:00 2001 | ||
From: Miguel Young de la Sota <[email protected]> | ||
Date: Mon, 28 Mar 2022 10:22:07 -0400 | ||
Subject: [PATCH 1/3] Remove mtime address macros | ||
|
||
--- | ||
portable/GCC/RISC-V/portmacro.h | 23 ----------------------- | ||
1 file changed, 23 deletions(-) | ||
|
||
diff --git a/portable/GCC/RISC-V/portmacro.h b/portable/GCC/RISC-V/portmacro.h | ||
index fe93dc28c..5522e0bb8 100644 | ||
--- a/portable/GCC/RISC-V/portmacro.h | ||
+++ b/portable/GCC/RISC-V/portmacro.h | ||
@@ -156,29 +156,6 @@ not necessary for to use this port. They are defined so the common demo files | ||
#define portMEMORY_BARRIER() __asm volatile( "" ::: "memory" ) | ||
/*-----------------------------------------------------------*/ | ||
|
||
- | ||
-/* configCLINT_BASE_ADDRESS is a legacy definition that was replaced by the | ||
-configMTIME_BASE_ADDRESS and configMTIMECMP_BASE_ADDRESS definitions. For | ||
-backward compatibility derive the newer definitions from the old if the old | ||
-definition is found. */ | ||
-#if defined( configCLINT_BASE_ADDRESS ) && !defined( configMTIME_BASE_ADDRESS ) && ( configCLINT_BASE_ADDRESS == 0 ) | ||
- /* Legacy case where configCLINT_BASE_ADDRESS was defined as 0 to indicate | ||
- there was no CLINT. Equivalent now is to set the MTIME and MTIMECMP | ||
- addresses to 0. */ | ||
- #define configMTIME_BASE_ADDRESS ( 0 ) | ||
- #define configMTIMECMP_BASE_ADDRESS ( 0 ) | ||
-#elif defined( configCLINT_BASE_ADDRESS ) && !defined( configMTIME_BASE_ADDRESS ) | ||
- /* Legacy case where configCLINT_BASE_ADDRESS was set to the base address of | ||
- the CLINT. Equivalent now is to derive the MTIME and MTIMECMP addresses | ||
- from the CLINT address. */ | ||
- #define configMTIME_BASE_ADDRESS ( ( configCLINT_BASE_ADDRESS ) + 0xBFF8UL ) | ||
- #define configMTIMECMP_BASE_ADDRESS ( ( configCLINT_BASE_ADDRESS ) + 0x4000UL ) | ||
-#elif !defined( configMTIME_BASE_ADDRESS ) || !defined( configMTIMECMP_BASE_ADDRESS ) | ||
- #error configMTIME_BASE_ADDRESS and configMTIMECMP_BASE_ADDRESS must be defined in FreeRTOSConfig.h. Set them to zero if there is no MTIME (machine time) clock. See https://www.FreeRTOS.org/Using-FreeRTOS-on-RISC-V.html | ||
-#endif | ||
- | ||
- | ||
- | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
-- | ||
2.35.1.1021.g381101b075-goog | ||
|
Oops, something went wrong.