// vi:set ft=cpp: -*- Mode: C++ -*- /* * (c) 2010 Adam Lackorzynski * economic rights: Technische Universität Dresden (Germany) * This file is part of TUD:OS and distributed under the terms of the * GNU Lesser General Public License 2.1. * Please see the COPYING-LGPL-2.1 file for details. */ #pragma once #include namespace Ldr { inline char *adjust_sp(char *old_sp, l4_umword_t *offs = 0) { if (offs) *offs = 16; return old_sp - 16; } }