167117Sdfr/*	$NetBSD: setlogin.S,v 1.1 1995/02/10 17:50:39 cgd Exp $	*/
267117Sdfr
367117Sdfr/*
467117Sdfr * Copyright (c) 1994, 1995 Carnegie-Mellon University.
567117Sdfr * All rights reserved.
667117Sdfr *
767117Sdfr * Author: Chris G. Demetriou
867117Sdfr *
967117Sdfr * Permission to use, copy, modify and distribute this software and
1067117Sdfr * its documentation is hereby granted, provided that both the copyright
1167117Sdfr * notice and this permission notice appear in all copies of the
1267117Sdfr * software, derivative works or modified versions, and any portions
1367117Sdfr * thereof, and that both notices appear in supporting documentation.
1467117Sdfr *
1567117Sdfr * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
1667117Sdfr * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
1767117Sdfr * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
1867117Sdfr *
1967117Sdfr * Carnegie Mellon requests users of this software to return to
2067117Sdfr *
2167117Sdfr *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
2267117Sdfr *  School of Computer Science
2367117Sdfr *  Carnegie Mellon University
2467117Sdfr *  Pittsburgh PA 15213-3890
2567117Sdfr *
2667117Sdfr * any improvements or extensions that they make and grant Carnegie the
2767117Sdfr * rights to redistribute these changes.
2867117Sdfr */
2967117Sdfr
30111777Sobrien#include <machine/asm.h>
31111777Sobrien__FBSDID("$FreeBSD$");
32111777Sobrien
3367117Sdfr#include "SYS.h"
3467117Sdfr
3567117SdfrIMPORT(_logname_valid, 4)			/* in getlogin() */
3667117Sdfr
3767117SdfrSYSCALL(setlogin)
3884755Sdfr	add	r14=@ltoff(_logname_valid),gp ;;
3984755Sdfr	ld8	r14=[r14] ;;
4067117Sdfr	st4	[r14]=r0			/* clear it */
4167117Sdfr	br.ret.sptk.few rp
42118330SmarcelEND(__sys_setlogin)
43