Changeset 4646710 in mainline for boot/arch/sparc64/src/main.c


Ignore:
Timestamp:
2017-06-07T15:39:23Z (7 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
239e32b8
Parents:
22299ed
Message:

replace objcopy with mkarray.py
(objcopy is notoriously problematic due to the uncontrolable way how it generates the object files, with what flags, etc.)

File:
1 edited

Legend:

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

    r22299ed r4646710  
    3232#include <arch/asm.h>
    3333#include <arch/ofw.h>
    34 #include <arch/_components.h>
    3534#include <genarch/ofw.h>
    3635#include <genarch/ofw_tree.h>
     
    4443#include <errno.h>
    4544#include <inflate.h>
     45#include "../../components.h"
    4646
    4747/* The lowest ID (read from the VER register) of some US3 CPU model */
     
    220220        size_t i;
    221221        for (i = 0; i < COMPONENTS; i++)
    222                 printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i].start,
    223                     ofw_translate(components[i].start), components[i].name,
     222                printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i].addr,
     223                    ofw_translate(components[i].addr), components[i].name,
    224224                    components[i].inflated, components[i].size);
    225225       
     
    267267                    ALIGN_UP(components[i - 1].inflated, PAGE_SIZE), -1);
    268268               
    269                 int err = inflate(components[i - 1].start, components[i - 1].size,
     269                int err = inflate(components[i - 1].addr, components[i - 1].size,
    270270                    dest[i - 1], components[i - 1].inflated);
    271271               
Note: See TracChangeset for help on using the changeset viewer.