Changeset d59718e in mainline for boot/arch/ppc32/src/main.c


Ignore:
Timestamp:
2018-10-21T21:57:23Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cfdeedc
Parents:
566457ad
Message:

Move stack to always be after all boot allocations

This works around an issue on pcc32.
Since this is not a proper solution and I've so far been unable
to determine root cause, I'm also opening a ticket to track it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/ppc32/src/main.c

    r566457ad rd59718e  
    9797        size_t pages = (balloc_start + ALIGN_UP(BALLOC_MAX_SIZE, PAGE_SIZE)) >>
    9898            PAGE_WIDTH;
     99
     100        printf(" Boot allocations area: %p - %p\n", (void *) balloc_start,
     101            (void *) (pages << PAGE_WIDTH));
     102
     103        if ((pages << PAGE_WIDTH) >= (uintptr_t) loader_address_pa) {
     104                printf("Boot allocations overlap loader area.\n");
     105                printf("The boot image is too large. Halting.\n");
     106                halt();
     107        }
     108
    99109        void *transtable;
    100110        void *transtable_pa;
Note: See TracChangeset for help on using the changeset viewer.