[PATCH] libc/sysdeps: {get,make,set,swap}context for i386
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Wed Oct 31 14:33:55 UTC 2012
On Wed, Oct 31, 2012 at 01:22:10PM +0000, Natanael Copa wrote:
> imported from glibc
>
> Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
> ---
> .gitignore | 1 +
> libc/sysdeps/linux/i386/Makefile.arch | 37 ++++++++++
> libc/sysdeps/linux/i386/getcontext.S | 84 ++++++++++++++++++++++
> libc/sysdeps/linux/i386/makecontext.S | 123 +++++++++++++++++++++++++++++++++
> libc/sysdeps/linux/i386/setcontext.S | 96 +++++++++++++++++++++++++
> libc/sysdeps/linux/i386/swapcontext.S | 110 +++++++++++++++++++++++++++++
> libc/sysdeps/linux/i386/ucontext_i.sym | 30 ++++++++
> 7 files changed, 481 insertions(+)
> create mode 100644 libc/sysdeps/linux/i386/getcontext.S
> create mode 100644 libc/sysdeps/linux/i386/makecontext.S
> create mode 100644 libc/sysdeps/linux/i386/setcontext.S
> create mode 100644 libc/sysdeps/linux/i386/swapcontext.S
> create mode 100644 libc/sysdeps/linux/i386/ucontext_i.sym
>
> diff --git a/.gitignore b/.gitignore
> index 3ded06e..d09c929 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -18,6 +18,7 @@ install_dir/
> .*.dep
> /*.log
> cscope.*
> +ucontext_i.[chs]
please put that into a new libc/.gitignore
>
> #
> # Debugging files
> diff --git a/libc/sysdeps/linux/i386/Makefile.arch b/libc/sysdeps/linux/i386/Makefile.arch
> index a3bf32f..a12c42c 100644
> --- a/libc/sysdeps/linux/i386/Makefile.arch
> +++ b/libc/sysdeps/linux/i386/Makefile.arch
> @@ -11,6 +11,9 @@ SSRC := \
> __longjmp.S setjmp.S bsd-setjmp.S bsd-_setjmp.S \
> sync_file_range.S syscall.S mmap.S mmap64.S
>
> +LIBC_ARCH_DIR := $(top_srcdir)/libc/sysdeps/linux/$(TARGET_ARCH)
> +LIBC_ARCH_OUT := $(top_builddir)/libc/sysdeps/linux/$(TARGET_ARCH)
we do have ARCH_DIR in libc/sysdeps/linux/Makefile.commonarch and i
think that's what you should use there, too.
ceterum censeo that go should be fixed instead :P
but anyway. Please resend.
TIA,
More information about the uClibc
mailing list