Changeset e0cdb7b6 in mainline for arch/ia64/include/context.h


Ignore:
Timestamp:
2005-10-10T11:15:50Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a016b63
Parents:
ac5665a
Message:

Add ALIGN() macro.

Fix usage of early_mapping() in main.c.
The previous version would not map part of the heap.
Please, review.

File:
1 edited

Legend:

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

    rac5665a re0cdb7b6  
    3131
    3232#include <arch/types.h>
     33#include <align.h>
    3334
    3435#define STACK_ITEM_SIZE 16
     36#define STACK_ALIGNMENT 16
    3537
    3638/*
     
    4648#endif
    4749
    48 #define context_set(c, _pc, stack, size)                        \
    49         (c)->pc = (__address) _pc;                              \
    50         (c)->bsp = ((__address) stack) + (sizeof(the_t));       \
     50#define context_set(c, _pc, stack, size)                                                \
     51        (c)->pc = (__address) _pc;                                                      \
     52        (c)->bsp = ((__address) stack) + (ALIGN(sizeof(the_t), STACK_ALIGNMENT));       \
    5153        (c)->sp = ((__address) stack) + (size) - SP_DELTA;
    5254
Note: See TracChangeset for help on using the changeset viewer.