blob: 9ef1d28e7d1e0c417e05e6044982bf3347b94ac5 [file] [log] [blame]
/* --COPYRIGHT--,ESD
* Copyright (c) 2008-2019 Texas Instruments Incorporated
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
* Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Texas Instruments - initial implementation
* --/COPYRIGHT--*/
/*
* ======== xdc_init.cpp ========
* This is a C++ file to portably ensure that module initialization occurs
* *before* main() is called.
*/
#include <xdc/std.h>
#include <stdint.h>
/*
* ======== xdc_runtime_Startup_exec__E ========
* This function is defined in this package's generated file package/package.c.
* It calls the "real" startup function xdc_runtime_Startup_exec__F() which is
* generated by Startup.xdt.
*/
extern "C" void xdc_runtime_Startup_exec__E();
/*
* ======== __xdc__init ========
* This function performs the initialization of all used modules
*/
extern "C" int_least32_t __xdc__init(void)
{
xdc_runtime_Startup_exec__E();
return (0);
}
/*
* ======== __dummy ========
* This one statically initialized variable is required to force C++ to
* run __xdc__init() before main().
*/
static __FAR__ volatile int_least32_t __dummy = __xdc__init();