1 // Copyright 2013-2018 Azul Systems, Inc. All Rights Reserved. 2 // DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 // 4 // This code is free software; you can redistribute it and/or modify it under 5 // the terms of the GNU General Public License version 2 only, as published by 6 // the Free Software Foundation. 7 // 8 // This code is distributed in the hope that it will be useful, but WITHOUT ANY 9 // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 10 // A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more 11 // details (a copy is included in the LICENSE file that accompanied this code). 12 // 13 // You should have received a copy of the GNU General Public License version 2 14 // along with this work; if not, write to the Free Software Foundation, Inc., 15 // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 16 // 17 // Please contact Azul Systems, 385 Moffett Park Drive, Suite 115, Sunnyvale, 18 // CA 94089 USA or visit www.azul.com if you need additional information or 19 // have any questions. 20 21 // This file is logical part of vm_version_aarch32.cpp, but contains parts that 22 // _should_ be in another compilation unit 23 24 int aarch32_get_fp_sp_distance() { 25 register int fp __asm__ ("r11"); 26 register int sp __asm__ ("r13"); 27 return fp - sp; 28 }