This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Remove sparcv8 support


Hi Dave.

> diff --git a/arch/sparc/kernel/casemul.S b/arch/sparc/kernel/casemul.S
> new file mode 100644
> index 0000000..237221f
> --- /dev/null
> +++ b/arch/sparc/kernel/casemul.S
> @@ -0,0 +1,66 @@
> +#include <asm/asi.h>
> +#include <asm/thread_info.h>
> +#include <asm/trap_block.h>
> +#include <asm/ptrace.h>
> +#include <asm/head.h>
> +
> +	.text
> +	.align		128
> +	.globl		emulate_cas
> +	.type		emulate_cas,#function
> +emulate_cas:
ENTRY(emulate_cas)

> +	casa		[%o0] ASI_AIUP, %o1, %o2
> +	done
> +	nop; nop; nop; nop; nop; nop;
> +	nop; nop; nop; nop; nop; nop; nop; nop
> +	nop; nop; nop; nop; nop; nop; nop; nop
> +	nop; nop; nop; nop; nop;
> +	ba,a,pt		%xcc, 3f
> +	ba,a,pt		%xcc, 2f
> +	ba,a,pt		%xcc, 1f
> +	.size		emulate_cas,.-emulate_cas
ENDPROC()

Did not (yet) look at the details of emulate_cas.

	Sam


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]