Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/lib
In directory usw-pr-cvs1:/tmp/cvs-serv29071
Modified Files:
Makefile
Added Files:
clear_user.S
Log Message:
add clear user .. finished user access .. now to optimise at some stage
--- NEW FILE ---
/*
* $Id: clear_user.S,v 1.1 2001/03/14 22:31:05 airlied Exp $
*
* Copyright (C) 2001, Dave Airlie
*
* VAX Assembly implementation of clear_user
*/
#include <asm/errno.h>
#include <linux/linkage.h>
/* unsigned long __clear_user(void *addr, unsigned long size);
* number of bytes not cleared is returned
*/
#define EX(insn, addr, reg, handler) \
9: insn addr, reg; \
.section __ex_table, "a"; \
.long 9b, handler; \
.previous
.text
ENTRY(__clear_user)
.word 0x3e
movl 4(ap), r1 /* r1 now has addr */
movl 8(ap), r1 /* r0 has size */
beql 2f
1: EX(movb, (r1)+, 0, fault)
sobgtr r0, 1
2: ret
.section .fixup, "ax"
fault: ret
.previous
Index: Makefile
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/lib/Makefile,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- Makefile 2001/03/11 23:54:31 1.11
+++ Makefile 2001/03/14 22:31:05 1.12
@@ -12,7 +12,7 @@
all: libio.a
L_TARGET := libio.a
-obj-y := string.o string_user.o console.o negdi.o checksum.o lshrdi3.o strncpy_user.o copy_tofrom_user.o strnlen_user.o
+obj-y := string.o console.o negdi.o checksum.o lshrdi3.o strncpy_user.o copy_tofrom_user.o strnlen_user.o clear_user.o
include $(TOPDIR)/Rules.make
|