From owner-svn-src-all@freebsd.org Fri Jan 26 21:51:00 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BBCBAECB11C; Fri, 26 Jan 2018 21:51:00 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6EE948733D; Fri, 26 Jan 2018 21:51:00 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 69AFC2137B; Fri, 26 Jan 2018 21:51:00 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0QLp0HB021259; Fri, 26 Jan 2018 21:51:00 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0QLp0sE021257; Fri, 26 Jan 2018 21:51:00 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201801262151.w0QLp0sE021257@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Fri, 26 Jan 2018 21:51:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328446 - head/stand/uboot/lib X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/stand/uboot/lib X-SVN-Commit-Revision: 328446 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2018 21:51:00 -0000 Author: imp Date: Fri Jan 26 21:50:59 2018 New Revision: 328446 URL: https://svnweb.freebsd.org/changeset/base/328446 Log: Now that exit is __dead2, we need to tag ub_exit() as __dead2. To do that, we have to put a while (1); after the syscall that will never return to fake out the compiler.... Modified: head/stand/uboot/lib/glue.c head/stand/uboot/lib/glue.h Modified: head/stand/uboot/lib/glue.c ============================================================================== --- head/stand/uboot/lib/glue.c Fri Jan 26 18:42:28 2018 (r328445) +++ head/stand/uboot/lib/glue.c Fri Jan 26 21:50:59 2018 (r328446) @@ -187,6 +187,7 @@ ub_reset(void) { syscall(API_RESET, NULL); + while (1); /* Can't tag syscall as __dead2 */ } static struct mem_region mr[UB_MAX_MR]; Modified: head/stand/uboot/lib/glue.h ============================================================================== --- head/stand/uboot/lib/glue.h Fri Jan 26 18:42:28 2018 (r328445) +++ head/stand/uboot/lib/glue.h Fri Jan 26 21:50:59 2018 (r328446) @@ -78,7 +78,7 @@ void ub_putc(char); void ub_puts(const char *); /* system */ -void ub_reset(void); +void ub_reset(void) __dead2; struct sys_info *ub_get_sys_info(void); /* time */