📄 gpm.asm
字号:
;---------------------------------------------------------------;
; ORG 8019H ;
;---------------------------------------------------------------;
; Input : NONE ;
; Output: NONE ;
; Register destroyed : ALL ;
;---------------------------------------------------------------;
intel_amd_plus_detect proc near
; jmp short intel_amd_plus_detect_ext ; INTEL/AMD PLUS CPU DETECT (ORG 800DH)
; nop ;
jmp intel_cpu_smi_entry_ext ; INTEL/AMD PLUS CPU detected
; nop ;
intel_amd_plus_detect endp
;---------------------------------------------------------------;
; AMD_NON_PLUS_IBM_DETECT ;
;---------------------------------------------------------------;
; ORG 801CH ;
;---------------------------------------------------------------;
; Input : NONE ;
; Output: NONE ;
; Register destroyed : ALL ;
;---------------------------------------------------------------;
amd_non_plus_ibm_detect proc near
; jmp short amd_non_plus_ibm_detect_ext; AMD non-PLUS/IBM CPU DETECT (ORG 8010H)
; nop ;
jmp amd_cpu_smi_entry_ext ; AMD non-PLUS/IBM CPU DETECTED
; nop ;
amd_non_plus_ibm_detect endp
;---------------------------------------------------------------;
; CRX_TI_DETECT ;
;---------------------------------------------------------------;
; ORG 801FH ;
;---------------------------------------------------------------;
; Input : NONE ;
; Output: NONE ;
; Register destroyed : ALL ;
;---------------------------------------------------------------;
crx_ti_detect proc near
; jmp short crx_ti_detect_ext ; CYRIX/TI CPU DETECT (ORG 8013H)
; nop ;
jmp crx_cpu_smi_entry_ext ; CYRIX/TI CPU DETECTED
; nop ;
crx_ti_detect endp
;---------------------------------------------------------------;
;*****************************************************************;
;*****************************************************************;
;** **;
;** (C)Copyright 1985-1996, American Megatrends Inc. **;
;** **;
;** All Rights Reserved. **;
;** **;
;** 6145-F, Northbelt Parkway, Norcross, **;
;** **;
;** Georgia - 30071, USA. Phone-(770)-246-8600. **;
;** **;
;*****************************************************************;
;*****************************************************************;
;---------------------------------------------------------------;
; CPU DETECT & CONTROL TRANSFER ROUTINES ;
;---------------------------------------------------------------;
; INTEL_AMD_PLUS_DETECT_EXT ;
;---------------------------------------------------------------;
; Input : NONE ;
; Output: NONE ;
; Register destroyed : ALL ;
;---------------------------------------------------------------;
;intel_amd_plus_detect_ext proc near
;
; jmp short intel_cpu_smi_entry_ext ; INTEL/AMD PLUS CPU detected
;
;intel_amd_plus_detect_ext endp
;---------------------------------------------------------------;
; AMD_NON_PLUS_IBM_DETECT_EXT ;
;---------------------------------------------------------------;
; Input : NONE ;
; Output: NONE ;
; Register destroyed : ALL ;
;---------------------------------------------------------------;
;amd_non_plus_ibm_detect_ext proc near
;
; jmp amd_cpu_smi_entry_ext ; AMD non-PLUS/IBM CPU DETECTED
;
;amd_non_plus_ibm_detect_ext endp
;---------------------------------------------------------------;
; CRX_TI_DETECT_EXT ;
;---------------------------------------------------------------;
; Input : NONE ;
; Output: NONE ;
; Register destroyed : ALL ;
;---------------------------------------------------------------;
;crx_ti_detect_ext proc near
;
; jmp crx_cpu_smi_entry_ext ; CYRIX/TI CPU DETECTED
;
;crx_ti_detect_ext endp
;---------------------------------------------------------------;
;*****************************************************************;
;*****************************************************************;
;** **;
;** (C)Copyright 1985-1996, American Megatrends Inc. **;
;** **;
;** All Rights Reserved. **;
;** **;
;** 6145-F, Northbelt Parkway, Norcross, **;
;** **;
;** Georgia - 30071, USA. Phone-(770)-246-8600. **;
;** **;
;*****************************************************************;
;*****************************************************************;
;---------------------------------------------------------------;
; GREEN PC CODE VERSION NO. ;
;---------------------------------------------------------------;
gpc_version label byte
db 'GPC-1.11 ',00h ;
;-----------------------------------------------;
public dummy_string
dummy_string label byte
db 00h ;
;---------------------------------------------------------------;
;*****************************************************************;
;*****************************************************************;
;** **;
;** (C)Copyright 1985-1996, American Megatrends Inc. **;
;** **;
;** All Rights Reserved. **;
;** **;
;** 6145-F, Northbelt Parkway, Norcross, **;
;** **;
;** Georgia - 30071, USA. Phone-(770)-246-8600. **;
;** **;
;*****************************************************************;
;*****************************************************************;
;---------------------------------------------------------------;
; INCLUDE FILES FOR CODE USAGE ;
;---------------------------------------------------------------;
include gpmcpu.inc ; multiple CPU support code
IF IRQ_HANDLING_SUPPORT
include gpmirq.inc ; IRQ based power management support code
include gapmirq.inc ; IRQ based power management APM support code
ENDIF
include gpmsmi.inc ; SMI handling code (core part)
include gpmmisc.inc ; miscellaneous subroutines
include gpmlib.inc ; library files
include gpminit.inc ; smi initialisation code (core part)
IF apm12_support
include gapm12.inc ; v1.2 APM support (core part)
ELSE
IF apm11_support
include gapm11.inc ; v1.1 APM support (core part)
ELSE
include gapm10.inc ; v1.0 APM support (core part)
ENDIF
ENDIF
include gpmmp.inc ; SMI handling code for INTEL APIC multiprocessor
include gpm.css ; smi initialisation code + smi handling code (chipset part)
include gpmext.css ; smi handling code (chipset part)
include gapm.css ; APM code (chipset part)
IF apm12_support
include gapm12.oem ; v1.2 APM code (chipset part)
ENDIF
;---------------------------------------------------------------;
;*****************************************************************;
;*****************************************************************;
;** **;
;** (C)Copyright 1985-1996, American Megatrends Inc. **;
;** **;
;** All Rights Reserved. **;
;** **;
;** 6145-F, Northbelt Parkway, Norcross, **;
;** **;
;** Georgia - 30071, USA. Phone-(770)-246-8600. **;
;** **;
;*****************************************************************;
;*****************************************************************;
;---------------------------------------------------------------;
smi_code_end label byte
;---------------------------------------------------------------;
.286p
_text ends
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -