Changeset 39cc10a in rtems


Ignore:
Timestamp:
Sep 5, 2008, 2:42:59 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
40c2d41e
Parents:
94130db
Message:

2008-09-05 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, preinstall.am, shmsupp/getcfg.c, shmsupp/lock.c, startup/linkcmds: Now running mptests using new memory layout with updates patches against gdb 6.8.
  • include/psim.h, startup/psim_registers.c: New files.
Location:
c/src/lib/libbsp/powerpc/psim
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/ChangeLog

    r94130db r39cc10a  
     12008-09-05      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, preinstall.am, shmsupp/getcfg.c, shmsupp/lock.c,
     4        startup/linkcmds: Now running mptests using new memory layout with
     5        updates patches against gdb 6.8.
     6        * include/psim.h, startup/psim_registers.c: New files.
     7
    182008-08-29      Joel Sherrill <joel.sherrill@OARcorp.com>
    29
  • c/src/lib/libbsp/powerpc/psim/Makefile.am

    r94130db r39cc10a  
    1616include_HEADERS = include/bsp.h
    1717include_HEADERS += include/tm27.h
     18include_HEADERS += include/psim.h
    1819
    1920nodist_include_HEADERS = include/bspopts.h
     
    4344    ../../shared/bsppost.c ../../shared/bsppretaskinghook.c \
    4445    ../../shared/bsppredriverhook.c startup/bspstart.c ../../shared/bootcard.c \
    45     ../../shared/sbrk.c ../../shared/gnatinstallhandler.c
     46    ../../shared/sbrk.c ../../shared/gnatinstallhandler.c \
     47    startup/psim_registers.c
    4648
    4749pclock_SOURCES = ../shared/clock/p_clock.c
  • c/src/lib/libbsp/powerpc/psim/preinstall.am

    r94130db r39cc10a  
    4141PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
    4242
     43$(PROJECT_INCLUDE)/psim.h: include/psim.h $(PROJECT_INCLUDE)/$(dirstamp)
     44        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/psim.h
     45PREINSTALL_FILES += $(PROJECT_INCLUDE)/psim.h
     46
    4347$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
    4448        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
  • c/src/lib/libbsp/powerpc/psim/shmsupp/getcfg.c

    r94130db r39cc10a  
    1313 *  NOTES:  No interrupt support.
    1414 *
    15  *  COPYRIGHT (c) 1989-1999.
     15 *  COPYRIGHT (c) 1989-2008.
    1616 *  On-Line Applications Research Corporation (OAR).
    1717 *
     
    2424
    2525#include <rtems.h>
     26#include <psim.h>
    2627#include "shm_driver.h"
    2728
     
    3637)
    3738{
    38    BSP_shm_cfgtbl.base         = (uint32_t*)0xc0000000;
    39    BSP_shm_cfgtbl.length       = 64 * 1024;
     39   BSP_shm_cfgtbl.base         = (uint32_t*)PSIM.SharedMemory;
     40   BSP_shm_cfgtbl.length       = sizeof(PSIM.SharedMemory);
    4041   BSP_shm_cfgtbl.format       = SHM_BIG;
    4142
  • c/src/lib/libbsp/powerpc/psim/shmsupp/lock.c

    r94130db r39cc10a  
    77 *  previous level.
    88 *
    9  *  COPYRIGHT (c) 1989-1997.
     9 *  COPYRIGHT (c) 1989-2008.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    2020#include <bsp.h>
    2121#include <shm_driver.h>
    22 
    23 typedef volatile unsigned int volint;
     22#include <psim.h>
    2423
    2524/*
     
    4746)
    4847{
    49   volint *p = (volint *)0xc0010000;
    50 
    51   (void) p[1];
     48  (void) PSIM.Semaphore.lock;
    5249}
    5350
     
    6259)
    6360{
    64   volint *p = (volint *)0xc0010000;
    65 
    66   (void) p[2];
     61  (void) PSIM.Semaphore.unlock;
    6762}
  • c/src/lib/libbsp/powerpc/psim/startup/linkcmds

    r94130db r39cc10a  
    11/*
    2  *
    3  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2008.
    43 *  On-Line Applications Research Corporation (OAR).
    54 *
     
    1110 */
    1211
    13 OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc",
    14               "elf32-powerpc")
     12OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", "elf32-powerpc")
    1513OUTPUT_ARCH(powerpc)
    1614ENTRY(_start)
    1715/* Do we need any of these for elf?
    1816   __DYNAMIC = 0;    */
    19 PROVIDE (PSIM_INSTRUCTIONS_PER_MICROSECOND = 10000);   /* 100); */
    20 PROVIDE (CPU_PPC_CLICKS_PER_MS = 16667);
     17PROVIDE (PSIM_INSTRUCTIONS_PER_MICROSECOND = 10000);
    2118MEMORY
    2219  {
    23         RAM : ORIGIN = 0, LENGTH = 8M
    24         EPROM : ORIGIN = 0xFFF00000, LENGTH = 0x20000
     20        RAM       : ORIGIN = 0, LENGTH = 8M
     21        PSIM_REGS : ORIGIN = 0x0c000000, LENGTH = 16M
     22        VECTORS   : ORIGIN = 0xFFF00000, LENGTH = 0x20000
    2523  }
    2624
     
    3028  {
    3129        *(.entry_point_section)
    32   } > EPROM
     30  } > VECTORS
     31
     32  /*
     33   * BSP: PSIM Register Block
     34   */
     35  .psim_regs (NOLOAD) : {
     36    psim_reg*(.text)
     37    psim_reg*(.data)
     38    psim_reg*(.bss)
     39    psim_reg*(COMMON)
     40  } > PSIM_REGS
    3341
    3442  /* Read-only sections, merged into text segment: */
Note: See TracChangeset for help on using the changeset viewer.