CPU IO 的读取主要要找到对应的IO地址
.nasm 文件
SECTION .text
;------------------------------------------------------------------------------
; UINT8
; EFIAPI
; CMOSRead (
; IN UINT Address
; );
;------------------------------------------------------------------------------
global ASM_PFX(CMOSRead)
ASM_PFX(CMOSRead):
mov rdx,[rcx]
mov al,dl
out 70h,al
in al,71h
xor rdx,rdx
mov [rcx],rdx
mov [rcx],al
ret
.inf 文件
## @file
# Sample UEFI Application Reference EDKII Module.
#
# This is a sample shell application that will print "UEFI Hello World!" to the
# UEFI Console based on PCD setting.
#
# It demos how to use EDKII PCD mechanism to make code more flexible.
#
# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions o