Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161380
b: refs/heads/master
c: 840c2ba
h: refs/heads/master
v: v3
  • Loading branch information
Joseph Cihula authored and H. Peter Anvin committed Jul 21, 2009
1 parent 26c6d1c commit d2d721f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3162534069597e34dd0ac9eb711be8dc23835ae7
refs/heads/master: 840c2baf2d4cdf35ecc3b7fcbba7740f97de30a4
8 changes: 8 additions & 0 deletions trunk/arch/x86/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
# include <asm/iommu.h>
#endif

#include <asm/tboot.h>

/*
* Power off function, if any
*/
Expand Down Expand Up @@ -460,6 +462,8 @@ static void native_machine_emergency_restart(void)
if (reboot_emergency)
emergency_vmx_disable_all();

tboot_shutdown(TB_SHUTDOWN_REBOOT);

/* Tell the BIOS if we want cold or warm reboot */
*((unsigned short *)__va(0x472)) = reboot_mode;

Expand Down Expand Up @@ -586,6 +590,8 @@ static void native_machine_halt(void)
/* stop other cpus and apics */
machine_shutdown();

tboot_shutdown(TB_SHUTDOWN_HALT);

/* stop this cpu */
stop_this_cpu(NULL);
}
Expand All @@ -597,6 +603,8 @@ static void native_machine_power_off(void)
machine_shutdown();
pm_power_off();
}
/* a fallback in case there is no PM info available */
tboot_shutdown(TB_SHUTDOWN_HALT);
}

struct machine_ops machine_ops = {
Expand Down
3 changes: 3 additions & 0 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
#include <asm/io.h>
#include <asm/bugs.h>
#include <asm/setup.h>
#include <asm/tboot.h>
#include <asm/sections.h>
#include <asm/cacheflush.h>

Expand Down Expand Up @@ -715,6 +716,8 @@ asmlinkage void __init start_kernel(void)

ftrace_init();

tboot_create_trampoline();

/* Do the rest non-__init'ed, we're now alive */
rest_init();
}
Expand Down

0 comments on commit d2d721f

Please sign in to comment.