Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\boot\apm.c Create Date:2022-07-28 07:27:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:-*- linux-c -*- ------------------------------------------------------- ** Copyright (C) 1991, 1992 Linus Torvalds* Copyright 2007 rPath, Inc

Proto:int query_apm_bios(void)

Type:int

Parameter:Nothing

24  SPDX-License-Identifier: GPL-2.0-or-later
25  ah = 0x53
26  intcall(0x15, & ireg, & oreg)
28  If flags & X86_EFLAGS_CF Then Return -1
31  If bx != 0x504d Then Return -1
34  If Not (cx & 0x02) Then Return -1
38  al = 0x04
39  intcall(0x15, & ireg, NULL)
42  al = 0x03
43  intcall(0x15, & ireg, & oreg)
45  cseg = ax
46  offset = ebx
47  cseg_16 = cx
48  dseg = dx
49  cseg_len = si
50  cseg_16_len = hsi
51  dseg_len = di
53  If flags & X86_EFLAGS_CF Then Return -1
59  al = 0x00
60  intcall(0x15, & ireg, & oreg)
62  If eflags & X86_EFLAGS_CF || bx != 0x504d Then
64  al = 0x04
65  intcall(0x15, & ireg, NULL)
66  Return -1
69  version = ax
70  flags = cx
71  Return 0