ACPI and BIOS - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Hardware > Monitors, Printers and Peripherals
Closed Thread
Thread Tools Display Modes
Old 10-21-2011, 02:04 AM   #1 (permalink)
Newb Techie
Join Date: Oct 2011
Posts: 2
Default ACPI and BIOS


I used to have an account here a few years ago, but seem to have forgotten the username, password and email I used! Anyway, I am creating a small program in Assembly, which is put into the boot sector of a floppy disk, so I can play around with the computer, learn how it boots, etc. One thing I would like to learn how to do, but can't seem to find, is how to reset and turn off the computer. The closest I came to finding it was learning that there is some sort of interface with the ACPI in the BIOS. I had a look at a list of interrupts for the BIOS, and none seem to have any relationship with the ACPI. I wonder whether anyone could point me in the right direction as to how to interface with the ACPI, and send commands to restart or shut down the computer.

I have been doing all my testing inside a virtual machine with VirtualBox, and using virtual floppy images, so there is no risk of bricking the BIOS or anything like that.


tjetson94 is offline  
Old 10-22-2011, 06:11 AM   #2 (permalink)
Newb Techie
Join Date: Oct 2011
Posts: 2
Default Re: ACPI and BIOS

A quick update on the situation. After looking further it appears that loading 0 into ah and then calling interrupt 19h is supposed to reboot. I use the following code:
xor ah, ah
int 16h

mov ah, 0x00
int 19h
This code is supposed to wait for a keypress, then reboot the machine. I note that hitting a key seems to cause write activity from the floppy. I believe that the boot sector is copied from the boot drive to RAM when the computer is booting. This would tell me that there would be no further drive activity during booting. The fact that I see activity seems to indicate the machine is indeed booting (it is copying the sector over again). However, when one boots a machine inside VirtualBox, one sees the VirtualBox logo; plus my VM has the hard drive as the first boot drive. However each time I hit a key it just keeps displaying a black screen.

What I think is happening is the computer is indeed rebooting, but it isn't doing POST again, and isn't checking the correct boot order. What I am trying to code is like what happens if you do Start->Shutdown->Reset on Windows. The computer fully reboots, does POST, and boots from the hard drive. Does anybody know how I can instruct the BIOS to do this? I had the thought that maybe it is impossible, but it is obviously possible to do, as Windows does it.
tjetson94 is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Bios in this System is not Fully ACPI compliant ( Gigabyte GA-965 QM S2 ) dying4004 Microsoft Windows and Software 1 03-23-2008 08:24 PM
Help.....ACPI Bios Not fully compliant?? Bosox3 Microsoft Windows and Software 2 11-12-2006 12:17 AM
APM ACPI rookie1010 Microsoft Windows and Software 0 10-17-2006 05:36 AM
Acpi Tula M91-30 Microsoft Windows and Software 0 10-13-2004 07:19 AM
error log ACPI BIOS clem556 Microsoft Windows and Software 3 10-20-2003 08:30 AM

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 10:57 AM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.