Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp605830ybl; Tue, 7 Jan 2020 11:46:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwWkPX7lDsDzFUatmbiHGV9XW2CRBgAIyGlpZb1o8BhDKHeLQcTcHKNdUoB3zsG6hHL6Ok8 X-Received: by 2002:a9d:7410:: with SMTP id n16mr1457336otk.23.1578426370308; Tue, 07 Jan 2020 11:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578426370; cv=none; d=google.com; s=arc-20160816; b=K3b5uxLgyJ0/AVq2XVp9fJUG+0ukH2zdBTyVg5ObOnktPwUynYv/Q8lBH7b57r+tyZ iJHjBYl3HRirWZaHyCRMN1/W8rWzOi6iaHiSryF/Ger8iZvmPoRmUwO9s4GwPYjYEgH3 goIhluNsWrUQZlZ7uDuzIj5XYzPlCEzc/BIyuIX0HjFFOO64QYtYWQbN1CdRr2CHBkeC CgGBzvZjaA5VV8jAmDKSnmz/sRrrXlopggzZcgyIxZ6tcA2ZoDJzO4rkdJWJKUSyy7YP 97HkvQdcvjP8+Wsj5wn+mvDsJBQT4C0o/ZEPDTxcrJr/wJeijR7Fl0yTgZg2UFtSfiYP KukA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=S9Z0mVFd2p1ZduER7Gd3T2LbO8+fNcpa0hKnMEswfbQ=; b=aVCb12I/9OyBr6rA1qTlF54Vcoj+8OKlNqPi5zq9s0zI2rrbE5x+eCl+6q8gSCvyww YwA46g+niw2qwMc6LxH3OAglzQDvz/hb63OEhIdAsGKGISIh4MzA9rJ7F7E0wBE0LLjm fnGaZX02wnY5ORf2iBY8Q4+okPvAo+4Ew4lMCUH9m/S/8ziIVuDxjtZ+OudM1qOilMcf YcdIysbqoYIi9P0DcEaeiJYP8cBFScB4hmeKBDxRXoPLEVPUsMm+ftSUedVY3AdAU2lu K+FU7gmh1XInXgiZoeoYbP0ilxBkJxinX0c7vel4ksNMT4F7su7prZOFji6rF5lfxDdU MiKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4si550004oib.70.2020.01.07.11.45.57; Tue, 07 Jan 2020 11:46:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728634AbgAGTok (ORCPT + 99 others); Tue, 7 Jan 2020 14:44:40 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:35323 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728358AbgAGToj (ORCPT ); Tue, 7 Jan 2020 14:44:39 -0500 Received: by mail-qt1-f194.google.com with SMTP id e12so783859qto.2 for ; Tue, 07 Jan 2020 11:44:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=S9Z0mVFd2p1ZduER7Gd3T2LbO8+fNcpa0hKnMEswfbQ=; b=lSJgiO8089UpAtwUJI7TvS0d/uYTm6JLSGVRP6PE2Dn5xwVb1G+jKQtkRJjJJALCqk 1L/xlHA0rqUvSQOLOfiBWlyc0cCqFTcu6WWyyMKKhNi+VE8zYGnoVaSNp8MOssbrvATa vM4BNznD5Ooo3AkkRkdnueP8IuTM3jjO6519yNFM8MQgQCZSPc1rFNTUXvYKP7ijaSeJ y3NyipPOeyoxEQCGaYWmnR2jXr29L9KbZE4PQ4m6ftaF1H9NT1ISx4CmgYGcSjlla7mT uERal/5DGYECRrFbvqp6E+//BFf2WPXMT7NTjhvx0ZQrbnweKHiPI/N9hqZUv0w3FhBI 89Og== X-Gm-Message-State: APjAAAVTBuvLbZvkwao+PKAGrQzUy20Kj/SB0lx2/EGQpzwrXwQtchcW oAZEE5wwLUKOik6t8XlMFAs= X-Received: by 2002:ac8:86b:: with SMTP id x40mr542439qth.366.1578426278502; Tue, 07 Jan 2020 11:44:38 -0800 (PST) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id s20sm280137qkg.131.2020.01.07.11.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 11:44:37 -0800 (PST) From: Arvind Sankar To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Cc: x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] x86/boot/compressed/32: Simplify calculation of output address Date: Tue, 7 Jan 2020 14:44:34 -0500 Message-Id: <20200107194436.2166846-1-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Condense the calculation of decompressed kernel start a little. Signed-off-by: Arvind Sankar --- arch/x86/boot/compressed/head_32.S | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/x86/boot/compressed/head_32.S b/arch/x86/boot/compressed/head_32.S index f2dfd6d083ef..1cc55c79d1d0 100644 --- a/arch/x86/boot/compressed/head_32.S +++ b/arch/x86/boot/compressed/head_32.S @@ -240,11 +240,9 @@ SYM_FUNC_START_LOCAL_NOALIGN(.Lrelocated) /* push arguments for extract_kernel: */ pushl $z_output_len /* decompressed length, end of relocs */ - movl BP_init_size(%esi), %eax - subl $_end, %eax - movl %ebx, %ebp - subl %eax, %ebp - pushl %ebp /* output address */ + leal _end(%ebx), %eax + subl BP_init_size(%esi), %eax + pushl %eax /* output address */ pushl $z_input_len /* input_len */ leal input_data(%ebx), %eax -- 2.24.1