Author Topic: Windows 7 64-bit ring0 CLI STI instructions?  (Read 32268 times)

JohnnyTheKid

  • Member
  • ***
  • Posts: 1
Windows 7 64-bit ring0 CLI STI instructions?
« on: November 24, 2012, 02:57:36 pm »
Hi.

I'm currently working on a Python script that is using inpoutx64.dll to perform direct I/O operations on my motherboard's real time clock.
I would like to create a program similar to hwclock (Linux) but for Windows.

I successfully managed to read the real time clock values but I'm having trouble writing to the real time clock's registers.
According to this website: http://wiki.osdev.org/RTC
I must perform a CLI (clear interrupts) and then write to the hardware clock and then do an STI (set interrupts).

But unfortunately this is not possible by default using inpout32 or WinRing0 or tvicport.

Do you think it would be possible to add a CLI and an STI function to either the inpoutx64 or the WinRing0 source code and re-compile it ?
I am using Windows 7 64-bit and I've got a quad-core processor (i7 920)

Can anyone please help me? I know nothing about assembly language or C++ only a little bit of Python. Thank you very much.

And sorry if this was posted in the wrong section

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
« Last Edit: November 24, 2012, 10:29:36 pm by Jan Axelson »