diff options
author | Matt Joyce <matthew.joyce@embedded-brains.de> | 2022-02-22 13:18:38 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2022-02-22 14:38:46 +0300 |
commit | 44b60f0c4ba597c55dcac4f2d3119a3055c80ba1 (patch) | |
tree | e5286802e8b24fcbb7437f00163daaab0f439f2c /libgloss | |
parent | 054b00d96a81ca1169a1dd2d63d79b7ac03919ac (diff) |
Make __sdidinit unused
Remove dependency on __sdidinit member of struct _reent to check
object initialization. Like __sdidinit, the __cleanup member of
struct _reent is initialized in the __sinit() function. Checking
initialization against __cleanup serves the same purpose and will
reduce overhead in the __sfp() function in a follow up patch.
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/aarch64/syscalls.c | 2 | ||||
-rw-r--r-- | libgloss/arm/syscalls.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libgloss/aarch64/syscalls.c b/libgloss/aarch64/syscalls.c index 7343cc61f..5b4071893 100644 --- a/libgloss/aarch64/syscalls.c +++ b/libgloss/aarch64/syscalls.c @@ -124,7 +124,7 @@ extern void __sinit (struct _reent *); #define CHECK_INIT(ptr) \ do \ { \ - if ((ptr) && !(ptr)->__sdidinit) \ + if ((ptr) && !(ptr)->__cleanup) \ __sinit (ptr); \ } \ while (0) diff --git a/libgloss/arm/syscalls.c b/libgloss/arm/syscalls.c index fc394f94b..710a741ee 100644 --- a/libgloss/arm/syscalls.c +++ b/libgloss/arm/syscalls.c @@ -89,7 +89,7 @@ extern void __sinit (struct _reent *); #define CHECK_INIT(ptr) \ do \ { \ - if ((ptr) && !(ptr)->__sdidinit) \ + if ((ptr) && !(ptr)->__cleanup) \ __sinit (ptr); \ } \ while (0) |