Rev 453 | Rev 572 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
////// Copyright 2011 TheSeven////// This file is part of emCORE.//// emCORE is free software: you can redistribute it and/or// modify it under the terms of the GNU General Public License as// published by the Free Software Foundation, either version 2 of the// License, or (at your option) any later version.//// emCORE is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.// See the GNU General Public License for more details.//// You should have received a copy of the GNU General Public License along// with emCORE. If not, see <http://www.gnu.org/licenses/>.////#ifndef __EXECIMAGE_H__#define __EXECIMAGE_H__#ifdef _TOOL#include <stdint.h>#else#include "global.h"#include "thread.h"#endif#define EMCOREAPP_HEADER_VERSION 1struct emcoreapp_header{char signature[8];uint32_t version;off_t textstart;size_t textsize;size_t bsssize;size_t stacksize;off_t entrypoint;off_t relocstart;uint32_t reloccount;uint32_t flags;uint32_t creationtime;};#define EMCOREAPP_FLAG_COMPRESSED 0x00000001#define EMCOREAPP_FLAG_LIBRARY 0x00000002#ifndef _TOOLstruct scheduler_thread* execimage(void* image, bool copy);#endif#endif