]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
x86/ACPI: annotate assembly function/data with type and size
authorJan Beulich <jbeulich@suse.com>
Wed, 2 Oct 2024 06:55:31 +0000 (08:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 2 Oct 2024 06:55:31 +0000 (08:55 +0200)
Use the generic framework from xen/linkage.h.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/acpi/wakeup_prot.S

index 3855ff1ddb94f554d65d1bf489e4a759fc56cd3c..8ce57ad137f6b47f29c5cabb3ef383600df4a9f4 100644 (file)
@@ -7,7 +7,7 @@
         .text
         .code64
 
-ENTRY(do_suspend_lowlevel)
+FUNC(do_suspend_lowlevel)
         push    %rbp
         push    %rbx
         push    %r12
@@ -43,7 +43,7 @@ ENTRY(do_suspend_lowlevel)
          *
          * Everything else, including the stack, needs restoring.
          */
-ENTRY(s3_resume)
+LABEL(s3_resume)
         lgdt    boot_gdtr(%rip)
 
         mov     saved_cr0(%rip), %rax
@@ -132,6 +132,7 @@ ENTRY(s3_resume)
         pop     %rbx
         pop     %rbp
         ret
+END(do_suspend_lowlevel)
 
 .data
         .align 16
@@ -142,5 +143,4 @@ saved_cr0:      .quad   0
 saved_ssp:      .quad   0
 #endif
 
-GLOBAL(saved_magic)
-        .long   0x9abcdef0
+ASM_INT(saved_magic, 0x9abcdef0)