Changeset 63cda71 in mainline for boot/arch/ppc32/loader/ofwarch.h


Ignore:
Timestamp:
2006-07-13T14:58:57Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
94d614e
Parents:
eda7bf81
Message:

Fix ofw_memmap() in boot infrastructure.
The cell size is 32-bit and not equal sizeof(ofw_arg_t).
Define architecture dependant #address-cells and #size-cells for cases
the respective properties are missing in the OpenFirmware device tree.
The algorithm now works both for ppc32 and sparc64.

Add memmap_t, screen_t and keyboard_t to sparc64 bootinfo structure.
Be more verbose during sparc64 boot.

Move ALIGN_UP to generic part of boot/.

Change header guards in several places so that they don't contain double underscore.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • boot/arch/ppc32/loader/ofwarch.h

    reda7bf81 r63cda71  
    11/*
    2  * Copyright (C) 2005 Martin Decky
     2 * Copyright (C) 2006 Jakub Jermar
    33 * All rights reserved.
    44 *
     
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
    28  
    29 #include <ofw.h>
    30 #include <printf.h>
    3128
    32 void write(const char *str, const int len)
    33 {
    34         int i;
    35        
    36         for (i = 0; i < len; i++) {
    37                 if (str[i] == '\n')
    38                         ofw_write("\r", 1);
    39                 ofw_write(&str[i], 1);
    40         }
    41 }
     29#ifndef BOOT_ppc32_OFWARCH_H_
     30#define BOOT_ppc32_OFWARCH_H_
    4231
    43 int ofw_translate_failed(ofw_arg_t flag)
    44 {
    45         return flag != -1;
    46 }
     32#define OFW_ADDRESS_CELLS       1
     33#define OFW_SIZE_CELLS          1
     34
     35#endif
Note: See TracChangeset for help on using the changeset viewer.