Ignore:
Timestamp:
2008-10-02T20:24:01Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1d132ae
Parents:
c2ad500
Message:

Do not allocate full page for the uspace window buffer.
Instead, allocate only the bare minimum to fit NWINDOWS - 1
uspace windows and to satisfy alignment requirements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/trap/regwin.h

    rc2ad500 rd364e94  
    4040#include <arch/stack.h>
    4141#include <arch/arch.h>
     42#include <align.h>
    4243
    4344#define TT_CLEAN_WINDOW                 0x24
     
    7273#define I6_OFFSET       112
    7374#define I7_OFFSET       120
     75
     76/* Uspace Window Buffer constants. */
     77#define UWB_SIZE        ((NWINDOWS - 1) * STACK_WINDOW_SAVE_AREA_SIZE)
     78#define UWB_ALIGNMENT   1024
     79#define UWB_ASIZE       ALIGN_UP(UWB_SIZE, UWB_ALIGNMENT)
    7480
    7581#ifdef __ASM__
Note: See TracChangeset for help on using the changeset viewer.