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::235; helo=mail-it0-x235.google.com; envelope-from=jiajunwen123@gmail.com; receiver=edk2-devel@lists.01.org Received: from mail-it0-x235.google.com (mail-it0-x235.google.com [IPv6:2607:f8b0:4001:c0b::235]) (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 E98B921E48F2B for ; Tue, 23 Jan 2018 22:26:17 -0800 (PST) Received: by mail-it0-x235.google.com with SMTP id c16so3924963itc.5 for ; Tue, 23 Jan 2018 22:31:45 -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=t/7nkunGlzO2CGb9kIdVnGysfWQFWEMak44xxa1h8tA=; b=t/Z3U8PqGPZIn6lfIRc7twDbm80yWyTM6PrBM22GTKBNOmfcuZcIL0+TzUplmUmsvq PDjwWzHU8HVhaWAE8qsWfXR3ATb0eiVKXG5qpG98sl2a1FGdtxMrWYv4dLdJGnf0lQE7 vJV+k36DFm7Z8IpckgoBVPRjbrdQxMwGdEvRh4B+sk4Oay4+FUoadu6v+c8x5p6D9Bpf 6pa8+K2hjdEI3sKSEWSQKqzOYLXMTSiqdrfLGzHvvvugY5Stp0WJ1EYdE8A4Cd92X2bK G2gd16CSmLbIReGtxtTyTm0NITkZXUEoyjGh/O082wLZdhIFpP0jbeoHVLjiExSGKCbv 4XAg== 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=t/7nkunGlzO2CGb9kIdVnGysfWQFWEMak44xxa1h8tA=; b=H2JoywUNE3UhCNcZdYQr7A6mNBIS85yjKUNNdWAf7W8wNo9zA97D3RmDYIGnaxCnXB uK3jnsq9yw+Gj6C91OEOgAhyscjxvHz7dOhNGrQBy7ff5X0vQIyzzhg950cp0mfJQUAv 45/3peBfhBAxRiUPo9VF2y7wzm/Y9h7UYj4Rxf+J1IID8Ko1urwrdJ38vw7gEljFRgnb OpqxWOtpXhNrgMf+q0KM919xkWrwOXGhYwMyjiBuv007n64gFLoPYePDIYHWf6cZqjGP /U4WbJcPatETRcS3UdD1xyGtscm1t7ISDRMdeqvkhNBZa/d5KHKkx6PSH+vVVfzc2b0F IpNA== X-Gm-Message-State: AKwxytfs+tuFFpw6vVjoQPNNWatAVGt7arsftgormZAvh5I5fysMbSrx 9uLXC2M4a7Yu7zqLVy9mIVayF70= X-Google-Smtp-Source: AH8x227Xzp8cX8Wxvq1oK5RB0E4D7SWLNbXDBw2JMdneE2GVl2jBPq/KaT4AQCYRPyGPHFc04gIOOA== X-Received: by 10.36.23.140 with SMTP id 134mr7360136ith.1.1516775504745; Tue, 23 Jan 2018 22:31:44 -0800 (PST) Received: from ?IPv6:::ffff:172.31.1.117? ([12.192.229.251]) by smtp.gmail.com with ESMTPSA id z197sm4159719ioz.16.2018.01.23.22.31.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jan 2018 22:31:43 -0800 (PST) Message-ID: <5a68284f.ce336b0a.101b2.a31e@mx.google.com> MIME-Version: 1.0 To: "edk2-devel@lists.01.org" Cc: Andrew Fish From: JUNWEN JIA Date: Wed, 24 Jan 2018 14:31:43 +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 06:26:18 -0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, Andrew: Thanks for your reply. What I was trying is to restart my computer afte= r 1 minute shutdown in shell. That is why I need to get .efi file through E= DK. The following is the assembly language I wrote in Reboot.asm, and I put thi= s file in BaseLib->Ia32,along with Reboot.asm, Reboot.c.=20 .code Reboot PROC mov al,0bh out 70h,al mov al,20h out 71h,al ;enable RTC interrupt mov al,01h out 70h,al mov al,00h out 71h,al=20 mov al,03h out 70h,al mov al,01h out 71h,al=20 mov al,05h out 70h,al mov al,12h=20 out 71h,al ;wirte cmos alarm mov al,00h out 70h,al mov al,00h out 71h,al=20 mov al,02h out 70h,al mov al,00h out 71h,al=20 mov al,04h out 70h,al mov al,12h=20 out 71h,al ;set cmos time ret=20 Reboot ENDP END 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