From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4001:c0b::22f; helo=mail-it0-x22f.google.com; envelope-from=jiajunwen123@gmail.com; receiver=edk2-devel@lists.01.org Received: from mail-it0-x22f.google.com (mail-it0-x22f.google.com [IPv6:2607:f8b0:4001:c0b::22f]) (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 994FB222A3347 for ; Wed, 24 Jan 2018 00:25:10 -0800 (PST) Received: by mail-it0-x22f.google.com with SMTP id x42so4269718ita.4 for ; Wed, 24 Jan 2018 00:30:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:mime-version:to:cc:from:subject:date:importance; bh=lMKdE/qMONoOlA5N2Q2zLm1fXUEMJIph2e0dEs30DLU=; b=uTX/ncUlw0IQBGX9A0neGfCas+BqL9BeYlby5T8s1Z/4dd9/BDPPERiq5SckXvjwp0 nx72vCIo1/bTjXEaYhwKhGzIepp18fJg1aETwoyXEskKu/KATuvc2ULbDp1pFcC40Rm/ qH+nuGLxIgnAPBg7n4VwFa3tWAcVZDsfLsuqPE9oj2LpfLjNhoT4xJLTS5MC1cCEpLy7 syGL+ZPcSYjJLXifdgaLYgCUKv9LdWL6RtWVLGoC9ncATIir2xAh7rWga8+ZKzcke50j ewW50LSd8nirkE8gNYmK9jIEzMErble9/SrRDHvMYSFyEqv4W5RsvpVv7aVfI9KyH3GO tSYQ== 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:cc:from:subject:date :importance; bh=lMKdE/qMONoOlA5N2Q2zLm1fXUEMJIph2e0dEs30DLU=; b=DLRteuXRHF7rxH2mROt/7JorbBqDLkYNAJJv/TNYjTe9wXvo5ugxbioWtgVRq6Ed0p 14eAJoNq0xTsfuJiFtO9iVckX8Z1hPN/WpXJ/wAKU8Q+DpciHjaULPbU4sXmCH29o922 aD6+8ybwgsIGb0Wmdxis0L1Ywtv5Mb45GPuq74q7D4ANkLSkwtCpqh3Pv+kfaUXNPXS0 zi/ila9oFYhpDGP5xyNAaf4/CIdSip2ZzOyUuwyctQ+Bpc19vRvgFomn7fPc8FIllij6 8oPwY7Pq9ZfTMuzRZwfLEiqABWkpevw4jpvEzjbuIDW57mQ1RnLMInITqg++AgjGPA/r mqpw== X-Gm-Message-State: AKwxytexAvXTxbW4pBCDc8oPSnF2MCMl7w5cqteHasnjnd2qzkRsJlND 4JgwrM4ZLOqjqagkNaNQbRUoDgA= X-Google-Smtp-Source: AH8x226XlPbFD+W7b2CbScn1ETNivhSLS6LvPaQ+/IBlDQr5NnrZxZMv8lcb2D72AO+qyvm7uRdUTA== X-Received: by 10.36.111.205 with SMTP id x196mr7449046itb.126.1516782637746; Wed, 24 Jan 2018 00:30:37 -0800 (PST) Received: from ?IPv6:::ffff:172.31.1.117? ([12.192.229.251]) by smtp.gmail.com with ESMTPSA id e139sm742861ite.8.2018.01.24.00.30.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jan 2018 00:30:37 -0800 (PST) Message-ID: <5a68442d.9103240a.94e21.435a@mx.google.com> MIME-Version: 1.0 To: "edk2-devel@lists.01.org" Cc: Andrew Fish From: JUNWEN JIA Date: Wed, 24 Jan 2018 16:30:36 +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 08:25:11 -0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, Andrew: Thanks a lot and I really appreciate your suggestion. But the assembly= language code is for getting started,=20 and I may have to write C language embedded with assembly language and comp= ile through EDK. That is why=20 I have to use assembly language to achieve the restart function.=20 And I have some doubts, if I call functions that already exists in Base= Lib->Ia32,for example: #include =E3=80=80Void main() =E3=80=80{ =E3=80=80WriteMsr64(0,0); =E3=80=80} =E3=80=80This can be compiled successfully and .efi file can be generated. =E3=80=80 =E3=80=80Best regards! =E3=80=80 =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