Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shutdown issue resolved!! #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/libarch/intel/IntelCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <Types.h>
#include <Macros.h>
#include "Endian.h"
#include "IntelIO.h"

/**
Expand Down Expand Up @@ -57,13 +58,12 @@ inline u64 timestamp()
/**
* Shutdown the machine via ACPI.
*
* @note We do not have ACPI yet. Shutdown now has a bit naive implementation.
* @see http://forum.osdev.org/viewtopic.php?t=16990
* Changes made: changed the outw arguments to support the newer versions of the QEMU.
*/
#define cpu_shutdown() \
({ \
IntelIO io; \
io.outw(0xB004, 0x0 | 0x2000); \
io.outw(0x604, 0x0 | 0x2000); \
})

/**
Expand Down