distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
ARMv6-M-ARMv7-M-getMainStack.cpp File Reference

getMainStack() implementation for ARMv6-M and ARMv7-M More...

Include dependency graph for ARMv6-M-ARMv7-M-getMainStack.cpp:

Namespaces

 distortos
 Top-level namespace of distortos project.
 
 distortos::architecture
 Architecture-related code of distortos project.
 

Functions

std::pair< void *, size_t > distortos::architecture::getMainStack ()
 Gets the stack used to run main(). More...
 

Variables

char distortos::architecture::__process_stack_start []
 beginning of process stack - imported from linker script More...
 
char distortos::architecture::__process_stack_size []
 size of process stack, bytes - imported from linker script More...
 

Detailed Description

getMainStack() implementation for ARMv6-M and ARMv7-M

Author
Copyright (C) 2014-2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.