Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
9833e980
Commit
9833e980
authored
Jun 15, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch: adjust build_id and stats sections
parent
093b49fd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
crt0.S
arch/lm32/crt0.S
+4
-1
ram-wrs.ld
arch/lm32/ram-wrs.ld
+1
-0
revision.c
revision.c
+4
-4
No files found.
arch/lm32/crt0.S
View file @
9833e980
...
@@ -122,9 +122,12 @@ _true_reset:
...
@@ -122,9 +122,12 @@ _true_reset:
.org PPG_STATIC_PADDR
.org PPG_STATIC_PADDR
.word ppg_static
.word ppg_static
#endif
#endif
#ifdef CONFIG_TARGET_WR_SWITCH
.org STATS_PADDR
.org STATS_PADDR
.word stats
.word stats
#endif
.org UPTIME_SEC_ADDR
.org UPTIME_SEC_ADDR
.global uptime_sec
.global uptime_sec
uptime_sec:
uptime_sec:
...
...
arch/lm32/ram-wrs.ld
View file @
9833e980
...
@@ -70,6 +70,7 @@ SECTIONS
...
@@ -70,6 +70,7 @@ SECTIONS
*/
*/
.stats : {
.stats : {
*(.stats)
*(.stats)
*(.build_id)
} > stats
} > stats
/*
/*
...
...
revision.c
View file @
9833e980
...
@@ -15,19 +15,19 @@
...
@@ -15,19 +15,19 @@
* Thus, we place this structure at a known address in the linker script
* Thus, we place this structure at a known address in the linker script
*/
*/
#ifdef CONFIG_TARGET_WR_SWITCH
#ifdef CONFIG_TARGET_WR_SWITCH
#define STATS_SECTION
__attribute__((section(".stats"
)))
#define STATS_SECTION
(NAME) __attribute__((section(NAME
)))
#else
#else
#define STATS_SECTION
#define STATS_SECTION
(NAME)
#endif
#endif
#ifdef CONFIG_TARGET_WR_SWITCH
#ifdef CONFIG_TARGET_WR_SWITCH
struct
spll_stats
stats
STATS_SECTION
=
{
struct
spll_stats
stats
STATS_SECTION
(
".stats"
)
=
{
.
magic
=
0x5b1157a7
,
.
magic
=
0x5b1157a7
,
.
ver
=
SPLL_STATS_VER
.
ver
=
SPLL_STATS_VER
};
};
#endif
#endif
const
struct
spll_build_id
build_id
STATS_SECTION
=
{
const
struct
spll_build_id
build_id
STATS_SECTION
(
".build_id"
)
=
{
#ifdef CONFIG_DETERMINISTIC_BINARY
#ifdef CONFIG_DETERMINISTIC_BINARY
.
build_date
=
""
,
.
build_date
=
""
,
.
build_time
=
""
,
.
build_time
=
""
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment