genassym.cf revision 1.2
11.2Skamil# $NetBSD: genassym.cf,v 1.2 2020/10/12 23:58:14 kamil Exp $ 21.1Skamil# 31.1Skamil# Copyright (c) 2020 The NetBSD Foundation, Inc. 41.1Skamil# All rights reserved. 51.1Skamil# 61.1Skamil# This code is derived from software contributed to The NetBSD Foundation 71.2Skamil# by Kamil Rytarowski for Moritz Systems Technology Company Sp. z o.o. 81.1Skamil# 91.1Skamil# Redistribution and use in source and binary forms, with or without 101.1Skamil# modification, are permitted provided that the following conditions 111.1Skamil# are met: 121.1Skamil# 1. Redistributions of source code must retain the above copyright 131.1Skamil# notice, this list of conditions and the following disclaimer. 141.1Skamil# 2. Redistributions in binary form must reproduce the above copyright 151.1Skamil# notice, this list of conditions and the following disclaimer in the 161.1Skamil# documentation and/or other materials provided with the distribution. 171.1Skamil# 181.1Skamil# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 191.1Skamil# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 201.1Skamil# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 211.1Skamil# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 221.1Skamil# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 231.1Skamil# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 241.1Skamil# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 251.1Skamil# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 261.1Skamil# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 271.1Skamil# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 281.1Skamil# POSSIBILITY OF SUCH DAMAGE. 291.1Skamil# 301.1Skamil 311.1Skamilinclude <ucontext.h> 321.1Skamil 331.1Skamildefine UC_GREGS_EAX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EAX]) 341.1Skamildefine UC_GREGS_EDX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EDX]) 351.1Skamildefine UC_GREGS_ECX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_ECX]) 361.1Skamildefine UC_GREGS_EBX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EBX]) 371.1Skamildefine UC_GREGS_ESI offsetof(ucontext_t, uc_mcontext.__gregs[_REG_ESI]) 381.1Skamildefine UC_GREGS_EDI offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EDI]) 391.1Skamildefine UC_GREGS_EBP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EBP]) 401.1Skamildefine UC_GREGS_ESP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_ESP]) 411.1Skamildefine UC_GREGS_EIP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EIP]) 42