Changeset b87f418 in mainline for arch


Ignore:
Timestamp:
2005-12-07T23:00:30Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f62355a
Parents:
4acac843
Message:

Send in some improvements.

Location:
arch
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/mm/frame.c

    r4acac843 rb87f418  
    5858                        if (e820table[i].type == MEMMAP_MEMORY_AVAILABLE) {
    5959                                zone_create_in_region(e820table[i].base_address, e820table[i].size & ~(FRAME_SIZE-1));
    60                                 if (last_frame < ALIGN(e820table[i].base_address + e820table[i].size, FRAME_SIZE))
    61                                         last_frame = ALIGN(e820table[i].base_address + e820table[i].size, FRAME_SIZE);
     60                                if (last_frame < ALIGN_UP(e820table[i].base_address + e820table[i].size, FRAME_SIZE))
     61                                        last_frame = ALIGN_UP(e820table[i].base_address + e820table[i].size, FRAME_SIZE);
    6262                        }                       
    6363                }
  • arch/ia64/include/context.h

    r4acac843 rb87f418  
    4141 * One item is put onto the stack to support get_stack_base().
    4242 */
    43 #define SP_DELTA        (0+ALIGN(STACK_ITEM_SIZE, STACK_ALIGNMENT))
     43#define SP_DELTA        (0+ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT))
    4444
    4545#define PFM_MASK        (~0x3fffffffff)
     
    5151#define context_set(c, _pc, stack, size)                                                                \
    5252        (c)->pc = (__address) _pc;                                                                      \
    53         (c)->bsp = ((__address) stack) + ALIGN(sizeof(the_t), REGISTER_STACK_ALIGNMENT);                \
     53        (c)->bsp = ((__address) stack) + ALIGN_UP(sizeof(the_t), REGISTER_STACK_ALIGNMENT);             \
    5454        (c)->ar_pfs &= PFM_MASK;                                                                        \
    55         (c)->sp = ((__address) stack) + ALIGN((size), STACK_ALIGNMENT) - SP_DELTA;
     55        (c)->sp = ((__address) stack) + ALIGN_UP((size), STACK_ALIGNMENT) - SP_DELTA;
    5656
    5757/*
  • arch/sparc64/include/context.h

    r4acac843 rb87f418  
    3131
    3232#ifndef __sparc64_STACK_H__
    33 #include <arch/stack.h>
     33# include <arch/stack.h>
    3434#endif
    3535
     
    5050#define context_set(c, _pc, stack, size)                                                                \
    5151        (c)->pc = ((__address) _pc) - 8;                                                                \
    52         (c)->sp = ((__address) stack) + ALIGN((size), STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA);       \
     52        (c)->sp = ((__address) stack) + ALIGN_UP((size), STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA);    \
    5353        (c)->fp = -STACK_BIAS
    5454       
Note: See TracChangeset for help on using the changeset viewer.