Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp66484rwl; Thu, 6 Apr 2023 14:56:33 -0700 (PDT) X-Google-Smtp-Source: AKy350YjiTHCa0genf2o/UDbWAXV52det+ThSvxcWV3e/rSzcGEX3+AEcpQgGJeK5MslTTOhQ63C X-Received: by 2002:a05:6a20:8496:b0:d6:8c70:85ce with SMTP id u22-20020a056a20849600b000d68c7085cemr649040pzd.54.1680818193207; Thu, 06 Apr 2023 14:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680818193; cv=none; d=google.com; s=arc-20160816; b=h/7XU9BW1/vveLVW/wjq/nYhUaIGSzRY7pAdjN7CAEKL6zLmCcB4suj2KZxaNzF3// Y01fMvZf2fSJbMJyppxdyPx7q4IUacd1O8qjWsqeImpJfuksNQt+Ef8TE4sgA4kOQffO 9FXYJTout2PSkCLWXrBe0JWN9WKRkaRqSJzE77/SB/kFRCi/qvUmuhQFy8BR4CTQH6iP 9ieAG5ML6qAp3fqjJPavKKSwgtcaTnzaFjpBi59Viv3DNnhBdCAzm59PsmAJkliR5yZT q02+S4ANpFaiJMkpNs2+VBfM977o6e0bIe2iz0sUyyNYLORrr6rBcSuJ+YapoOkJWuey lzTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:dkim-signature :from; bh=VLffb6wy0FM6P3KdqUGC1S6N7f2+mQkgWpiEGqcV6yE=; b=VLueiXmNDxFWgo3mFYxU92ym9hJ2RYrnm0JvpY5NU9g6ZbxoVapDKPh83fWMsa1i/d +pvyxzDsZPNlNTb+4RSG92OUWV8hh7KVS+eYJPUIaOJ8g3dIe1o74P06g1ieu22XZjX0 17FnT5VdiKXCn4TDMBHhZLatFZONlsITffkvOdSUE2zFJmqsB4wzOYVJDxCnWbz6bMp1 W1Q06EFq4LH/Q5IfWlFbCSkGnpHYyT5Q+ZOjzeyPt9ss47gcMgyH5lqABuaKyDNtqPv/ Bi1sngmeQUqsKEG3fUfjVsQyaFnrf5oz+HA31eNwmhfbvG+pBXNc7wVVSqcZL/Maibwr cUZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=icuaixsv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m3-20020a632603000000b00513f61abcc5si2200744pgm.348.2023.04.06.14.56.21; Thu, 06 Apr 2023 14:56:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=icuaixsv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239100AbjDFVzL (ORCPT + 99 others); Thu, 6 Apr 2023 17:55:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237394AbjDFVy7 (ORCPT ); Thu, 6 Apr 2023 17:54:59 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 392729EF3; Thu, 6 Apr 2023 14:54:58 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1680818093; bh=au6cL+xeGyBx2JuVA4zq1izj1V8MrbDP7tzalqdO45Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=icuaixsvpSV0QsITo91zw6WlzMxn6d38otakt/P+NhT01D90wXdkdo2jZ/qXiNcQl 16bvVBbPxX8YRXtltRmQO4EnRZ/iR5q0+wHRvR2r2oMda9o48tqXEUAbqdiRIHCKCw BLBSdEUVTYVVTkwAsHumsrck8m4vqa0GoXIG6Lw4= Date: Thu, 06 Apr 2023 21:54:52 +0000 Subject: [PATCH v2 06/11] tools/nolibc: aarch64: use C89 comment syntax MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230328-nolibc-c99-v2-6-c989f2289222@weissschuh.net> References: <20230328-nolibc-c99-v2-0-c989f2289222@weissschuh.net> In-Reply-To: <20230328-nolibc-c99-v2-0-c989f2289222@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1680818091; l=2890; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=au6cL+xeGyBx2JuVA4zq1izj1V8MrbDP7tzalqdO45Y=; b=t6HSMSCHAwNiIiOY7OcGU1mmEiEBHqEReYY/H61cyqGGWnhwXtSJdDQ4CjdbBkKiv4VA5WfgG k+n9qJ57Wl9Cjdn6gdhID3hJikA0A3fo/L1pF4QIHmnDnwOz0E/ryv0 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Most of nolibc is already using C89 comments. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/arch-aarch64.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tools/include/nolibc/arch-aarch64.h b/tools/include/nolibc/arch-aarch64.h index 383baddef701..76ef26520c85 100644 --- a/tools/include/nolibc/arch-aarch64.h +++ b/tools/include/nolibc/arch-aarch64.h @@ -176,24 +176,24 @@ const unsigned long *_auxv __attribute__((weak)); void __attribute__((weak,noreturn,optimize("omit-frame-pointer"))) _start(void) { __asm__ volatile ( - "ldr x0, [sp]\n" // argc (x0) was in the stack - "add x1, sp, 8\n" // argv (x1) = sp - "lsl x2, x0, 3\n" // envp (x2) = 8*argc ... - "add x2, x2, 8\n" // + 8 (skip null) - "add x2, x2, x1\n" // + argv - "adrp x3, environ\n" // x3 = &environ (high bits) - "str x2, [x3, #:lo12:environ]\n" // store envp into environ - "mov x4, x2\n" // search for auxv (follows NULL after last env) + "ldr x0, [sp]\n" /* argc (x0) was in the stack */ + "add x1, sp, 8\n" /* argv (x1) = sp */ + "lsl x2, x0, 3\n" /* envp (x2) = 8*argc ... */ + "add x2, x2, 8\n" /* + 8 (skip null) */ + "add x2, x2, x1\n" /* + argv */ + "adrp x3, environ\n" /* x3 = &environ (high bits) */ + "str x2, [x3, #:lo12:environ]\n" /* store envp into environ */ + "mov x4, x2\n" /* search for auxv (follows NULL after last env) */ "0:\n" - "ldr x5, [x4], 8\n" // x5 = *x4; x4 += 8 - "cbnz x5, 0b\n" // and stop at NULL after last env - "adrp x3, _auxv\n" // x3 = &_auxv (high bits) - "str x4, [x3, #:lo12:_auxv]\n" // store x4 into _auxv - "and sp, x1, -16\n" // sp must be 16-byte aligned in the callee - "bl main\n" // main() returns the status code, we'll exit with it. - "mov x8, 93\n" // NR_exit == 93 + "ldr x5, [x4], 8\n" /* x5 = *x4; x4 += 8 */ + "cbnz x5, 0b\n" /* and stop at NULL after last env */ + "adrp x3, _auxv\n" /* x3 = &_auxv (high bits) */ + "str x4, [x3, #:lo12:_auxv]\n" /* store x4 into _auxv */ + "and sp, x1, -16\n" /* sp must be 16-byte aligned in the callee */ + "bl main\n" /* main() returns the status code, we'll exit with it. */ + "mov x8, 93\n" /* NR_exit == 93 */ "svc #0\n" ); __builtin_unreachable(); } -#endif // _NOLIBC_ARCH_AARCH64_H +#endif /* _NOLIBC_ARCH_AARCH64_H */ -- 2.40.0