Changeset dce79aee in rtems


Ignore:
Timestamp:
May 5, 2009, 9:17:47 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
8259452
Parents:
43776b57
Message:

2009-05-05 Joel Sherrill <joel.sherrill@…>

  • bootcard.c, gdbstub/rtems-stub-glue.c: Add info to not enough memory message.
Location:
c/src/lib/libbsp/shared
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/ChangeLog

    r43776b57 rdce79aee  
     12009-05-05      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * bootcard.c, gdbstub/rtems-stub-glue.c: Add info to not enough memory
     4        message.
     5
    162009-05-03      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • c/src/lib/libbsp/shared/bootcard.c

    r43776b57 rdce79aee  
    154154
    155155  if ( work_area_size <= Configuration.work_space_size ) {
    156     printk( "bootcard: Work space too big for work area!\n");
     156    printk(
     157      "bootcard: Work space too big for work area! (%d > %d)\n",
     158      Configuration.work_space_size,
     159      work_area_size
     160    );
    157161    bsp_cleanup();
    158162    return -1;
  • c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c

    r43776b57 rdce79aee  
    336336
    337337      strcat(info->display, tmp_buf);
    338       rtems_object_get_name( thread, 5, info->name );
     338      rtems_object_get_name( ((Objects_Control*)th)->id, 5, info->name );
    339339      info->more_display[0] = 0; /* Nothing */
    340340
     
    368368
    369369   strcat(info->display, tmp_buf);
    370    rtems_object_get_name( thread, 5, info->name );
     370   rtems_object_get_name( ((Objects_Control*)th)->id, 5, info->name );
    371371   info->more_display[0] = 0; /* Nothing */
    372372
     
    13591359}
    13601360
     1361#elif defined(__lm32__)
     1362
     1363void rtems_gdb_stub_get_registers_from_context(
     1364  unsigned int   *registers,
     1365  Thread_Control *th
     1366)
     1367{
     1368  registers[LM32_REG_R11] = (uint32_t)th->Registers.r11;
     1369  registers[LM32_REG_R12] = (uint32_t)th->Registers.r12;
     1370  registers[LM32_REG_R13] = (uint32_t)th->Registers.r13;
     1371  registers[LM32_REG_R14] = (uint32_t)th->Registers.r14;
     1372  registers[LM32_REG_R15] = (uint32_t)th->Registers.r15;
     1373  registers[LM32_REG_R16] = (uint32_t)th->Registers.r16;
     1374  registers[LM32_REG_R17] = (uint32_t)th->Registers.r17;
     1375  registers[LM32_REG_R18] = (uint32_t)th->Registers.r18;
     1376  registers[LM32_REG_R19] = (uint32_t)th->Registers.r19;
     1377  registers[LM32_REG_R20] = (uint32_t)th->Registers.r20;
     1378  registers[LM32_REG_R21] = (uint32_t)th->Registers.r21;
     1379  registers[LM32_REG_R22] = (uint32_t)th->Registers.r22;
     1380  registers[LM32_REG_R23] = (uint32_t)th->Registers.r23;
     1381  registers[LM32_REG_R24] = (uint32_t)th->Registers.r24;
     1382  registers[LM32_REG_R25] = (uint32_t)th->Registers.r25;
     1383  registers[LM32_REG_GP] = (uint32_t)th->Registers.gp;
     1384  registers[LM32_REG_FP] = (uint32_t)th->Registers.fp;
     1385  registers[LM32_REG_SP] = (uint32_t)th->Registers.sp;
     1386  registers[LM32_REG_RA] = (uint32_t)th->Registers.ra;
     1387  registers[LM32_REG_IE] = (uint32_t)th->Registers.ie;
     1388#if 1
     1389  registers[LM32_REG_PC] = (uint32_t)th->Registers.epc;
     1390#else
     1391  registers[LM32_REG_PC] = (uint32_t)_CPU_Context_switch;
     1392#endif
     1393}
     1394
     1395int rtems_gdb_stub_get_offsets(
     1396  unsigned char **text_addr,
     1397  unsigned char **data_addr,
     1398  unsigned char **bss_addr
     1399)
     1400{
     1401  *text_addr = 0;
     1402  *data_addr = 0;
     1403  *bss_addr  = 0;
     1404  return 1;
     1405}
     1406
    13611407#else
    13621408#error "rtems-gdb-stub.c: Unsupported CPU!"
Note: See TracChangeset for help on using the changeset viewer.