more 0xcc, in data. There are i386 machines without NX, so this change
authorderaadt <deraadt@openbsd.org>
Sun, 10 Dec 2017 21:44:07 +0000 (21:44 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 10 Dec 2017 21:44:07 +0000 (21:44 +0000)
isn't a no-op
ok mlarkin

sys/arch/i386/i386/acpi_wakecode.S
sys/arch/i386/i386/locore0.S

index 6ab905d..3bab053 100644 (file)
@@ -516,57 +516,57 @@ _ACPI_TRMP_DATA_LABEL(.Lgdt_16_end)
 
        .align 4, 0xcc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_ebx)
-       .long 0
+       .long 0xcccccccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_ecx)
-       .long 0
+       .long 0xcccccccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_edx)
-       .long 0
+       .long 0xcccccccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_ebp)
-       .long 0
+       .long 0xcccccccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_esi)
-       .long 0
+       .long 0xcccccccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_edi)
-       .long 0
+       .long 0xcccccccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_esp)
-       .long 0
+       .long 0xcccccccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_fl)
-       .long 0
+       .long 0xcccccccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_cr0)
-       .long 0
+       .long 0xcccccccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_cr2)
-       .long 0
+       .long 0xcccccccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_cr3)
-       .long 0
+       .long 0xcccccccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_cr4)
-       .long 0
+       .long 0xcccccccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_ret)
-       .long 0
+       .long 0xcccccccc
 
        .align 16, 0xcc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_idt)
-       .space 6
+       .space 6, 0xcc
 
        .align 16, 0xcc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_gdt)
-       .space 6
+       .space 6, 0xcc
 
        .align 16, 0xcc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_ldt)
-       .short 0
+       .short 0xcccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_cs)
-       .short 0
+       .short 0xcccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_ds)
-       .short 0
+       .short 0xcccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_es)
-       .short 0
+       .short 0xcccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_fs)
-       .short 0
+       .short 0xcccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_gs)
-       .short 0
+       .short 0xcccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_ss)
-       .short 0
+       .short 0xcccc
 _ACPI_TRMP_DATA_LABEL(.Lacpi_saved_tr)
-       .short 0
+       .short 0xcccc
 
 _C_LABEL(acpi_tramp_data_end):
 
index 48d746e..cdc1f52 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: locore0.S,v 1.2 2017/06/29 06:15:30 mlarkin Exp $     */
+/*     $OpenBSD: locore0.S,v 1.3 2017/12/10 21:44:07 deraadt Exp $     */
 /*     $NetBSD: locore.s,v 1.145 1996/05/03 19:41:19 christos Exp $    */
 
 /*-
@@ -69,7 +69,7 @@
  */
        .data
 
-       .space 512
+       .space 512,0xcc
 tmpstk: