Changeset 40d24d5 in rtems


Ignore:
Timestamp:
Apr 26, 2015, 6:26:50 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
a8e4352
Parents:
7f53035
git-author:
Sebastian Huber <sebastian.huber@…> (04/26/15 18:26:50)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/27/15 08:17:31)
Message:

sptests/spstkalloc02: Fix namespace issue

Avoid collision with <sys/param.h> defined PAGE_SIZE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spstkalloc02/init.c

    r7f53035 r40d24d5  
    3636#define TASK_COUNT 5
    3737
    38 #define PAGE_SIZE 1024
     38#define STACK_HEAP_PAGE_SIZE 1024
    3939
    4040static Heap_Control task_stack_heap;
     
    128128#define CONFIGURE_TASK_STACK_ALLOCATOR_AVOIDS_WORK_SPACE
    129129#define CONFIGURE_TASK_STACK_FROM_ALLOCATOR(stack_size) \
    130   ((stack_size) + HEAP_BLOCK_HEADER_SIZE + PAGE_SIZE - 1)
     130  ((stack_size) + HEAP_BLOCK_HEADER_SIZE + STACK_HEAP_PAGE_SIZE - 1)
    131131
    132132#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     
    147147    task_stack_space,
    148148    sizeof(task_stack_space),
    149     PAGE_SIZE
     149    STACK_HEAP_PAGE_SIZE
    150150  );
    151151
Note: See TracChangeset for help on using the changeset viewer.