controlbuffer.c

来自「realview22.rar」· C语言 代码 · 共 29 行

C
29
字号
/*
 * controlbuffer.c
 * GetControlBuffer function definition
 * Copyright (C) ARM Limited, 2002. All rights reserved.
 */

#define IGNORE(x) (void)(x)

#include "controlbuffer.h"
#include "slundef.h" /* for ARM_RegDump */

/* Return address of a thread-local buffer for passing data between
 * the VFP UNDEF handler and the Computation_Engine_Wrapper.
 * This implementation assumes that there is only one active thread in 
 * the system.  You should consider replacing this on systems that
 * support preemptive multi-threading.
 */

ControlBuffer *GetControlBuffer(
    ARM_RegDump *regdump, ReturnAddress target, unsigned size)
{
    static ControlBuffer controlbuffer;
    IGNORE(regdump); IGNORE(size);
    controlbuffer.PC = target;
    return &controlbuffer;
}

/* end of controlbuffer.c */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?