Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309175
b: refs/heads/master
c: 61f5446
h: refs/heads/master
i:
  309173: c271c34
  309171: d157b09
  309167: 5edcde9
v: v3
  • Loading branch information
H. Peter Anvin committed May 21, 2012
1 parent 26a861a commit ae29847
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8a3b947c40cb36100f316ac0d433f4ae554ee4cc
refs/heads/master: 61f5446169046c217a5479517edac3a890c3bee7
9 changes: 9 additions & 0 deletions trunk/arch/x86/realmode/rm/header.S
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <linux/linkage.h>
#include <asm/page_types.h>

#include "realmode.h"

.section ".header", "a"

.balign 16
Expand All @@ -30,3 +32,10 @@ GLOBAL(real_mode_header)
.long pa_machine_real_restart_asm
#endif
END(real_mode_header)

/* End signature, used to verify integrity */
.section ".signature","a"
.balign 4
GLOBAL(end_signature)
.long REALMODE_END_SIGNATURE
END(end_signature)
5 changes: 5 additions & 0 deletions trunk/arch/x86/realmode/rm/realmode.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@

#endif /* __ASSEMBLY__ */

/*
* Signature at the end of the realmode region
*/
#define REALMODE_END_SIGNATURE 0x65a22c82

#endif /* ARCH_X86_REALMODE_RM_REALMODE_H */
1 change: 0 additions & 1 deletion trunk/arch/x86/realmode/rm/wakeup.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ extern struct wakeup_header wakeup_header;

#define WAKEUP_HEADER_OFFSET 8
#define WAKEUP_HEADER_SIGNATURE 0x51ee1111
#define WAKEUP_END_SIGNATURE 0x65a22c82

/* Wakeup behavior bits */
#define WAKEUP_BEHAVIOR_RESTORE_MISC_ENABLE 0
Expand Down
6 changes: 1 addition & 5 deletions trunk/arch/x86/realmode/rm/wakeup_asm.S
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ ENTRY(wakeup_start)

/* Check we really have everything... */
movl end_signature, %eax
cmpl $WAKEUP_END_SIGNATURE, %eax
cmpl $REALMODE_END_SIGNATURE, %eax
jne bogus_real_magic

/* Call the C code */
Expand Down Expand Up @@ -175,7 +175,3 @@ GLOBAL(wakeup_idt)
.long 0 /* address */
.word 0
END(wakeup_idt)

.section ".signature","a"
end_signature:
.long WAKEUP_END_SIGNATURE

0 comments on commit ae29847

Please sign in to comment.