]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
parallel debug parallel-6.2-rc6
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 4 Feb 2023 15:20:24 +0000 (15:20 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 4 Feb 2023 15:33:55 +0000 (15:33 +0000)
arch/x86/kernel/head_64.S

index 656e6018b9d43bdddc87875c2a1687166c36d6fd..35a2ad6db27d2a79fd5c8193a85796f916eb2e86 100644 (file)
@@ -281,6 +281,15 @@ SYM_INNER_LABEL(secondary_startup_64_no_verify, SYM_L_GLOBAL)
 
 .Lsetup_AP:
        /* EDX contains the APICID of the current CPU */
+#if 0
+       /* Test hack: Print APIC ID and then CPU# when we find it. */
+       mov     %edx, %ecx
+       mov     %edx, %eax
+       addb    $'A', %al
+       mov     $0x3f8, %dx
+       outb    %al, %dx
+       mov     %ecx, %edx
+#endif
        xorl    %ecx, %ecx
        leaq    cpuid_to_apicid(%rip), %rbx
 
@@ -292,6 +301,14 @@ SYM_INNER_LABEL(secondary_startup_64_no_verify, SYM_L_GLOBAL)
        jmp     .Lfind_cpunr
 
 .Linit_cpu_data:
+#if 0
+       mov     %rcx, %rax
+       shr     $3, %rax
+       addb    $'a', %al
+
+       mov     $0x3f8, %dx
+       outb    %al, %dx
+#endif
        /* Get the per cpu offset */
        leaq    __per_cpu_offset(%rip), %rbx
        addq    %rcx, %rbx