Logo
Explore Help
Sign In
sysadmin/ipxe
1
0
Fork 0
You've already forked ipxe
mirror of https://github.com/ipxe/ipxe synced 2025-12-26 09:32:33 +03:00
Code Issues Packages Projects Releases Wiki Activity
Files
d454d98d35eab40fe13f2c2a705443dd086d1a57
ipxe/src/arch/i386/interface/pcbios/bios_nap.c

17 lines
310 B
C
Raw Normal View History

[build] Rename gPXE to iPXE Access to the gpxe.org and etherboot.org domains and associated resources has been revoked by the registrant of the domain. Work around this problem by renaming project from gPXE to iPXE, and updating URLs to match. Also update README, LOG and COPYRIGHTS to remove obsolete information. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2010-04-19 20:16:01 +01:00
#include <ipxe/nap.h>
[nap] Formalise the CPU sleeping API
2008-10-12 23:34:45 +01:00
#include <realmode.h>
[legal] Add a selection of FILE_LICENCE declarations Add FILE_LICENCE declarations to almost all files that make up the various standard builds of gPXE.
2009-05-01 15:41:06 +01:00
FILE_LICENCE ( GPL2_OR_LATER );
[nap] Formalise the CPU sleeping API
2008-10-12 23:34:45 +01:00
/**
* Save power by halting the CPU until the next interrupt
*
*/
static void bios_cpu_nap ( void ) {
[pcbios] Do not switch to real mode to sleep the CPU Now that we can handle interrupts while in protected mode, there is no need to switch to real mode just to halt the CPU. Signed-off-by: Michael Brown <mcb30@ipxe.org>
2014-04-29 18:17:17 +01:00
__asm__ __volatile__ ( "sti\n\t"
"hlt\n\t"
"cli\n\t" );
[nap] Formalise the CPU sleeping API
2008-10-12 23:34:45 +01:00
}
PROVIDE_NAP ( pcbios, cpu_nap, bios_cpu_nap );
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 106ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API