11.2Skamil# $NetBSD: genassym.cf,v 1.2 2020/10/12 21:33:46 kamil Exp $ 21.1Skamil# 31.1Skamil# Copyright (c) 2020 The NetBSD Foundation, Inc. 41.1Skamil# All rights reserved. 51.1Skamil# 61.1Skamil# Redistribution and use in source and binary forms, with or without 71.1Skamil# modification, are permitted provided that the following conditions 81.1Skamil# are met: 91.1Skamil# 1. Redistributions of source code must retain the above copyright 101.1Skamil# notice, this list of conditions and the following disclaimer. 111.1Skamil# 2. Redistributions in binary form must reproduce the above copyright 121.1Skamil# notice, this list of conditions and the following disclaimer in the 131.1Skamil# documentation and/or other materials provided with the distribution. 141.1Skamil# 151.1Skamil# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 161.1Skamil# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 171.1Skamil# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 181.1Skamil# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 191.1Skamil# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 201.1Skamil# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 211.1Skamil# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 221.1Skamil# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 231.1Skamil# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 241.1Skamil# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 251.1Skamil# POSSIBILITY OF SUCH DAMAGE. 261.1Skamil# 271.1Skamil 281.1Skamilinclude <ucontext.h> 291.1Skamil 301.1Skamildefine UC_GREGS_RAX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RAX]) 311.1Skamildefine UC_GREGS_RDX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RDX]) 321.1Skamildefine UC_GREGS_RCX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RCX]) 331.1Skamildefine UC_GREGS_RBX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RBX]) 341.1Skamildefine UC_GREGS_RSI offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RSI]) 351.1Skamildefine UC_GREGS_RDI offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RDI]) 361.1Skamildefine UC_GREGS_RBP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RBP]) 371.1Skamildefine UC_GREGS_RSP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RSP]) 381.1Skamildefine UC_GREGS_R8 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R8]) 391.1Skamildefine UC_GREGS_R9 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R9]) 401.1Skamildefine UC_GREGS_R10 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R10]) 411.1Skamildefine UC_GREGS_R11 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R11]) 421.1Skamildefine UC_GREGS_R12 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R12]) 431.1Skamildefine UC_GREGS_R13 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R13]) 441.1Skamildefine UC_GREGS_R14 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R14]) 451.1Skamildefine UC_GREGS_R15 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R15]) 461.1Skamildefine UC_GREGS_RIP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RIP]) 47