]> git.itanic.dy.fi Git - linux-stable/commitdiff
scripts: clean up IA-64 code
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 24 Nov 2023 14:09:08 +0000 (23:09 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 3 Dec 2023 09:51:48 +0000 (18:51 +0900)
A little more janitorial work after commit cf8e8658100d ("arch: Remove
Itanium (IA-64) architecture").

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
scripts/checkstack.pl
scripts/gdb/linux/tasks.py
scripts/head-object-list.txt
scripts/kconfig/mconf.c
scripts/kconfig/nconf.c
scripts/package/kernel.spec
scripts/package/mkdebian
scripts/recordmcount.c
scripts/recordmcount.pl
scripts/xz_wrap.sh

index d83ba5d8f3f49f6c5e7349fefff382c0264fafb8..5995dd11a5a6e6d7947ee782b77deb14365c2e2a 100755 (executable)
@@ -68,9 +68,6 @@ my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack);
                #    2f60:    48 81 ec e8 05 00 00       sub    $0x5e8,%rsp
                $re = qr/^.*[as][du][db]    \$(0x$x{1,8}),\%(e|r)sp$/o;
                $dre = qr/^.*[as][du][db]    (%.*),\%(e|r)sp$/o;
-       } elsif ($arch eq 'ia64') {
-               #e0000000044011fc:       01 0f fc 8c     adds r12=-384,r12
-               $re = qr/.*adds.*r12=-(([0-9]{2}|[3-9])[0-9]{2}),r12/o;
        } elsif ($arch eq 'm68k') {
                #    2b6c:       4e56 fb70       linkw %fp,#-1168
                #  1df770:       defc ffe4       addaw #-28,%sp
index 17ec19e9b5bf6a93e95e224cc21c88320c5ad4ba..5be53b372a693871972ee950a91718facf203bf4 100644 (file)
@@ -86,21 +86,12 @@ LxPs()
 
 thread_info_type = utils.CachedType("struct thread_info")
 
-ia64_task_size = None
-
 
 def get_thread_info(task):
     thread_info_ptr_type = thread_info_type.get_type().pointer()
-    if utils.is_target_arch("ia64"):
-        global ia64_task_size
-        if ia64_task_size is None:
-            ia64_task_size = gdb.parse_and_eval("sizeof(struct task_struct)")
-        thread_info_addr = task.address + ia64_task_size
-        thread_info = thread_info_addr.cast(thread_info_ptr_type)
-    else:
-        if task.type.fields()[0].type == thread_info_type.get_type():
-            return task['thread_info']
-        thread_info = task['stack'].cast(thread_info_ptr_type)
+    if task.type.fields()[0].type == thread_info_type.get_type():
+        return task['thread_info']
+    thread_info = task['stack'].cast(thread_info_ptr_type)
     return thread_info.dereference()
 
 
index 26359968744ef1e9d5e40937e3ac4055d3a7bf2a..890f69005bab41c6d0977f2a3e95de5143d4fbba 100644 (file)
@@ -17,7 +17,6 @@ arch/arm/kernel/head-nommu.o
 arch/arm/kernel/head.o
 arch/csky/kernel/head.o
 arch/hexagon/kernel/head.o
-arch/ia64/kernel/head.o
 arch/loongarch/kernel/head.o
 arch/m68k/68000/head.o
 arch/m68k/coldfire/head.o
index eccc87a441e713a8b9013e3b286a176688ece372..3795c36a9181aaca25fb39d3771e4531e67063f8 100644 (file)
@@ -247,7 +247,7 @@ search_help[] =
        "      -> PCI support (PCI [=y])\n"
        "(1)     -> PCI access mode (<choice> [=y])\n"
        "  Defined at drivers/pci/Kconfig:47\n"
-       "  Depends on: X86_LOCAL_APIC && X86_IO_APIC || IA64\n"
+       "  Depends on: X86_LOCAL_APIC && X86_IO_APIC\n"
        "  Selects: LIBCRC32\n"
        "  Selected by: BAR [=n]\n"
        "-----------------------------------------------------------------\n"
index 143a2c351d5764b5e9e1b175ad16bb40d3b5d2aa..8cd72fe259740583f76701a6be4445f7d366417f 100644 (file)
@@ -216,7 +216,7 @@ search_help[] =
 "Symbol: FOO [ = m]\n"
 "Prompt: Foo bus is used to drive the bar HW\n"
 "Defined at drivers/pci/Kconfig:47\n"
-"Depends on: X86_LOCAL_APIC && X86_IO_APIC || IA64\n"
+"Depends on: X86_LOCAL_APIC && X86_IO_APIC\n"
 "Location:\n"
 "  -> Bus options (PCI, PCMCIA, EISA, ISA)\n"
 "    -> PCI support (PCI [ = y])\n"
index 3eee0143e0c5cc7671e640aad2368446e94805e0..89298983a16941a20ccbd72330af1e168652c3f4 100644 (file)
@@ -56,13 +56,7 @@ patch -p1 < %{SOURCE2}
 
 %install
 mkdir -p %{buildroot}/boot
-%ifarch ia64
-mkdir -p %{buildroot}/boot/efi
-cp $(%{make} %{makeflags} -s image_name) %{buildroot}/boot/efi/vmlinuz-%{KERNELRELEASE}
-ln -s efi/vmlinuz-%{KERNELRELEASE} %{buildroot}/boot/
-%else
 cp $(%{make} %{makeflags} -s image_name) %{buildroot}/boot/vmlinuz-%{KERNELRELEASE}
-%endif
 %{make} %{makeflags} INSTALL_MOD_PATH=%{buildroot} modules_install
 %{make} %{makeflags} INSTALL_HDR_PATH=%{buildroot}/usr headers_install
 cp System.map %{buildroot}/boot/System.map-%{KERNELRELEASE}
index 5044224cf6714b3e5738f1e6d30dda05c589e3ff..c1a36da85e84f66aa12bccffe05909889fb7ffa9 100755 (executable)
@@ -26,7 +26,7 @@ set_debarch() {
 
        # Attempt to find the correct Debian architecture
        case "$UTS_MACHINE" in
-       i386|ia64|alpha|m68k|riscv*)
+       i386|alpha|m68k|riscv*)
                debarch="$UTS_MACHINE" ;;
        x86_64)
                debarch=amd64 ;;
index 40ae6b2c7a6da590f36d33caa543fd1376ba4945..3e4f54799cc0a5a366a222b66ef87d9abd9b5a36 100644 (file)
@@ -590,7 +590,6 @@ static int do_file(char const *const fname)
                ideal_nop = ideal_nop4_arm64;
                is_fake_mcount64 = arm64_is_fake_mcount;
                break;
-       case EM_IA_64:  reltype = R_IA64_IMM64; break;
        case EM_MIPS:   /* reltype: e_class    */ break;
        case EM_LOONGARCH:      /* reltype: e_class    */ break;
        case EM_PPC:    reltype = R_PPC_ADDR32; break;
index 6a4645a5797603c7a60ad95c4eaed5c25fbb49e2..f84df9e383fd0acf75b9afb87422aff9c088e3a8 100755 (executable)
@@ -275,13 +275,6 @@ if ($arch eq "x86_64") {
     $section_type = '%progbits';
     $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_AARCH64_CALL26\\s+_mcount\$";
     $type = ".quad";
-} elsif ($arch eq "ia64") {
-    $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s_mcount\$";
-    $type = "data8";
-
-    if ($is_module eq "0") {
-       $cc .= " -mconstant-gp";
-    }
 } elsif ($arch eq "sparc64") {
     # In the objdump output there are giblets like:
     # 0000000000000000 <igmp_net_exit-0x18>:
index 76e9cbcfbeab457bde700e733a5aae9f5ca1598f..d06baf626abe79d11401cb4a831b06e450c0b360 100755 (executable)
@@ -15,7 +15,6 @@ LZMA2OPTS=
 case $SRCARCH in
        x86)            BCJ=--x86 ;;
        powerpc)        BCJ=--powerpc ;;
-       ia64)           BCJ=--ia64; LZMA2OPTS=pb=4 ;;
        arm)            BCJ=--arm ;;
        sparc)          BCJ=--sparc ;;
 esac