From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF3111B86E3; Fri, 30 Aug 2024 16:14:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725034495; cv=none; b=mcgb+k7bpG49Fu0LiLeWSd43nv9iYlBV+bMqMnqXhLT2bQAzLU+X39Jlficc/gjUeXDd/CBKcHzz6bVK6VPFQ7kp1I/Beyw77wn/YSwQmtUwpxY7gRpaUYU8wWtJZjY+xmrZg1BJ5Cr8dgEqEOAURNSoHD1b64Ghv6UfmqIqQRI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725034495; c=relaxed/simple; bh=Sq577XF9X9W/Wv4eIA97DY3A+nUrzqzWnVO86TTyQ58=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rqWwRe0+GN33tYP+foTEO4tr2Jb5QnTKcRmIcDK1NwYQAqvl8PpMN1qx23aFiuIA1/f5fVC7qa1vtWb94KHBrA7qUU7fCEPmcAF7Qsk1j7dI4RSy4C7iV1EcpZ+pWdG8ArT6WRbsV0hHSZv12gvPI7W1XRN+NKr6jWM+D7auPro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b=X4B3Z3+R; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="X4B3Z3+R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 933EBC4CEC2; Fri, 30 Aug 2024 16:14:52 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="X4B3Z3+R" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1725034490; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hP39KjvEhHFzK05596i191mBdhVDUqtp/Tqc+PvtOIk=; b=X4B3Z3+RRpb6hKFMi1l1zo0Djitaj3Er0l8oTk/JJVDXNAhN1AX8yFBysIBe+ckynP2qVO nyIQFAJq9DymFp/Kl5+S0iFSvp3phz7shrdSoqpPTsxO0USvCUxu6X0wOHej+YBpOuYBLG er0UTBm+MFCED3Ceb8+SRsiPuJfgJrg= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 7100d0c8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 30 Aug 2024 16:14:50 +0000 (UTC) Date: Fri, 30 Aug 2024 18:14:45 +0200 From: "Jason A. Donenfeld" To: Christophe Leroy Cc: Andrew Morton , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Michael Ellerman , Nicholas Piggin , Naveen N Rao , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Shuah Khan , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kselftest@vger.kernel.org, llvm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, Adhemerval Zanella , Xi Ruoyao Subject: Re: [PATCH v3 4/5] powerpc/vdso: Wire up getrandom() vDSO implementation on PPC32 Message-ID: References: Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Fri, Aug 30, 2024 at 05:57:08PM +0200, Christophe Leroy wrote: > + * r5: 8-byte counter input/output (saved on stack) > + * > + * r14-r15: counter > + */ > +SYM_FUNC_START(__arch_chacha20_blocks_nostack) > + stwu r1, -96(r1) > + stw r5, 20(r1) > + stmw r14, 24(r1) > + li r31, 4 > + LWZX_LE r14, 0, r5 > + LWZX_LE r15, r31, r5 Why swap endian on the counter?