accessing bios from kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: accessing bios from kernel module

Hi,

i tried to access a pc-bios from within a kernel module as follows:

short in = 0x6f0a, out;
asm (
        "movw %1, %%ax;"
        "int $0x15;"
        "movw %%ax, %0;"
        :"=r"(out)
        :"r"(in)
        :"%ax"
);

printk("%x\n", (int) out);

It seems, that the interrupt to bios is ignored, because nothing happens. Has anyone some link, example code or tip, that could help?

Thanks,
Matthias

--
Dipl.-Inf. Matthias Weber
University of Erlangen-Nuremberg
Institute for Manufacturing Automation and Production Systems
Egerlandstraße 7-9
91058 Erlangen
Germany
Tel. :*49 9131/85-27702
Fax. :*49 9131/302528
www :www.faps.uni-erlangen.de
mailto:weber@xxxxxxxxxxxxxxxxxxxx


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux