2015-04-11 07:44:37 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 1997-2014 Wind River Systems, Inc.
|
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* 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
|
2015-04-11 07:44:37 +08:00
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2015-04-11 07:44:37 +08:00
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* 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.
|
2015-04-11 07:44:37 +08:00
|
|
|
*/
|
|
|
|
|
2015-12-04 23:09:39 +08:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief "do nothing" kernel service
|
|
|
|
*
|
2015-10-21 00:42:33 +08:00
|
|
|
* This module provides a "do nothing" kernel service.
|
|
|
|
*
|
|
|
|
* This service is primarily used by other kernel services that need a way to
|
|
|
|
* resume the execution of a kernel request that could not be completed in a
|
|
|
|
* single invocation of the _k_server fiber. However, it can also be used by
|
|
|
|
* a task to measure the overhead involved in issuing a kernel service request.
|
2015-07-02 05:22:39 +08:00
|
|
|
*/
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2015-06-19 22:56:52 +08:00
|
|
|
#include <micro_private.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
#include <toolchain.h>
|
|
|
|
#include <sections.h>
|
|
|
|
|
2015-07-02 05:22:39 +08:00
|
|
|
/**
|
|
|
|
*
|
2015-07-02 05:51:40 +08:00
|
|
|
* @brief Perform "do nothing" kernel request
|
2015-07-02 05:22:39 +08:00
|
|
|
*
|
2015-07-02 05:29:04 +08:00
|
|
|
* @return N/A
|
2015-07-02 05:22:39 +08:00
|
|
|
*/
|
2015-04-29 02:35:52 +08:00
|
|
|
void _k_nop(struct k_args *A)
|
2015-04-11 07:44:37 +08:00
|
|
|
{
|
|
|
|
ARG_UNUSED(A);
|
|
|
|
}
|
|
|
|
|
2015-07-02 05:22:39 +08:00
|
|
|
/**
|
|
|
|
*
|
2015-07-02 05:51:40 +08:00
|
|
|
* @brief "do nothing" kernel request
|
2015-07-02 05:22:39 +08:00
|
|
|
*
|
2015-08-13 03:37:58 +08:00
|
|
|
* This routine is a request for the _k_server to run a "do nothing" routine.
|
2015-07-02 05:22:39 +08:00
|
|
|
*
|
2015-07-02 05:29:04 +08:00
|
|
|
* @return N/A
|
2015-07-02 05:22:39 +08:00
|
|
|
*/
|
2015-04-11 07:44:37 +08:00
|
|
|
void _task_nop(void)
|
|
|
|
{
|
|
|
|
struct k_args A;
|
|
|
|
|
2015-07-26 06:31:09 +08:00
|
|
|
A.Comm = _K_SVC_NOP;
|
2015-04-11 07:44:37 +08:00
|
|
|
KERNEL_ENTRY(&A);
|
|
|
|
}
|