Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:48

0001 /*
0002  *  Copyright (c) 2013 Chirayu Desai <cdesai@cyanogenmod.org>
0003  *
0004  *  The license and distribution terms for this file may be
0005  *  found in the file LICENSE in this distribution or at
0006  *  http://www.rtems.org/license/LICENSE.
0007  */
0008 
0009 #ifdef HAVE_CONFIG_H
0010 #include "config.h"
0011 #endif
0012 
0013 #include <tmacros.h>
0014 #include <rtems.h>
0015 #include <limits.h>
0016 #include <unistd.h>
0017 #include <sys/param.h>
0018 
0019 const char rtems_test_name[] = "SPPAGESIZE";
0020 
0021 /* forward declarations to avoid warnings */
0022 rtems_task Init(rtems_task_argument argument);
0023 
0024 rtems_task Init(
0025   rtems_task_argument argument
0026 )
0027 {
0028     TEST_BEGIN();
0029 
0030     rtems_test_assert(PAGESIZE == PAGE_SIZE);
0031     rtems_test_assert(getpagesize() == PAGE_SIZE);
0032 
0033     TEST_END();
0034 
0035     rtems_test_exit(0);
0036 }
0037 
0038 #define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
0039 #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
0040 
0041 #define CONFIGURE_MAXIMUM_TASKS 1
0042 
0043 #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
0044 
0045 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
0046 
0047 #define CONFIGURE_INIT
0048 
0049 #include <rtems/confdefs.h>