From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c00::233; helo=mail-pf0-x233.google.com; envelope-from=jiajunwen123@gmail.com; receiver=edk2-devel@lists.01.org Received: from mail-pf0-x233.google.com (mail-pf0-x233.google.com [IPv6:2607:f8b0:400e:c00::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6FC852205B916 for ; Tue, 23 Jan 2018 18:18:09 -0800 (PST) Received: by mail-pf0-x233.google.com with SMTP id p1so1883536pfh.4 for ; Tue, 23 Jan 2018 18:23:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:mime-version:to:from:subject:date:importance; bh=/s88kp6CV1aDw5x9z0AmMQX/31lxXI41ALcKgLoW68M=; b=W6uvDKMqX9BD1r0WGr8SHbrK5bMWaAJowtWAhUnL1foI93hunw7jOlxhQDnKi1SkV8 K+9//ZtIUbBpGOP0Gb3yTUnXRtYDHX3I6h7IY0oRMValJv8yP7uRUoh2dKrlODHqroiy 4pGaqcsPPW79QQHejAs8Bi/FMELc6Bk9VCYVo+/dL4/Zsl43IP+KS3G4IzrfFnAt2Zl0 Fu1IStA611JP915vLBkSrZADkirr4oakZ2ofirO+XJAwEraZTL3M+krjY02tvw+knAW7 jt33l2PO1iPVBvzoLARp+Z5Em3xZ96wyzZ6kewcQCEW0o4PH1Q59crWNVWNgAcR9EhZC Mnug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version:to:from:subject:date :importance; bh=/s88kp6CV1aDw5x9z0AmMQX/31lxXI41ALcKgLoW68M=; b=YQ/qtizbrD6BeX8jvkyM1Oo5dp/+EucPHQ+eR6sf9qa1VNx3OCE1SE4ZLKEJoLBlf0 lHKQkT42y65YqjcF9YKuotULmv33AkxJB/mzUfxVSIjfAqErp+feppakJJ4UrwLkoS/r G8rDtZ+iz+JCDP7P3CsMDs9mJe9sOxk3HS12Ui80DHOouf+GKhIUjAbef26LrSm7OwuR +DPgAbFW9qmKiNtzRtAhKC1N/65F1SBquulKgBxyOqkUi9PicBaCpVDsjGj8558z4zSw VE6Ev5V6E7BwlzXpR+I9SCAO9rHFN9UWFRXjCdd+nENhVL5TNzVzG8UJLXjJVI1+BGIK YOMA== X-Gm-Message-State: AKwxytfs/zRLIqyxbBTGld/cgizehltjOxOaawtGMxFDlAM78jh132KC xVIY2GW6HG3GuA7JL7yxsedobPY= X-Google-Smtp-Source: AH8x224mhodJaMMxqIHRuArFIRh4acUd2VIry7pfggyJIU6nINCL6jaVs2WZca+d0uz8lbFsXg+JpQ== X-Received: by 10.98.74.133 with SMTP id c5mr11728286pfj.188.1516760616840; Tue, 23 Jan 2018 18:23:36 -0800 (PST) Received: from ?IPv6:::ffff:172.31.1.117? ([116.6.89.187]) by smtp.gmail.com with ESMTPSA id t8sm9240827pgn.93.2018.01.23.18.23.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jan 2018 18:23:36 -0800 (PST) Message-ID: <5a67ee28.4895630a.91a34.55ae@mx.google.com> MIME-Version: 1.0 To: "edk2-devel@lists.01.org " From: JUNWEN JIA Date: Wed, 24 Jan 2018 10:23:33 +0800 Importance: normal X-Priority: 3 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 Subject: 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:18:09 -0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi: Thanks for your replies. I referred to some examples in baselib, for exampl= e,WriteMsr64.asm, WriteMsr64.nasm,=20 WriteMsr64.c and create Reboot.asm, Reboot.nasm, Reboot.c file in MdePkg->L= ibrary->BaseLib-> Ia32. I also made some=20 corresponding Changes in BaseLib.inf and other files. And I did avoid to us= e X64 arch. So my cmos.c source file in AppPkg is like=20 this: #include Void main() { Reboot(); } But the compiled result is Reboot.lib(Reboot.obj):error LNK2001: ####\DEBUG\cmos.dll:fatal error LINK1120:1 The picture is the compiled result, and I wonder if I missed to create or m= odify some files? Thanks for helping ! Best Regards! =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