Changeset 2fd684e in rtems


Ignore:
Timestamp:
Jan 16, 2018, 10:42:34 AM (18 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b391fbc6
Parents:
0df59b7c
git-author:
Sebastian Huber <sebastian.huber@…> (01/16/18 10:42:34)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/22/18 06:21:20)
Message:

bsp/qoriq: Fix hypervisor guest irq vector max

Update #3085.

Location:
c/src/lib/libbsp/powerpc/qoriq
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/qoriq/include/irq.h

    r0df59b7c r2fd684e  
    3232extern "C" {
    3333#endif /* __cplusplus */
     34
     35#ifdef QORIQ_IS_HYPERVISOR_GUEST
     36
     37#define BSP_INTERRUPT_VECTOR_MAX 1023
     38
     39#else /* !QORIQ_IS_HYPERVISOR_GUEST */
    3440
    3541#define QORIQ_IRQ_ERROR 0
     
    345351#define QORIQ_IRQ_GT_B_3 (QORIQ_IRQ_GT_BASE + 7)
    346352
    347 /** @} */
     353#define BSP_INTERRUPT_VECTOR_MAX QORIQ_IRQ_GT_B_3
     354
     355/** @} */
     356
     357#endif /* QORIQ_IS_HYPERVISOR_GUEST */
    348358
    349359/**
     
    358368
    359369#define BSP_INTERRUPT_VECTOR_MIN 0
    360 #define BSP_INTERRUPT_VECTOR_MAX QORIQ_IRQ_GT_B_3
    361370
    362371#define QORIQ_PIC_PRIORITY_LOWEST 1
  • c/src/lib/libbsp/powerpc/qoriq/startup/bsprestart.c

    r0df59b7c r2fd684e  
    4949}
    5050
    51 #ifdef RTEMS_SMP
     51#if defined(RTEMS_SMP) && !defined(QORIQ_IS_HYPERVISOR_GUEST)
    5252
    5353#include <rtems/score/smpimpl.h>
     
    134134}
    135135
    136 #else /* RTEMS_SMP */
     136#else /* !RTEMS_SMP || QORIQ_IS_HYPERVISOR_GUEST */
    137137
    138138void bsp_restart(void *addr)
     
    145145}
    146146
    147 #endif /* !RTEMS_SMP */
     147#endif /* RTEMS_SMP && !QORIQ_IS_HYPERVISOR_GUEST */
Note: See TracChangeset for help on using the changeset viewer.