Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 288EBC61DA4 for ; Fri, 24 Feb 2023 00:47:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DF7C2857FB; Fri, 24 Feb 2023 01:47:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=timesys.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=timesys-com.20210112.gappssmtp.com header.i=@timesys-com.20210112.gappssmtp.com header.b="lwyl1Xcq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CAB52858FB; Fri, 24 Feb 2023 01:47:52 +0100 (CET) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6DC6882A55 for ; Fri, 24 Feb 2023 01:47:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=timesys.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=angelo.dureghello@timesys.com Received: by mail-ed1-x52a.google.com with SMTP id da10so50118190edb.3 for ; Thu, 23 Feb 2023 16:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timesys-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SDwn7aWLKyx5WAf4w46ZvZ2ldQdQXaGyVCQIFJCkT2E=; b=lwyl1XcqUmt+q+RFaYQVXzJ4qAjIwPCn7NTFd8iG7/CGMtiUiMe9IVO6JBToVZuXa+ m146JHgy+eK4EcO7FUdptcppsGLG2Cf9lWkw+abzw1tM/kQpZqzMd2MbnjmUhfUBE3J4 mmd+fHqcu5+FGYfvv/n/w1MAGWNpFHtOZ5aLnAtFSsk6n+Pv4wYcVn5G+2Y+mV8Tn6P8 Y09LEt1NRj4k112jHxT9VVJgr3HbIaaIxjEtkhYfklHKsBbwORf2PMZHZwOmDyvJ9oWd XQSiANWdBQ9xVn8OxNyowY8UlE2zrA9tIOLy6V8O0t4RHwj0zy/cja1HphcU2UWfJhGO Qvkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SDwn7aWLKyx5WAf4w46ZvZ2ldQdQXaGyVCQIFJCkT2E=; b=O6mYdd5lYFFi3Dz+PW1bMwT3hT+iFLYQPrzHHwma0vNHMxrX7w5AGE39AAQYmtYpEf pEqT2V43Oh9UrZwz87MrS+j0tvo5ZwrdIxt5HMPSirrYv7dmyb7nUgdAwt8+Kvy/DG3t nViBWnQsBR/qZyTZPbZAOjG6y8RhEgFEhabRMVZPjRje3K/Z/m0+eC5E9m7dx/qALn2B N4TTPlmG76d+hRNuOBR9rmipCr3qdrIV/FQr/3xedla2JvEMJYEk6AvrEiYPxoW/bwOM trHx6wGEI4vsQOGl1+RnokAsNkgBAObt4w20rAFpZzvV8pGlylHgIu+lI4R5piFTB2fI abXw== X-Gm-Message-State: AO0yUKXzqmtKKICldmm6Xpx/9dxSMWBAigDsPq6t/C8/spdeYMsIxYK/ tCWJYwi3MqzQFrSbxzwD6fnnEg== X-Google-Smtp-Source: AK7set+8zDmm2dc2zZ4ZwQvL7NjaH12Ye8YRR+9I889ttReNotKeyviyH1qyGaxEPvkcCfzC2Q+gDQ== X-Received: by 2002:a17:906:5651:b0:884:fd73:8053 with SMTP id v17-20020a170906565100b00884fd738053mr21062923ejr.9.1677199670010; Thu, 23 Feb 2023 16:47:50 -0800 (PST) Received: from localhost.localdomain (host-95-248-219-54.retail.telecomitalia.it. [95.248.219.54]) by smtp.gmail.com with ESMTPSA id b19-20020a170906491300b008e267d7ec18sm3409150ejq.50.2023.02.23.16.47.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 16:47:49 -0800 (PST) From: Angelo Dureghello To: trini@konsulko.com Cc: u-boot@lists.denx.de, Angelo Durgehello , Angelo Durgehello Subject: [PATCH] m68k: use longword-based jumps Date: Fri, 24 Feb 2023 01:47:34 +0100 Message-Id: <20230224004734.662012-1-angelo.dureghello@timesys.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: Angelo Durgehello Increasing of binary size requires longword-based jumps. Signed-off-by: Angelo Durgehello --- arch/m68k/cpu/mcf530x/start.S | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/m68k/cpu/mcf530x/start.S b/arch/m68k/cpu/mcf530x/start.S index dbe2b54e41..cef8d79aad 100644 --- a/arch/m68k/cpu/mcf530x/start.S +++ b/arch/m68k/cpu/mcf530x/start.S @@ -132,7 +132,8 @@ _start: * then (and always) gd struct space will be reserved */ move.l %sp, -(%sp) - bsr board_init_f_alloc_reserve + move.l #board_init_f_alloc_reserve, %a1 + jsr (%a1) /* update stack and frame-pointers */ move.l %d0, %sp @@ -140,14 +141,17 @@ _start: /* initialize reserved area */ move.l %d0, -(%sp) - bsr board_init_f_init_reserve + move.l #board_init_f_init_reserve, %a1 + jsr (%a1) /* run low-level CPU init code (from flash) */ - bsr cpu_init_f + move.l #cpu_init_f, %a1 + jsr (%a1) /* run low-level board init code (from flash) */ clr.l %sp@- - bsr board_init_f + move.l #board_init_f, %a1 + jsr (%a1) /* board_init_f() does not return */ @@ -239,7 +243,8 @@ _fault: _exc_handler: SAVE_ALL movel %sp,%sp@- - bsr exc_handler + move.l #exc_handler, %a1 + jsr (%a1) addql #4,%sp RESTORE_ALL @@ -247,7 +252,8 @@ _exc_handler: _int_handler: SAVE_ALL movel %sp,%sp@- - bsr int_handler + move.l #int_handler, %a1 + jsr (%a1) addql #4,%sp RESTORE_ALL -- 2.39.1