62 lines
2.1 KiB
NASM
62 lines
2.1 KiB
NASM
;; @file
|
|
; Supports IA32 CPU operation for CMOS library
|
|
;
|
|
;******************************************************************************
|
|
;* Copyright (c) 2012 - 2016, Insyde Software Corp. All Rights Reserved.
|
|
;*
|
|
;* You may not reproduce, distribute, publish, display, perform, modify, adapt,
|
|
;* transmit, broadcast, present, recite, release, license or otherwise exploit
|
|
;* any part of this publication in any form, by any means, without the prior
|
|
;* written permission of Insyde Software Corporation.
|
|
;*
|
|
;******************************************************************************
|
|
;
|
|
; This file contains 'Framework Code' and is licensed as such
|
|
; under the terms of your license agreement with Intel or your
|
|
; vendor. This file may not be modified, except as allowed by
|
|
; additional terms of your license agreement.
|
|
;
|
|
; Copyright (c) 2006 Intel Corporation. All rights reserved
|
|
; This software and associated documentation (if any) is furnished
|
|
; under a license and may only be used or copied in accordance
|
|
; with the terms of the license. Except as permitted by such
|
|
; license, no part of this software or documentation may be
|
|
; reproduced, stored in a retrieval system, or transmitted in any
|
|
; form or by any means without the express written consent of
|
|
; Intel Corporation.
|
|
;
|
|
|
|
SECTION .text
|
|
|
|
;------------------------------------------------------------------------------
|
|
; VOID
|
|
; CmosDisableInterrupt (
|
|
; )
|
|
;------------------------------------------------------------------------------
|
|
global ASM_PFX(CmosDisableInterrupt)
|
|
ASM_PFX(CmosDisableInterrupt):
|
|
cli
|
|
ret
|
|
|
|
;------------------------------------------------------------------------------
|
|
; VOID
|
|
; CmosEableInterrupt (
|
|
; )
|
|
;------------------------------------------------------------------------------
|
|
global ASM_PFX(CmosEableInterrupt)
|
|
ASM_PFX(CmosEableInterrupt):
|
|
sti
|
|
ret
|
|
|
|
;------------------------------------------------------------------------------
|
|
; UINT16
|
|
; CmosGetCpuFlags (
|
|
; )
|
|
;------------------------------------------------------------------------------
|
|
global ASM_PFX(CmosGetCpuFlags)
|
|
ASM_PFX(CmosGetCpuFlags):
|
|
pushfw
|
|
pop ax
|
|
ret
|
|
|