about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/ia64/getcontext.S
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-01-08 10:21:17 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-01-08 17:09:36 -0300
commit460860f457e2a889785c506e8c77d4a7dff24d3e (patch)
tree02d5f760aa8ebee152f3acc4ae564348d57d3528 /sysdeps/unix/sysv/linux/ia64/getcontext.S
parente171ad7d596878d0d4f21a0713d8dbb8d8788d7e (diff)
downloadglibc-460860f457e2a889785c506e8c77d4a7dff24d3e.tar.gz
glibc-460860f457e2a889785c506e8c77d4a7dff24d3e.tar.xz
glibc-460860f457e2a889785c506e8c77d4a7dff24d3e.zip
Remove ia64-linux-gnu
Linux 6.7 removed ia64 from the official tree [1], following the general
principle that a glibc port needs upstream support for the architecture
in all the components it depends on (binutils, GCC, and the Linux
kernel).

Apart from the removal of sysdeps/ia64 and sysdeps/unix/sysv/linux/ia64,
there are updates to various comments referencing ia64 for which removal
of those references seemed appropriate. The configuration is removed
from README and build-many-glibcs.py.

The CONTRIBUTED-BY, elf/elf.h, manual/contrib.texi (the porting
mention), *.po files, config.guess, and longlong.h are not changed.

For Linux it allows cleanup some clone2 support on multiple files.

The following bug can be closed as WONTFIX: BZ 22634 [2], BZ 14250 [3],
BZ 21634 [4], BZ 10163 [5], BZ 16401 [6], and BZ 11585 [7].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=43ff221426d33db909f7159fdf620c3b052e2d1c
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=22634
[3] https://sourceware.org/bugzilla/show_bug.cgi?id=14250
[4] https://sourceware.org/bugzilla/show_bug.cgi?id=21634
[5] https://sourceware.org/bugzilla/show_bug.cgi?id=10163
[6] https://sourceware.org/bugzilla/show_bug.cgi?id=16401
[7] https://sourceware.org/bugzilla/show_bug.cgi?id=11585
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/ia64/getcontext.S')
-rw-r--r--sysdeps/unix/sysv/linux/ia64/getcontext.S156
1 files changed, 0 insertions, 156 deletions
diff --git a/sysdeps/unix/sysv/linux/ia64/getcontext.S b/sysdeps/unix/sysv/linux/ia64/getcontext.S
deleted file mode 100644
index 4efe2a3b47..0000000000
--- a/sysdeps/unix/sysv/linux/ia64/getcontext.S
+++ /dev/null
@@ -1,156 +0,0 @@
-/* Copyright (C) 2001-2024 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-#include <sysdep.h>
-#include <features.h>
-
-#include "ucontext_i.h"
-
-/*  __getcontext (ucontext_t *ucp)
-
-  Saves the machine context in UCP such that when it is activated,
-  it appears as if __getcontext() returned again.  The only difference
-  is that on a first return, r9 contains 1 and on a subsequent
-  return, it contains 0.
-
-  This implementation in intended to be used for *synchronous* context
-  switches only.  Therefore, it does not have to save anything
-  other than the PRESERVED state.  */
-
-ENTRY(__getcontext)
-	.prologue
-	.body
-	alloc r11 = ar.pfs, 1, 0, 4, 0
-
-	// sigprocmask (SIG_BLOCK, NULL, &sc->sc_mask):
-
-	mov r3 = SC_MASK
-	mov out0 = SIG_BLOCK
-
-	flushrs					// save dirty partition on rbs
-	mov out1 = 0
-	add out2 = r3, in0
-
-	mov out3 = 8	// sizeof kernel sigset_t
-	DO_CALL(__NR_rt_sigprocmask)
-
-	mov.m rFPSR = ar.fpsr
-	mov.m rRSC = ar.rsc
-	add r2 = SC_GR+1*8, r32
-	;;
-	mov.m rBSP = ar.bsp
-	.prologue
-	.save ar.unat, rUNAT
-	mov.m rUNAT = ar.unat
-	.body
-	add r3 = SC_GR+4*8, r32
-	;;
-
-.mem.offset 0,0; st8.spill [r2] = r1, (5*8 - 1*8)
-.mem.offset 8,0; st8.spill [r3] = r4, 16
-	mov rPFS = r11
-	;;
-.mem.offset 0,0; st8.spill [r2] = r5, 16
-.mem.offset 8,0; st8.spill [r3] = r6, 48
-	and rTMP = ~0x3, rRSC
-	;;
-.mem.offset 0,0; st8.spill [r2] = r7, (SC_FR+2*16-(SC_GR+7*8))
-.mem.offset 8,0; st8.spill [r3] = sp, (SC_FR+3*16-(SC_GR+12*8))
-	;;
-	mov.m ar.rsc = rTMP 		// put RSE into enforced lazy mode
-	mov.m rNAT = ar.unat
-	mov.i rLC = ar.lc
-	;;
-	mov.m rRNAT = ar.rnat
-	mov.m ar.rsc = rRSC 		// restore RSE mode
-	mov rPR = pr
-
-	/*
-	 * Rotate NaT bits by rPOS positions to the right:
-	 */
-	stf.spill [r2] = f2, 32
-	stf.spill [r3] = f3, 32
-	add rPOS = SC_GR, r32			// rPOS <- &sc_gr[0]
-	;;
-	stf.spill [r2] = f4, (16*16-4*16)
-	stf.spill [r3] = f5, (17*16-5*16)
-	extr.u rPOS = rPOS, 3, 6		// get NaT bit number for r0
-	;;
-	stf.spill [r2] = f16, 32
-	stf.spill [r3] = f17, 32
-	sub rCPOS = 64, rPOS
-	;;
-	stf.spill [r2] = f18, 32
-	stf.spill [r3] = f19, 32
-	shr.u rTMP = rNAT, rPOS
-	;;
-	stf.spill [r2] = f20, 32
-	stf.spill [r3] = f21, 32
-	shl rNAT = rNAT, rCPOS
-	;;
-	stf.spill [r2] = f22, 32
-	stf.spill [r3] = f23, 32
-	or rNAT = rNAT, rTMP
-	;;
-	stf.spill [r2] = f24, 32
-	stf.spill [r3] = f25, 32
-	mov r8 = 0
-	;;
-	stf.spill [r2] = f26, 32
-	stf.spill [r3] = f27, 32
-	mov r9 = 1
-	;;
-	stf.spill [r2] = f28, 32
-	stf.spill [r3] = f29, 32
-	mov rB0 = b0
-	;;
-	stf.spill [r2] = f30, 32
-	stf.spill [r3] = f31, 32
-	mov rB1 = b1
-	;;
-	mov ar.unat = rUNAT	// we're done spilling integer regs; restore caller's UNaT
-	add r2 = SC_NAT, r32
-	add r3 = SC_BSP, r32
-	;;
-	st8 [r2] = rNAT, (SC_RNAT-SC_NAT)
-	st8 [r3] = rBSP, (SC_UNAT-SC_BSP)
-	mov rB2 = b2
-	;;
-	st8 [r2] = rRNAT, (SC_FPSR-SC_RNAT)
-	st8 [r3] = rUNAT, (SC_PFS-SC_UNAT)
-	mov rB3 = b3
-	;;
-	st8 [r2] = rFPSR, (SC_LC-SC_FPSR)
-	st8 [r3] = rPFS, (SC_PR-SC_PFS)
-	mov rB4 = b4
-	;;
-	st8 [r2] = rLC, (SC_BR+0*8-SC_LC)
-	st8 [r3] = rPR, (SC_BR+1*8-SC_PR)
-	mov rB5 = b5
-	;;
-	st8 [r2] = rB0, 16
-	st8 [r3] = rB1, 16
-	;;
-	st8 [r2] = rB2, 16
-	st8 [r3] = rB3, 16
-	;;
-	st8 [r2] = rB4
-	st8 [r3] = rB5
-	ret
-END(__getcontext)
-
-weak_alias (__getcontext, getcontext)