Changeset b9b3f3b7 in rtems


Ignore:
Timestamp:
Jul 18, 2012, 7:20:46 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
dafacfa7
Parents:
32ec0f6b
git-author:
Sebastian Huber <sebastian.huber@…> (07/18/12 07:20:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/18/12 07:46:14)
Message:

bsp/mpc55xx: Add MPC55XX_NULL_POINTER_PROTECTION

Location:
c/src/lib/libbsp/powerpc/mpc55xxevb
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac

    r32ec0f6b rb9b3f3b7  
    8080[Must be defined to set the EMIOS prescaler])
    8181
     82RTEMS_BSPOPTS_SET([MPC55XX_NULL_POINTER_PROTECTION],[mpc5566*],[1])
     83RTEMS_BSPOPTS_SET([MPC55XX_NULL_POINTER_PROTECTION],[mpc5674f*],[1])
     84RTEMS_BSPOPTS_HELP([MPC55XX_NULL_POINTER_PROTECTION],
     85[enable NULL pointer protection])
     86
    8287RTEMS_BSPOPTS_SET([HAS_SMC91111],[phycore_mpc5554],[1])
    8388RTEMS_BSPOPTS_HELP([HAS_SMC91111],
  • c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in

    r32ec0f6b rb9b3f3b7  
    7777#undef MPC55XX_NEEDS_LOW_LEVEL_INIT
    7878
     79/* enable NULL pointer protection */
     80#undef MPC55XX_NULL_POINTER_PROTECTION
     81
    7982/* Must be defined to be the external reference clock (in Hz) for clock
    8083   generation */
  • c/src/lib/libbsp/powerpc/mpc55xxevb/startup/bspstart.c

    r32ec0f6b rb9b3f3b7  
    7979static void null_pointer_protection(void)
    8080{
    81 #if defined(MPC55XX_BOARD_MPC5674FEVB) || defined(MPC55XX_BOARD_MPC5566EVB)
     81#ifdef MPC55XX_NULL_POINTER_PROTECTION
    8282        struct MMU_tag mmu = { .MAS0 = { .B = { .TLBSEL = 1, .ESEL = 1 } } };
    8383
Note: See TracChangeset for help on using the changeset viewer.