From 23cf8028ec4b7bb2206fbfde1fe9b59ac977f324 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 21 Mar 2014 21:02:52 +0000 Subject: 2014-03-21 Sabrini Ni * nds32/_argv.S: Replace syscall with break. * nds32/_argvlen.S: Ditto. * nds32/_chdir.S: Ditto. * nds32/_chmod.S: Ditto. * nds32/_close.S: Ditto. * nds32/_exit.S: Ditto. * nds32/_fstat.S: Ditto. * nds32/_getpid.S: Ditto. * nds32/_gettimeofday.S: Ditto. * nds32/_isatty.S: Ditto. * nds32/_kill.S: Ditto. * nds32/_link.S: Ditto. * nds32/_lseek.S: Ditto. * nds32/_open.S: Ditto. * nds32/_read.S: Ditto. * nds32/_rename.S: Ditto. * nds32/_stat.S: Ditto. * nds32/_system.S: Ditto. * nds32/_time.S: Ditto. * nds32/_times.S: Ditto. * nds32/_unlink.S: Ditto. * nds32/_utime.S: Ditto. * nds32/_write.S: Ditto. * nds32/syscall_error_handler.S: Ditto. * nds32/vh.h: New. --- libgloss/nds32/_rename.S | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'libgloss/nds32/_rename.S') diff --git a/libgloss/nds32/_rename.S b/libgloss/nds32/_rename.S index 0781e3a88..f91c1f60f 100644 --- a/libgloss/nds32/_rename.S +++ b/libgloss/nds32/_rename.S @@ -27,8 +27,16 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "../syscall.h" -#include "syscall_extra.h" +#ifdef __NDS32_VH__ + +#include "vh.h" +.extern _impure_ptr +TYPE1 _rename, VH_RENAME +#else /* not __NDS32_VH__ */ +#include "../syscall.h" +#include "syscall_extra.h" SYS_WRAPPER _rename, SYS_rename + +#endif /* not __NDS32_VH__ */ -- cgit v1.2.3