From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=17.151.62.27; helo=mail-in5.apple.com; envelope-from=afish@apple.com; receiver=edk2-devel@lists.01.org Received: from mail-in5.apple.com (mail-out5.apple.com [17.151.62.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DBC1922344325 for ; Tue, 23 Jan 2018 18:54:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1516762822; x=2380676422; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KA+S6ao5sMVi17fJ75YwPgSlixXU5l2wIANeLHf2rGA=; b=sfAp75pnCXUoKeEo5cUw1Lnv/NS+w3qF1Y0uxjdzKLLjJjimrGUmLXb62jrT4szA m++H6xElGRiZD6KZnUGoJDhcFqVNIO9GjyVVW8LkWEwU8UxXdb/kVR4dBN9je8I2 oI65ItPxEOwKYqqcRQ/Vu8bExPuKEUYxXiR/TF3XcYYOMKupRvK4mB8sCkL/z4ZN C03Dp+qoh3in1GRgFwLRQSZh1hKNvkcJ67JzTBdhZv5hbZPNASk/tM8zYzcG7a5O V06mdmBuVD3YrtiCEQowZp6TFDiPg2VpswuVu3HkuL6P3E6id7Vjog8xOS4IKovt UQkCeVk1pOMhlBhLgnAYhg==; Received: from relay4.apple.com (relay4.apple.com [17.128.113.87]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in5.apple.com (Apple Secure Mail Relay) with SMTP id 77.3B.05022.6C6F76A5; Tue, 23 Jan 2018 19:00:22 -0800 (PST) X-AuditID: 11973e13-157ff7000000139e-91-5a67f6c61a26 Received: from nwk-mmpp-sz11.apple.com (nwk-mmpp-sz11.apple.com [17.128.115.155]) by relay4.apple.com (Apple SCV relay) with SMTP id 5F.6C.21277.6C6F76A5; Tue, 23 Jan 2018 19:00:22 -0800 (PST) MIME-version: 1.0 Received: from [17.114.155.34] by nwk-mmpp-sz11.apple.com (Oracle Communications Messaging Server 8.0.2.1.20180104 64bit (built Jan 4 2018)) with ESMTPSA id <0P3100BD7HOMK400@nwk-mmpp-sz11.apple.com>; Tue, 23 Jan 2018 19:00:22 -0800 (PST) Sender: afish@apple.com From: Andrew Fish X-Priority: 3 In-reply-to: <5a67ee28.4895630a.91a34.55ae@mx.google.com> Date: Tue, 23 Jan 2018 19:00:21 -0800 Cc: "edk2-devel@lists.01.org" Message-id: <89F4C3BD-3455-43F8-AEC7-D2B2D984A6C0@apple.com> References: <5a67ee28.4895630a.91a34.55ae@mx.google.com> To: JUNWEN JIA X-Mailer: Apple Mail (2.3445.5.20) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsUi2FAYrnvsW3qUwY4uBYs9h44yW7QtyHFg 8tg56y67R/fsfywBTFFcNimpOZllqUX6dglcGRe7N7IUHOOq+Nqc08B4nqOLkZNDQsBE4tna O+xdjFwcQgKrmSQOHZvHCpPYfWsFK0TiEKPEox1vmUASvAKCEj8m32PpYuTgYBZQl5gyJRei 5iujxPqv61lAaoQFxCXendnEDGGrSVzacA0sziagLLFi/gd2iAW8EjPan4LFOQUsJXo628AW swioSrRfWAxmMwuYS8y48IUJwtaWePLuAivEDTYSO/ums4PcICRgIfFuLydIWATonB2b/rFB jFeSmP79NhvIbRICHWwSU3a/ZZrAKDILyQuzEF6YhWTDAkbmVYxCuYmZObqZeaZ6iQUFOal6 yfm5mxhBwT7dTngH4+lVVocYBTgYlXh4G8zSo4RYE8uKK3MPMUpzsCiJ826QT4sSEkhPLEnN Tk0tSC2KLyrNSS0+xMjEwSnVwLh9W8WEDUkBtuunr7qxdPb2a4Ylm7pDpzsda/+4/vr9wpdd Ak8tLGsTj164tc+34fzKxP1iR//ZcbtNUchzka9NebkxeebeCI2f7N8PZs3vOPvi0da3f6OS xWt+zDKXKdnmz1R1Sv77/WL21bPCzijZe6c4fPMJ5J6U/+CRYsvJkxbie0V33i9VYinOSDTU Yi4qTgQAfj8qDlcCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOLMWRmVeSWpSXmKPExsUi2FA8W/fYt/Qog9uTZC32HDrKbNG2IMeB yWPnrLvsHt2z/7EEMEVx2aSk5mSWpRbp2yVwZVzs3shScIyr4mtzTgPjeY4uRk4OCQETid23 VrB2MXJxCAkcYpR4tOMtE0iCV0BQ4sfkeyxdjBwczALqElOm5ELUfGWUWP91PQtIjbCAuMS7 M5uYIWw1iUsbroHF2QSUJVbM/8AOsYBXYkb7U7A4p4ClRE9nGyuIzSKgKtF+YTGYzSxgLjHj whcmCFtb4sm7C6wQN9hI7Oybzg5yg5CAhcS7vZwgYRGgc3Zs+scGMV5JYvr322wTGAVnIbl6 FsLVs5AMXcDIvIpRoCg1J7HSRC+xoCAnVS85P3cTIzg4C8N3MP5bZnWIUYCDUYmHt8EsPUqI NbGsuDIXGCwczEoivHmsQCHelMTKqtSi/Pii0pzU4kOM0hwsSuK88TdSooQE0hNLUrNTUwtS i2CyTBycUg2MeqKqD7mfM2ZdY7sUNGnGrnDfucZnFsh388dPN932TCkm9lG3a8LH+eFnTOaG daovPHDBV/GASczeintPXrxm+fr4ZUHanErrY3ObA+sLfW4oby8zfWXj9//Hj/Dr4uX9k8M3 S6SJfV0hdtdXcG7+h4alzXZOXnP6DtrttODnCbOvt5hUzuGixFKckWioxVxUnAgAKRvcO0oC AAA= Subject: Re: EDK debug question X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 02:54:56 -0000 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable > On Jan 23, 2018, at 6:23 PM, JUNWEN JIA = wrote: >=20 > Hi: > Thanks for your replies. I referred to some examples in baselib, for = example,WriteMsr64.asm, WriteMsr64.nasm,=20 > WriteMsr64.c and create Reboot.asm, Reboot.nasm, Reboot.c file in = MdePkg->Library->BaseLib-> Ia32. I also made some=20 > corresponding Changes in BaseLib.inf and other files. And I did avoid = to use X64 arch. So my cmos.c source file in AppPkg is like=20 You should not be modifying the BaseLib, that is like changing the C Lib = for an App.=20 Maybe we should start with what you are trying to write in assembler as = there is no portable way to reboot a system from assembler. =20 Thanks, Andrew Fish > this: > #include > Void main() > { > Reboot(); > } > But the compiled result is Reboot.lib(Reboot.obj):error LNK2001: > ####\DEBUG\cmos.dll:fatal error LINK1120:1 >=20 > The picture is the compiled result, and I wonder if I missed to create = or modify some files? >=20 > Thanks for helping ! > Best Regards! >=20 >=20 > =E5=8F=91=E9=80=81=E8=87=AA Windows 10 =E7=89=88=E9=82=AE=E4=BB=B6=E5=BA= =94=E7=94=A8 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel