Changeset 63cda71 in mainline for boot/arch/ppc32/loader/main.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 edited

Legend:

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

    reda7bf81 r63cda71  
    2727 */
    2828
    29 #ifndef __MAIN_H__
    30 #define __MAIN_H__
     29#ifndef BOOT_ppc32_MAIN_H_
     30#define BOOT_ppc32_MAIN_H_
    3131
    3232#include "ofw.h"
    33 
    34 /** Align to the nearest higher address.
    35  *
    36  * @param addr  Address or size to be aligned.
    37  * @param align Size of alignment, must be power of 2.
    38  */
    39 #define ALIGN_UP(addr, align) (((addr) + ((align) - 1)) & ~((align) - 1))
    4033
    4134#define TASKMAP_MAX_RECORDS 32
Note: See TracChangeset for help on using the changeset viewer.