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/src/trap/trap_table.S

    rc2ad500 rd364e94  
    749749         */
    750750        clr %g4
    751         set PAGE_SIZE - 1, %g5
    752 0:      andcc %g7, %g5, %g0                     ! PAGE_SIZE alignment check
    753         bz 0f                                   ! %g7 is page-aligned, no more windows to refill
     7510:      andcc %g7, UWB_ALIGNMENT - 1, %g0       ! alignment check
     752        bz 0f                                   ! %g7 is UWB_ALIGNMENT-aligned, no more windows to refill
    754753        nop
    755754
Note: See TracChangeset for help on using the changeset viewer.