All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Weber <hwe.kernel@gmail.com>
To: torvalds@evo.osdl.org
Cc: linux-kernel@vger.kernel.org, Hans Weber <hwe.kernel@gmail.com>
Subject: [PATCH] only call the c function set_bios_mode if the value CONFIG_X86_64 is set.
Date: Sat, 19 Feb 2022 21:39:50 +0100	[thread overview]
Message-ID: <20220219203950.106655-1-hwe.kernel@gmail.com> (raw)

Signed-off-by: Hans Weber <hwe.kernel@gmail.com>
---
 arch/x86/boot/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/boot/main.c b/arch/x86/boot/main.c
index e3add857c2c9..e4df8ff1e228 100644
--- a/arch/x86/boot/main.c
+++ b/arch/x86/boot/main.c
@@ -102,14 +102,12 @@ static void query_ist(void)
  */
 static void set_bios_mode(void)
 {
-#ifdef CONFIG_X86_64
 	struct biosregs ireg;
 
 	initregs(&ireg);
 	ireg.ax = 0xec00;
 	ireg.bx = 2;
 	intcall(0x15, &ireg, NULL);
-#endif
 }
 
 static void init_heap(void)
@@ -152,7 +150,9 @@ void main(void)
 	}
 
 	/* Tell the BIOS what CPU mode we intend to run in. */
+#ifdef CONFIG_X86_64
 	set_bios_mode();
+#endif
 
 	/* Detect memory layout */
 	detect_memory();
-- 
2.30.2


             reply	other threads:[~2022-02-19 20:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-19 20:39 Hans Weber [this message]
2022-02-19 20:44 ` [PATCH] only call the c function set_bios_mode if the value CONFIG_X86_64 is set David Laight
  -- strict thread matches above, loose matches on Subject: below --
2022-02-19 20:42 Hans Weber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220219203950.106655-1-hwe.kernel@gmail.com \
    --to=hwe.kernel@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@evo.osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.