From owner-freebsd-arch@freebsd.org Tue Mar 15 21:46:58 2016 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BA97AAD20E7; Tue, 15 Mar 2016 21:46:58 +0000 (UTC) (envelope-from mokhi64@gmail.com) Received: from mail-lb0-x234.google.com (mail-lb0-x234.google.com [IPv6:2a00:1450:4010:c04::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 475CE645; Tue, 15 Mar 2016 21:46:58 +0000 (UTC) (envelope-from mokhi64@gmail.com) Received: by mail-lb0-x234.google.com with SMTP id x1so35920592lbj.3; Tue, 15 Mar 2016 14:46:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc; bh=/HP/5rDn3uvkcsajgozOrVapxOJcoUss+QlM4nxBR+M=; b=LR2qmWp3VGq0PRcirCaVO/apMo31NT2EW6rKC8m3k0tuDbZ5m6iNguCeZORUe0hkzC NyLP7DaAE5Uof36cZmMy4Xa7eAFBEQzpG6VoSuBiYL+XRSuHqbXEQrYaE5hQexpRO8H9 W6tE7h/8TAdB8w0U6f/3SEsSpp4PXe0rJ9jPGw7mAouue3wRRe57u3bVxo6y/0KZ7fUp 0Y3KNBJUrqZNgn9iiAN4tSn7BDPBSdQ9NF2NoX0WaaYRUjAPnccyyw6wR0DHtV03EcSc 9TdLNVEhomcgLYyxA+ZMi1n0vsBLL39txI2NspWVizBy2I/vTx1RhdR3VxGHwCguMuSQ CXQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc; bh=/HP/5rDn3uvkcsajgozOrVapxOJcoUss+QlM4nxBR+M=; b=W7T21eUDzeuejBlq1yInNzUCwBiAN7/V1n/C9BbckEb+wv4i0BOCpbgawv/cXmcVOM E26/6xCig9xFinQx4xnXC6fKr4ZkyvJMMxNCK+ZQpLiRRLOa1C+ZUX/4lF4ehGb91G3G c0YHaYjMX1CdZH/nPsDEFHr7xSnCOpiVHXpiGAVAF4EzNQ6jyro6MYdbS3tRbXYnkiL1 tRxee03swR24MTK11dRNJGcIaHJofMBXr+d6n1tJQ+LovGaO8wNg7csZkaPz210U5KmS Sfj6/Snho+UHPwsikE5GEvLwXHo9uQ1H3I5yNb61NLZ65npBknsfonaqt2taKGY5tyzG 59XA== X-Gm-Message-State: AD7BkJKVx95xC2QCjlJxUpu1y/8LWHgzm0NTAXMzJcCOjkOYnkEvq5OhLDlX06pjnDkvUExa66eneMriKn7OVQ== MIME-Version: 1.0 X-Received: by 10.112.77.138 with SMTP id s10mr92223lbw.125.1458078416306; Tue, 15 Mar 2016 14:46:56 -0700 (PDT) Received: by 10.25.139.68 with HTTP; Tue, 15 Mar 2016 14:46:56 -0700 (PDT) Date: Wed, 16 Mar 2016 01:16:56 +0330 Message-ID: Subject: Hi, a question about "struct sysentvc" From: mokhi To: freebsd-arch@freebsd.org Cc: freebsd-emulation@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2016 21:46:58 -0000 Hi guys. I was reading/studying code of Elf image activator to see how binary stars on FreeBSD. On included file (sysent.h), I saw 3 declarations: extern struct sysentvec aout_sysvec; extern struct sysentvec elf_freebsd_sysvec; extern struct sysentvec null_sysvec; I looked at their definitions too (though i couldn't find elf_freebsd_sysvec, where's it ?). I have some (maybe simple, so sorry for it :D) questions. 1) what's sysentvec for, basically ? and in which concept it connects to image-activators (such as ELF image activator [or a.out's]) 2) is there any reference/guide to see how should/can we define a "struct sysentvec" for new format ? FWIW, I'm also a little familiar with NetBSD way of binary running/compat layer devel. Thanks and thousands of regards, Mokhi.