Code doesn't run with TSIM
Pattara Kiatisevi
pkiatisevi at student.ei.uni-stuttgart.de
Tue Mar 5 17:47:08 UTC 2002
Dear all,
I have a code that runs on TSIM/LEON fine but after I modified the code to
run with RTEMS:
-change main() --> rtems_task Init ( rtems_task_argument ignored)
-add these headers:
/* RTEMS stuff */
#include <rtems.h>
/* configuration information */
#define CONFIGURE_INIT
#include <bsp.h> /* for device driver prototypes */
rtems_task Init( rtems_task_argument argument); /* forward declaration
needed */
/* configuration information */
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_MAXIMUM_TASKS 4
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_EXTRA_TASK_STACKS (3 * RTEMS_MINIMUM_STACK_SIZE)
#define CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE
#define CONFIGURE_MAXIMUM_DRIVERS 3
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 5
#include <console.h>
#include "../rtems-sound/sound.c"
rtems_driver_address_table Device_drivers[] = {
CONSOLE_DRIVER_TABLE_ENTRY,
SOUND_DRIVER_TABLE_ENTRY,
{ NULL, NULL, NULL, NULL, NULL, NULL }
};
#include <confdefs.h>
-----------------------------------------------------------
But this RTEMS version of code doesn't run. Do I miss anything in the
header? The program has quite a big data segment.
$ sparc-rtems-size rtems-player
text data bss dec hex filename
233088 256560 13884 503532 7aeec rtems-player
Or could you direct me which document I should read?
Thank you very much,
Pattara
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
----------------------------------------------------------------------
Ott Pattara Kiatisevi T L W G
M.Sc. INFOTECH Student, Stuttgart, Germany http://linux.thai.net/
----------------------------------------------------------------------
More information about the users
mailing list