Revision e6e5906b linux-user/elfload.c

b/linux-user/elfload.c
288 288

  
289 289
#endif
290 290

  
291
#ifdef TARGET_M68K
292

  
293
#define ELF_START_MMAP 0x80000000
294

  
295
#define elf_check_arch(x) ( (x) == EM_68K )
296

  
297
#define ELF_CLASS	ELFCLASS32
298
#define ELF_DATA	ELFDATA2MSB
299
#define ELF_ARCH	EM_68K
300

  
301
/* ??? Does this need to do anything?
302
#define ELF_PLAT_INIT(_r) */
303

  
304
static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop)
305
{
306
    regs->usp = infop->start_stack;
307
    regs->sr = 0;
308
    regs->pc = infop->entry;
309
}
310

  
311
#define USE_ELF_CORE_DUMP
312
#define ELF_EXEC_PAGESIZE	8192
313

  
314
#endif
315

  
291 316
#ifndef ELF_PLATFORM
292 317
#define ELF_PLATFORM (NULL)
293 318
#endif

Also available in: Unified diff