blob: 2bbc9efbd5700c33fd0f3cc2f1025efed67d37b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: import/chips/p9/procedures/ppe_closed/cme/iota_app_cfg.h $ */
/* */
/* OpenPOWER HCODE Project */
/* */
/* COPYRIGHT 2017,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
/* You may obtain a copy of the License at */
/* */
/* http://www.apache.org/licenses/LICENSE-2.0 */
/* */
/* Unless required by applicable law or agreed to in writing, software */
/* distributed under the License is distributed on an "AS IS" BASIS, */
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
/* implied. See the License for the specific language governing */
/* permissions and limitations under the License. */
/* */
/* IBM_PROLOG_END_TAG */
#if !defined(__IOTA_APP_CFG__)
#define __IOTA_APP_CFG__
/**
* @file iota_app_cfg.h
* @brief IOTA CONFIGURATION SETTINGS
*/
// parts of pk that are included require this
// Having two app_cfg files seems confusing
#include "pk_app_cfg.h"
#include "cme_register_addresses.h"
#define PLATFORM_PANIC_CODES_H "cme_panic_codes.h"
#include "pk_panic_codes.h"
#if !defined(__ASSEMBLER__)
#include "p9_cme_irq.h"
//Maximum number of external interrupt priority levels
// and thus also the maximum number of prioritized tasks allowed.
#define IOTA_NUM_EXT_IRQ_PRIORITIES NUM_EXT_IRQ_PRTY_LEVELS
#endif
#define NUM_TIMER_INTERRUPTS \
(ENABLE_CME_WATCHDOG_TIMER ? 1:0 + \
ENABLE_CME_DEC_TIMER ? 1:0 + \
DISABLE_CME_FIT_TIMER ? 0:1)
// Maximum number of expected nested interrupts
//
// We add 3 here to account for FIT, DEC, and Watchdog Interrupts
// First, we start with the total number of priority levels, and then
// add one for each enabled timer interrupt plus one to leave a
// stack entry unused for checking
//
#define IOTA_MAX_NESTED_INTERRUPTS (IOTA_NUM_EXT_IRQ_PRIORITIES + \
NUM_TIMER_INTERRUPTS + 1)
//An "idle" task is one that only runs when the ppe42 engine would otherwise
//be idle and thus has the lowest priority and can be interrupted by anything.
//To enable IDLE task support in the kernel set this to 1. (OPT)
#define IOTA_IDLE_TASKS_ENABLE 0
//To automatically disable an "IDLE" task after executing, set this to 1. (OPT)
#define IOTA_AUTO_DISABLE_IDLE_TASKS 0
// Main "execution" stack size in bytes, must be multiple of 8
#define IOTA_EXECUTION_STACK_SIZE 2048
#define LOCAL_TIMEBASE_REGISTER CME_LCL_TBR
#endif
|