dtb_object.cc (11761:285cab6580a7) | dtb_object.cc (11793:ef606668d247) |
---|---|
1/* 2 * Copyright (c) 2013 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 21 unchanged lines hidden (view full) --- 30 31#include "base/loader/dtb_object.hh" 32 33#include <sys/mman.h> 34#include <unistd.h> 35 36#include <cassert> 37 | 1/* 2 * Copyright (c) 2013 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 21 unchanged lines hidden (view full) --- 30 31#include "base/loader/dtb_object.hh" 32 33#include <sys/mman.h> 34#include <unistd.h> 35 36#include <cassert> 37 |
38#include "sim/byteswap.hh" | |
39#include "fdt.h" 40#include "libfdt.h" | 38#include "fdt.h" 39#include "libfdt.h" |
40#include "sim/byteswap.hh" |
|
41 42ObjectFile * 43DtbObject::tryFile(const std::string &fname, size_t len, uint8_t *data) 44{ 45 // Check if this is a FDT file by looking for magic number 46 if (fdt_magic((void*)data) == FDT_MAGIC) { 47 return new DtbObject(fname, len, data, 48 ObjectFile::UnknownArch, ObjectFile::UnknownOpSys); --- 147 unchanged lines hidden --- | 41 42ObjectFile * 43DtbObject::tryFile(const std::string &fname, size_t len, uint8_t *data) 44{ 45 // Check if this is a FDT file by looking for magic number 46 if (fdt_magic((void*)data) == FDT_MAGIC) { 47 return new DtbObject(fname, len, data, 48 ObjectFile::UnknownArch, ObjectFile::UnknownOpSys); --- 147 unchanged lines hidden --- |