mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-19 01:29:36 +08:00
libtests/record02: Increase stack size
The fetch() function requires a considerable amount of stack space. Increase the stack size accordingly. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
committed by
Kinsey Moore
parent
1ef634d984
commit
56ae0855be
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: BSD-2-Clause */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2018, 2024 embedded brains GmbH & Co. KG
|
||||
* Copyright (C) 2018, 2026 embedded brains GmbH & Co. KG
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -39,6 +39,8 @@
|
||||
|
||||
const char rtems_test_name[] = "RECORD 2";
|
||||
|
||||
#define ITEM_COUNT_FOR_FETCH 256
|
||||
|
||||
typedef struct {
|
||||
rtems_record_client_context client;
|
||||
} test_context;
|
||||
@@ -149,7 +151,7 @@ static void fetch( test_context *ctx )
|
||||
{
|
||||
rtems_record_client_status cs;
|
||||
rtems_record_fetch_control control;
|
||||
rtems_record_item items[ 256 ];
|
||||
rtems_record_item items[ ITEM_COUNT_FOR_FETCH ];
|
||||
rtems_record_fetch_status fs;
|
||||
|
||||
rtems_record_fetch_initialize(
|
||||
@@ -238,6 +240,10 @@ static void fatal_extension(
|
||||
#define CONFIGURE_INITIAL_EXTENSIONS \
|
||||
INITIAL_EXTENSION, RTEMS_TEST_INITIAL_EXTENSION
|
||||
|
||||
/* The fetch() function requires a considerable amout of stack space */
|
||||
#define CONFIGURE_INIT_TASK_STACK_SIZE \
|
||||
( RTEMS_MINIMUM_STACK_SIZE + 16 * ITEM_COUNT_FOR_FETCH )
|
||||
|
||||
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
||||
|
||||
#define CONFIGURE_RECORD_PER_PROCESSOR_ITEMS 512
|
||||
|
||||
Reference in New Issue
Block a user