Changeset deed510 in mainline for kernel/generic/src/main/main.c


Ignore:
Timestamp:
2023-02-26T11:36:18Z (15 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bea6233
Parents:
6188fee
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-26 11:29:38)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-26 11:36:18)
Message:

Remove an unused variable and make a few others 'static'

They aren't used from other files, so they don't need external
visibility.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/main.c

    r6188fee rdeed510  
    132132};
    133133
    134 context_t ctx;
    135 
    136 /** Lowest safe stack virtual address. */
    137 uintptr_t stack_safe = 0;
     134static context_t ctx;
    138135
    139136// NOTE: All kernel stacks must be aligned to STACK_SIZE, see CURRENT.
    140 const size_t bootstrap_stack_size = STACK_SIZE;
    141 _Alignas(STACK_SIZE) uint8_t bootstrap_stack[STACK_SIZE];
     137static const size_t bootstrap_stack_size = STACK_SIZE;
     138static _Alignas(STACK_SIZE) uint8_t bootstrap_stack[STACK_SIZE];
     139
    142140/* Just a convenient value for some assembly code. */
    143 const uint8_t *bootstrap_stack_top = bootstrap_stack + STACK_SIZE;
     141uint8_t *const bootstrap_stack_top = bootstrap_stack + STACK_SIZE;
    144142
    145143/*
Note: See TracChangeset for help on using the changeset viewer.