Changeset 58093d9 in mainline


Ignore:
Timestamp:
2018-07-17T22:32:04Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
edc64c0
Parents:
4177e70
git-author:
Jakub Jermar <jakub@…> (2018-07-17 22:25:51)
git-committer:
Jakub Jermar <jakub@…> (2018-07-17 22:32:04)
Message:

ia64: context_set() must always set gp to gp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/include/arch/context.h

    r4177e70 r58093d9  
    5050#define SP_DELTA  (0 + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT))
    5151
     52extern void *__gp;
    5253/* RSE stack starts at the bottom of memory stack, hence the division by 2. */
    5354#define context_set(c, _pc, stack, size) \
     
    5758                (c)->ar_pfs &= PFM_MASK; \
    5859                (c)->sp = ((uintptr_t) stack) + ALIGN_UP((size / 2), STACK_ALIGNMENT) - SP_DELTA; \
     60                (c)->r1 = (uintptr_t) &__gp; \
    5961        } while (0)
    6062
Note: See TracChangeset for help on using the changeset viewer.