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


Ignore:
Timestamp:
2018-11-01T14:30:03Z (5 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d1da1ff2
Parents:
bab75df6
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-01 14:30:03)
git-committer:
GitHub <noreply@…> (2018-11-01 14:30:03)
Message:

Rename THE/the_t to CURRENT/current_t (#50)

Because the word "THE" occurs several times in every license
header, searching for occurrences of "THE" macro is more difficult
than necessary.

While I appreciate the wit of it, using a non-conflicting word
for it is more practical.

File:
1 edited

Legend:

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

    rbab75df6 ra6e55886  
    213213{
    214214        /* Keep this the first thing. */
    215         the_initialize(THE);
     215        current_initialize(CURRENT);
    216216
    217217        version_print();
     
    342342
    343343        /*
    344          * The THE structure is well defined because ctx.sp is used as stack.
    345          */
    346         the_initialize(THE);
     344         * The CURRENT structure is well defined because ctx.sp is used as stack.
     345         */
     346        current_initialize(CURRENT);
    347347
    348348        ARCH_OP(pre_mm_init);
     
    356356        ARCH_OP(post_cpu_init);
    357357
    358         the_copy(THE, (the_t *) CPU->stack);
     358        current_copy(CURRENT, (current_t *) CPU->stack);
    359359
    360360        /*
Note: See TracChangeset for help on using the changeset viewer.