Changeset 4646710 in mainline for boot/arch/sparc64


Ignore:
Timestamp:
2017-06-07T15:39:23Z (9 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.)

Location:
boot/arch/sparc64
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/Makefile.inc

    r22299ed r4646710  
    5757        arch/$(BARCH)/src/main.c \
    5858        arch/$(BARCH)/src/ofw.c \
    59         $(COMPS_C) \
     59        $(COMPS).s \
     60        $(COMPS)_desc.c \
    6061        genarch/src/ofw.c \
    6162        genarch/src/ofw_tree.c \
     
    6869        generic/src/version.c \
    6970        generic/src/inflate.c
     71
     72PRE_DEPEND = $(COMPS).s $(COMPS).h $(COMPS)_desc.c
  • boot/arch/sparc64/_link.ld.in

    r22299ed r4646710  
    1515                *(.bss);        /* uninitialized static variables */
    1616                *(COMMON);      /* global variables */
    17 [[COMPONENTS]]
     17                *(.components);
    1818        }
    1919       
  • 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.