/* Copyright (c) 2000,2001 Sinby.com
   All Rights Reserved

   This project is covered by the GNU General Public License. */

/* $Id: md.h,v 1.5 2001/02/21 16:35:55 ryos Exp $ */

#ifndef __sh_ecos_md_h
#define __sh_ecos_md_h

#include "sh/common.h"
#include "sh/threads.h"

#include <pkgconf/libc_startup.h>
#include <sinby/kaffe/md.h>

#define INIT_MD kaffe_ecos_init
#define MAIN_MD kaffe_ecos_main(&argc, &argv)

#ifdef CYGNUM_POSIX_MAIN_DEFAULT_STACK_SIZE
#define MAINSTACKSIZE	CYGNUM_POSIX_MAIN_DEFAULT_STACK_SIZE
#elif CYGSEM_LIBC_MAIN_STACK_FROM_SYSTEM
#define MAINSTACKSIZE	CYGNUM_LIBC_MAIN_DEFAULT_STACK_SIZE
#else
extern int cyg_libc_main_stack_size;
#define MAINSTACKSIZE	cyg_libc_main_stack_size
#endif

#define CREATE_NULLPOINTER_CHECKS 1

#endif
