dtb_object.hh (9538:182d67b5b57a) | dtb_object.hh (10508:aa46a8ae3487) |
---|---|
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; --- 46 unchanged lines hidden (view full) --- 55 56 /** Adds the passed in Command Line options for the kernel 57 * to the proper location in the device tree. 58 * @param _args command line to append 59 * @param len length of the command line string 60 * @return returns true on success, false otherwise 61 */ 62 bool addBootCmdLine(const char* _args, size_t len); | 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; --- 46 unchanged lines hidden (view full) --- 55 56 /** Adds the passed in Command Line options for the kernel 57 * to the proper location in the device tree. 58 * @param _args command line to append 59 * @param len length of the command line string 60 * @return returns true on success, false otherwise 61 */ 62 bool addBootCmdLine(const char* _args, size_t len); |
63 64 /** Parse the DTB file enough to find the provided release 65 * address and return it. 66 * @return release address for SMP boot 67 */ 68 Addr findReleaseAddr(); 69 |
|
63 bool loadGlobalSymbols(SymbolTable *symtab, 64 Addr addrMask = std::numeric_limits<Addr>::max()); 65 bool loadLocalSymbols(SymbolTable *symtab, 66 Addr addrMask = std::numeric_limits<Addr>::max()); 67 68 /** Static function that tries to load file as a 69 * flattened device tree blob. 70 * @param fname path to file 71 * @param fd file descriptor of object file 72 * @param len length of file 73 * @param data mmap'ed data buffer containing file contents 74 * @return ObjectFile representing closest match of file type 75 */ 76 static ObjectFile *tryFile(const std::string &fname, int fd, 77 size_t len, uint8_t *data); 78}; 79 80#endif //__DTB_OBJECT_HH__ | 70 bool loadGlobalSymbols(SymbolTable *symtab, 71 Addr addrMask = std::numeric_limits<Addr>::max()); 72 bool loadLocalSymbols(SymbolTable *symtab, 73 Addr addrMask = std::numeric_limits<Addr>::max()); 74 75 /** Static function that tries to load file as a 76 * flattened device tree blob. 77 * @param fname path to file 78 * @param fd file descriptor of object file 79 * @param len length of file 80 * @param data mmap'ed data buffer containing file contents 81 * @return ObjectFile representing closest match of file type 82 */ 83 static ObjectFile *tryFile(const std::string &fname, int fd, 84 size_t len, uint8_t *data); 85}; 86 87#endif //__DTB_OBJECT_HH__ |