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


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.c

    reda7bf81 r63cda71  
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
    28  
     28
     29#include <ofwarch.h>
    2930#include <ofw.h>
    3031#include <printf.h>
     
    5657        if (ofw_get_property(device, "assigned-addresses", &macio, sizeof(macio)) <= 0)
    5758                return false;
    58         keyboard->addr = macio.addr.addr_lo;
     59        keyboard->addr = (void *) macio.addr.addr_lo;
    5960        keyboard->size = macio.size_lo;
    6061
Note: See TracChangeset for help on using the changeset viewer.