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