Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1394835

[PATCH 2/3] x86-32: Remove GET_THREAD_INFO from entry code

From Brian Gerst <brgerst@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 2/3] x86-32: Remove GET_THREAD_INFO from entry code
Date 2016-05-05 04:50 +0200
Message-ID <rvhwt-7Y4-13@gated-at.bofh.it> (permalink)
References <rvhwt-7Y4-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The entry code used to cache the thread_info pointer in the EBP register, but
all the code that used it has been moved to C.  Remove the unused code to
get the pointer.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
---
 arch/x86/entry/entry_32.S | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/x86/entry/entry_32.S b/arch/x86/entry/entry_32.S
index c84d99b..983e5d3 100644
--- a/arch/x86/entry/entry_32.S
+++ b/arch/x86/entry/entry_32.S
@@ -207,7 +207,6 @@
 ENTRY(ret_from_fork)
 	pushl	%eax
 	call	schedule_tail
-	GET_THREAD_INFO(%ebp)
 	popl	%eax
 
 	/* When we fork, we trace the syscall return in the child, too. */
@@ -219,7 +218,6 @@ END(ret_from_fork)
 ENTRY(ret_from_kernel_thread)
 	pushl	%eax
 	call	schedule_tail
-	GET_THREAD_INFO(%ebp)
 	popl	%eax
 	movl	PT_EBP(%esp), %eax
 	call	*PT_EBX(%esp)
@@ -247,7 +245,6 @@ ENDPROC(ret_from_kernel_thread)
 ret_from_exception:
 	preempt_stop(CLBR_ANY)
 ret_from_intr:
-	GET_THREAD_INFO(%ebp)
 #ifdef CONFIG_VM86
 	movl	PT_EFLAGS(%esp), %eax		# mix EFLAGS and CS
 	movb	PT_CS(%esp), %al
-- 
2.5.5

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] Misc x86 cleanups Brian Gerst <brgerst@gmail.com> - 2016-05-05 04:50 +0200
  [PATCH 1/3] x86: Don't save/restore EFLAGS on task switch Brian Gerst <brgerst@gmail.com> - 2016-05-05 04:50 +0200
    Re: [PATCH 1/3] x86: Don't save/restore EFLAGS on task switch Andy Lutomirski <luto@amacapital.net> - 2016-05-05 05:30 +0200
    [tip:x86/asm] x86/entry, sched/x86: Don't save/restore EFLAGS on  task switch tip-bot for Brian Gerst <tipbot@zytor.com> - 2016-05-05 11:40 +0200
  [PATCH 2/3] x86-32: Remove GET_THREAD_INFO from entry code Brian Gerst <brgerst@gmail.com> - 2016-05-05 04:50 +0200
    Re: [PATCH 2/3] x86-32: Remove GET_THREAD_INFO from entry code Andy Lutomirski <luto@amacapital.net> - 2016-05-05 05:30 +0200
    [tip:x86/asm] x86/entry/32: Remove GET_THREAD_INFO() from entry  code tip-bot for Brian Gerst <tipbot@zytor.com> - 2016-05-05 11:40 +0200
  [PATCH 3/3] x86-32: Remove asmlinkage_protect Brian Gerst <brgerst@gmail.com> - 2016-05-05 04:50 +0200
    Re: [PATCH 3/3] x86-32: Remove asmlinkage_protect Andy Lutomirski <luto@amacapital.net> - 2016-05-05 05:30 +0200
    [tip:x86/asm] x86/entry/32: Remove asmlinkage_protect() tip-bot for Brian Gerst <tipbot@zytor.com> - 2016-05-05 11:40 +0200

csiph-web