Rename nanokernel's nanok.h to nano_private.h

The new name better reflects that this file contains all private
nanokernel APIs that are used by various kernel subsystems.

Change-Id: I4c258d582e93753eec9e575fdb5f9f2109417a0f
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
Allan Stephens 2015-06-19 11:07:02 -04:00 committed by Anas Nashif
commit c29d41cab7
63 changed files with 77 additions and 77 deletions

View file

@ -39,7 +39,7 @@
#include <nanokernel.h>
#include <arch/cpu.h>
#include <toolchain.h>
#include <nanok.h>
#include <nano_private.h>
#include <offsets.h>
#include <wait_q.h>

View file

@ -37,7 +37,7 @@ CPU power management routines.
#define _ASMLANGUAGE
#include <nanok.h>
#include <nano_private.h>
#include <offsets.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -39,7 +39,7 @@ See isr_wrapper.S for details.
#define _ASMLANGUAGE
#include <nanok.h>
#include <nano_private.h>
#include <offsets.h>
#include <toolchain.h>
#include <arch/cpu.h>

View file

@ -36,7 +36,7 @@ This module implements the routines necessary for handling fatal faults on
ARCv2 CPUs.
*/
#include <nanok.h>
#include <nano_private.h>
#include <offsets.h>
#include <toolchain.h>
#include <arch/cpu.h>

View file

@ -39,7 +39,7 @@
#include <sections.h>
#include <nanokernel.h>
#include <nanok.h>
#include <nano_private.h>
#ifdef CONFIG_PRINTK
#include <misc/printk.h>

View file

@ -35,7 +35,7 @@
#define _ASMLANGUAGE
#include <nanok.h>
#include <nano_private.h>
#include <offsets.h>
#include <toolchain.h>
#include <arch/cpu.h>

View file

@ -43,7 +43,7 @@ a parameter.
#include <toolchain.h>
#include <sections.h>
#include <sw_isr_table.h>
#include <nanok.h>
#include <nano_private.h>
#include <arch/cpu.h>
GTEXT(_isr_enter)

View file

@ -49,7 +49,7 @@ completeness.
*/
#include <genOffset.h>
#include <nanok.h>
#include <nano_private.h>
#include <offsets/common.h>
/* ARCv2-specific tCCS structure member offsets */

View file

@ -40,7 +40,7 @@ See isr_wrapper.S for details.
#define _ASMLANGUAGE
#include <nanok.h>
#include <nano_private.h>
#include <offsets.h>
#include <toolchain.h>
#include <arch/cpu.h>

View file

@ -40,7 +40,7 @@ See isr_wrapper.S for details.
#define _ASMLANGUAGE
#include <nanok.h>
#include <nano_private.h>
#include <offsets.h>
#include <toolchain.h>
#include <arch/cpu.h>

View file

@ -33,7 +33,7 @@
#ifndef _SWAP_MACROS__H_
#define _SWAP_MACROS__H_
#include <nanok.h>
#include <nano_private.h>
#include <offsets.h>
#include <toolchain.h>
#include <arch/cpu.h>

View file

@ -1,4 +1,4 @@
/* nanok.h - private nanokernel definitions */
/* nano_private.h - private nanokernel definitions */
/*
* Copyright (c) 2014 Wind River Systems, Inc.
@ -41,8 +41,8 @@ source files obtains structure offset values via "absolute symbols" in the
offsets.o module.
*/
#ifndef _NANOK__H_
#define _NANOK__H_
#ifndef _NANO_PRIVATE_H
#define _NANO_PRIVATE_H
#ifdef __cplusplus
extern "C" {
@ -286,4 +286,4 @@ static inline void _IntLibInit(void)
}
#endif
#endif /* _NANOK__H_ */
#endif /* _NANO_PRIVATE_H */

View file

@ -41,7 +41,7 @@ DESCRIPTION
#include <sections.h>
#include <arch/cpu.h>
#ifdef CONFIG_TICKLESS_IDLE
#include <nanok.h>
#include <nano_private.h>
#endif
_ASM_FILE_PROLOGUE

View file

@ -40,7 +40,7 @@ wrapped around by _isr_wrapper()).
#define _ASMLANGUAGE
#include <nanok.h>
#include <nano_private.h>
#include <offsets.h>
#include <toolchain.h>
#include <arch/cpu.h>

View file

@ -39,7 +39,7 @@ Common fault handler for ARM Cortex-M processors.
#include <sections.h>
#include <nanokernel.h>
#include <nanok.h>
#include <nano_private.h>
#ifdef CONFIG_PRINTK
#include <misc/printk.h>

View file

@ -46,7 +46,7 @@ anymore.
#include <offsets.h>
#include <toolchain.h>
#include <sections.h>
#include <nanok.h>
#include <nano_private.h>
#include <arch/cpu.h>
_ASM_FILE_PROLOGUE

View file

@ -43,7 +43,7 @@ a parameter.
#include <toolchain.h>
#include <sections.h>
#include <sw_isr_table.h>
#include <nanok.h>
#include <nano_private.h>
#include <arch/cpu.h>
_ASM_FILE_PROLOGUE

View file

@ -45,7 +45,7 @@ the PendSV exception.
#include <micro_private_types.h>
#endif
#include <nanok.h>
#include <nano_private.h>
#include <toolchain.h>
#include <sections.h>
#include <nanokernel.h>

View file

@ -39,7 +39,7 @@ architecture.
#include <nanokernel.h>
#include <arch/cpu.h>
#include <toolchain.h>
#include <nanok.h>
#include <nano_private.h>
#include <wait_q.h>
tNANO _nanokernel = {0};

View file

@ -39,7 +39,7 @@ This module provides the _NanoFatalErrorHandler() routine for ARM Cortex-M.
#include <sections.h>
#include <nanokernel.h>
#include <nanok.h>
#include <nano_private.h>
#ifdef CONFIG_PRINTK
#include <misc/printk.h>

View file

@ -49,7 +49,7 @@ completeness.
*/
#include <genOffset.h>
#include <nanok.h>
#include <nano_private.h>
#include <offsets/common.h>
/* ARM-specific tNANO structure member offsets */

View file

@ -38,7 +38,7 @@ on ARM Cortex-M3/M4 CPUs.
#define _ASMLANGUAGE
#include <nanok.h>
#include <nano_private.h>
#include <offsets.h>
#include <toolchain.h>
#include <arch/cpu.h>

View file

@ -45,7 +45,7 @@ PendSV exception and cause the immediate context switch to K_swapper.
#include <toolchain.h>
#include <sections.h>
#include <micro_private.h>
#include <nanok.h>
#include <nano_private.h>
#include <microkernel.h>
#include <nanokernel.h>
#include <misc/__assert.h>

View file

@ -38,7 +38,7 @@ Stack helper functions.
#ifndef _ARM_CORTEXM_STACK__H_
#define _ARM_CORTEXM_STACK__H_
#include <nanok.h>
#include <nano_private.h>
#include <asm_inline.h>
#ifdef CONFIG_STACK_GROWS_DOWN

View file

@ -1,4 +1,4 @@
/* nanok.h - private nanokernel definitions (ARM) */
/* nano_private.h - private nanokernel definitions (ARM) */
/*
* Copyright (c) 2013-2014 Wind River Systems, Inc.
@ -41,8 +41,8 @@ source files obtains structure offset values via "absolute symbols" in the
offsets.o module.
*/
#ifndef _NANOK__H_
#define _NANOK__H_
#ifndef _NANO_PRIVATE_H
#define _NANO_PRIVATE_H
#ifdef __cplusplus
extern "C" {
@ -219,4 +219,4 @@ extern void _IntLibInit(void);
}
#endif
#endif /* _NANOK__H_ */
#endif /* _NANO_PRIVATE_H */

View file

@ -44,7 +44,7 @@ Currently empty, only here for abstraction.
#include <sections.h>
#include <micro_private.h>
#include <nanok.h>
#include <nano_private.h>
#include <microkernel/task.h>
#define _START_TASK_ARCH(pKproc, pOpt) \

View file

@ -73,12 +73,12 @@ an error code is present on the stack or not.
NOTE: Be sure to update the arch specific definition of the _EXC_STUB_SIZE
macro to reflect the size of the full exception stub (as shown above).
The _EXC_STUB_SIZE macro is defined in arch/x86/include/nanok.h.
The _EXC_STUB_SIZE macro is defined in arch/x86/include/nano_private.h.
*/
#include <nanokernel.h>
#include <nanok.h>
#include <nano_private.h>
void _NanoCpuExcConnectAtDpl(unsigned int vector,
@ -113,7 +113,7 @@ void _NanoCpuExcConnectAtDpl(unsigned int vector,
* RETURNS: N/A
*
* INTERNAL
* The function prototype for nanoCpuExcConnect() only exists in nanok.h,
* The function prototype for nanoCpuExcConnect() only exists in nano_private.h,
* in other words, it's still considered private since the definitions for
* the NANO_ESF structures have not been completed.
*/
@ -153,7 +153,7 @@ void nanoCpuExcConnect(unsigned int vector, /* interrupt vector: 0 to 255 on
* RETURNS: N/A
*
* INTERNAL
* The function prototype for nanoCpuExcConnect() only exists in nanok.h,
* The function prototype for nanoCpuExcConnect() only exists in nano_private.h,
* in other words, it's still considered private since the definitions for
* the NANO_ESF structures have not been completed.
*/

View file

@ -40,7 +40,7 @@ and exiting a C exception handler.
#define _ASMLANGUAGE
#include <nanok.h>
#include <nano_private.h>
#include <arch/x86/asm.h>
#include <arch/x86/arch.h> /* For MK_ISR_NAME */
#include <offsets.h> /* nanokernel structure offset definitions */

View file

@ -40,7 +40,7 @@ for the IA-32 architecture.
#include <toolchain.h>
#include <sections.h>
#include <nanok.h>
#include <nano_private.h>
#include <arch/cpu.h>
#include <gdt.h>

View file

@ -91,7 +91,7 @@ The _INT_STUB_SIZE macro is defined in include/nanokernel/x86/arch.h.
#include <nanokernel.h>
#include <arch/cpu.h>
#include <nanok.h>
#include <nano_private.h>
#include <misc/__assert.h>
/* the _idt_base_address symbol is generated via a linker script */
@ -106,7 +106,7 @@ extern void _SpuriousIntNoErrCodeHandler(void *);
* the spurious interrupt handlers. They *must* be declared in a module other
* than the one they are used in to get around garbage collection issues and
* warnings issued some compilers that they aren't used. Therefore care must
* be taken if they are to be moved. See nanok.h for more information.
* be taken if they are to be moved. See nano_private.h for more information.
*/
void *_dummy_spurious_interrupt;
void *_dummy_exception_vector_stub;

View file

@ -42,7 +42,7 @@
*/
#include <nanok.h>
#include <nano_private.h>
/* the _idt_base_address symbol is generated via a linker script */

View file

@ -42,7 +42,7 @@ entering and exiting a C interrupt handler.
#ifndef CONFIG_NO_ISRS
#include <nanok.h>
#include <nano_private.h>
#include <arch/x86/asm.h>
#include <offsets.h> /* nanokernel structure offset definitions */
#include <arch/cpu.h> /* _NANO_ERR_SPURIOUS_INT */

View file

@ -56,7 +56,7 @@ utilities.
* void _MsrWrite (unsigned int msr, uint64_t msrData);
*
* The definitions of the so-called "Architectural MSRs" are contained
* in nanok.h and have the format: IA32_XXX_MSR
* in nano_private.h and have the format: IA32_XXX_MSR
*
* INTERNAL
* 1) The 'wrmsr' instruction was introduced in the Pentium processor; executing
@ -87,7 +87,7 @@ SECTION_FUNC(TEXT, _MsrWrite)
* uint64_t _MsrRead (unsigned int msr);
*
* The definitions of the so-called "Architectural MSRs" are contained
* in nanok.h and have the format: IA32_XXX_MSR
* in nano_private.h and have the format: IA32_XXX_MSR
*
* INTERNAL
* 1) The 'rdmsr' instruction was introduced in the Pentium processor; executing

View file

@ -43,7 +43,7 @@ processor architecture.
#include <toolchain.h>
#include <sections.h>
#include <nanok.h>
#include <nano_private.h>
#include <wait_q.h>

View file

@ -39,7 +39,7 @@ This module provides the _NanoFatalErrorHandler() routine.
#include <sections.h>
#include <nanokernel.h>
#include <nanok.h>
#include <nano_private.h>
#include <misc/printk.h>

View file

@ -100,7 +100,7 @@ enable FP resource sharing on its behalf.
#include <micro_private_types.h>
#endif /* CONFIG_MICROKERNEL */
#include <nanok.h>
#include <nano_private.h>
#include <toolchain.h>
#include <asm_inline.h>

View file

@ -51,7 +51,7 @@ completeness.
/* list of headers that define whose structure offsets will be generated */
#include <nanok.h>
#include <nano_private.h>
#include <swapstk.h>

View file

@ -43,7 +43,7 @@ save frame on the stack.
#define _ASMLANGUAGE
#include <nanok.h>
#include <nano_private.h>
#include <arch/x86/asm.h>
#include <offsets.h> /* nanokernel structure offset definitions */

View file

@ -1,4 +1,4 @@
/* nanok.h - private nanokernel definitions (IA-32) */
/* nano_private.h - private nanokernel definitions (IA-32) */
/*
* Copyright (c) 2010-2014 Wind River Systems, Inc.
@ -44,8 +44,8 @@ source files obtains structure offset values via "absolute symbols" in the
offsets.o module.
*/
#ifndef _NANOK_H
#define _NANOK_H
#ifndef _NANO_PRIVATE_H
#define _NANO_PRIVATE_H
#include <toolchain.h>
#include <sections.h>
@ -900,4 +900,4 @@ static inline void _IntLibInit(void)
#endif /* _ASMLANGUAGE */
#endif /* _NANOK_H */
#endif /* _NANO_PRIVATE_H */

View file

@ -42,7 +42,7 @@ Intel-specific parts of start_task(). Only FP functionality currently.
#include <sections.h>
#include <micro_private.h>
#include <nanok.h>
#include <nano_private.h>
#include <microkernel/task.h>
extern void _StartTaskArch(struct k_proc *, unsigned int *);

View file

@ -36,7 +36,7 @@
#include <stddef.h>
#include <micro_private_types.h>
#include <kernel_main.h>
#include <nanok.h>
#include <nano_private.h>
#define KERNEL_ENTRY(A) _k_task_call(A)

View file

@ -37,7 +37,7 @@ task, depending on how the kernel is configured.
*/
#include <micro_private.h>
#include <nanok.h>
#include <nano_private.h>
#include <arch/cpu.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -32,7 +32,7 @@
#include <micro_private.h>
#include "nanokernel.h"
#include "nanok.h"
#include <nano_private.h>
#include <string.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -53,7 +53,7 @@ a task cannot impact the operation of an IRQ object it does not own.
#if (CONFIG_MAX_NUM_TASK_IRQS > 0)
#include <nanok.h>
#include <nano_private.h>
#include <microkernel.h>
#include <micro_private.h>
#include <misc/__assert.h>

View file

@ -57,7 +57,7 @@ NOMANUAL
#include <microkernel.h>
#include <micro_private.h>
#include <nanok.h>
#include <nano_private.h>
/*******************************************************************************
*

View file

@ -42,7 +42,7 @@ interfering with each other.
#include <toolchain.h>
#include <sections.h>
#include <micro_private.h>
#include <nanok.h>
#include <nano_private.h>
#include <microkernel.h>
#include <nanokernel.h>
#include <misc/__assert.h>

View file

@ -39,7 +39,7 @@
#include <sections.h>
#include <micro_private.h>
#include <nanok.h>
#include <nano_private.h>
#include <start_task_arch.h>

View file

@ -44,7 +44,7 @@ function __stack_chk_fail and global variable __stack_chk_guard.
#if defined(CONFIG_STACK_CANARIES)
#include <nanok.h>
#include <nano_private.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -39,7 +39,7 @@ data structure.
#ifdef CONFIG_ADVANCED_POWER_MANAGEMENT
#include <nanokernel.h>
#include <nanok.h>
#include <nano_private.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -70,7 +70,7 @@ in this file:
/@ include struct definitions for which offsets symbols are to be generated @/
#include <nanok.h>
#include <nano_private.h>
GEN_ABS_SYM_BEGIN (_OffsetAbsSyms) /@ the name parameter is arbitrary @/

View file

@ -33,7 +33,7 @@
#ifndef _kernel_nanokernel_include_wait_q__h_
#define _kernel_nanokernel_include_wait_q__h_
#include <nanok.h>
#include <nano_private.h>
/* reset a wait queue, call during operation */
static inline void _nano_wait_q_reset(struct _nano_queue *wait_q)

View file

@ -39,7 +39,7 @@ tasks or fibers.
#include <toolchain.h>
#include <sections.h>
#include <nanok.h>
#include <nano_private.h>
#include <misc/printk.h>
/*******************************************************************************

View file

@ -36,7 +36,7 @@ This module provides various nanokernel fiber related primitives,
either in the form of an actual function or an alias to a function.
*/
#include <nanok.h>
#include <nano_private.h>
#include <string.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -46,7 +46,7 @@ In some cases the compiler "alias" attribute is used to map two or more
APIs to the same function, since they have identical implementations.
*/
#include <nanok.h>
#include <nano_private.h>
#include <toolchain.h>
#include <sections.h>
#include <wait_q.h>

View file

@ -41,7 +41,7 @@ This module contains routines that are used to initialize the nanokernel.
#include <drivers/rand32.h>
#include <sections.h>
#include <toolchain.h>
#include <nanok.h>
#include <nano_private.h>
/* kernel build timestamp items */

View file

@ -45,7 +45,7 @@ In some cases the compiler "alias" attribute is used to map two or more
APIs to the same function, since they have identical implementations.
*/
#include <nanok.h>
#include <nano_private.h>
#include <toolchain.h>
#include <sections.h>
#include <wait_q.h>

View file

@ -51,7 +51,7 @@ In some cases the compiler "alias" attribute is used to map two or more
APIs to the same function, since they have identical implementations.
*/
#include <nanok.h>
#include <nano_private.h>
#include <toolchain.h>
#include <sections.h>
#include <wait_q.h>

View file

@ -46,7 +46,7 @@ In some cases the compiler "alias" attribute is used to map two or more
APIs to the same function, since they have identical implementations.
*/
#include <nanok.h>
#include <nano_private.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -31,7 +31,7 @@
*/
#include <nanok.h>
#include <nano_private.h>
#include <toolchain.h>
#include <sections.h>
#include <wait_q.h>

View file

@ -30,7 +30,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <nanok.h>
#include <nano_private.h>
struct nano_timer *_nano_timer_list = NULL;

View file

@ -39,7 +39,7 @@ Ensures interrupt and exception stubs are installed correctly.
#include <nanokernel.h>
#include <arch/cpu.h>
#include <nanok.h>
#include <nano_private.h>
#if defined(__GNUC__)
#include <test_asm_inline_gcc.h>
#else

View file

@ -43,7 +43,7 @@ testing.
/* IA-32 specific */
#include <arch/cpu.h>
#include <nanok.h>
#include <nano_private.h>
#include <arch/x86/asm.h>
#include <asmPrv.h>
#include <asm_inline.h>

View file

@ -42,7 +42,7 @@ This module tests the following CPU and context related routines:
*/
#include <tc_util.h>
#include <nanok.h>
#include <nano_private.h>
#include <arch/cpu.h>
/* test uses 1 software IRQs */