login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
21
Re: [PATCH] x86: relocate_kernel - use predefined PAGE_SIZE instead of own alias
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Cyrill Gorcunov <gorcunov@...>
To: H. Peter Anvin <hpa@...>
Cc: Ingo Molnar <mingo@...>, LKML <linux-kernel@...>
Subject:
Re: [PATCH] x86: relocate_kernel - use predefined PAGE_SIZE instead of own alias
Date: Friday, March 21, 2008 - 4:52 pm
[H. Peter Anvin - Fri, Mar 21, 2008 at 01:50:33PM -0700]
quoted text
> Cyrill Gorcunov wrote: >> [H. Peter Anvin - Fri, Mar 21, 2008 at 01:18:13PM -0700] >>> Cyrill Gorcunov wrote: >>>> This patch does clean up relocate_kernel_(32|64).S a bit by getting rid >>>> of local PAGE_ALIGNED macro. We should use well-known PAGE_SIZE instead >>>> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> >>> Looks good! >>> >>> -hpa >>> >> Thanks Peter for review, btw we have in relocate_kernel_32.S >> 188: movl %cr4, %eax >> 189: andl __PLACEHOLDER__0_, %eax >> 190: movl %eax, %cr4 >> but maybe would be better just replace it with >> xorl %eax, %eax >> movl %eax, %cr4 >> or there is some nonobvious reason not to do so? > > The only case I can think of would be if the code expects to patch the > zero, but even then it'd be cantankerous, because gas will optimize that > zero down to a single byte. > > So, no :) > > -hpa > >
ah! thanks ;) - Cyrill - --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] x86: relocate_kernel - use predefined PAGE_SIZE inst...
, Cyrill Gorcunov
, (Fri Mar 21, 4:12 pm)
Re: [PATCH] x86: relocate_kernel - use predefined PAGE_SIZE ...
, Ingo Molnar
, (Fri Mar 21, 4:53 pm)
Re: [PATCH] x86: relocate_kernel - use predefined PAGE_SIZE ...
, H. Peter Anvin
, (Fri Mar 21, 4:18 pm)
Re: [PATCH] x86: relocate_kernel - use predefined PAGE_SIZE ...
, Cyrill Gorcunov
, (Fri Mar 21, 4:41 pm)
Re: [PATCH] x86: relocate_kernel - use predefined PAGE_SIZE ...
, H. Peter Anvin
, (Fri Mar 21, 4:50 pm)
Re: [PATCH] x86: relocate_kernel - use predefined PAGE_SIZE ...
, Cyrill Gorcunov
, (Fri Mar 21, 5:02 pm)
Re: [PATCH] x86: relocate_kernel - use predefined PAGE_SIZE ...
, Cyrill Gorcunov
, (Fri Mar 21, 4:52 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Greg KH
[GIT PATCH] driver core patches against 2.6.24
S.Çağlar
Rescheduling interrupts
holzheu
[RFC/PATCH] Documentation of kernel messages
git
:
Sander
'struct task_struct' has no member named 'mems_allowed' (was: Re: 2.6.20-rc4-mm1)
openbsd-misc
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Herbert Xu
Re: xfrm_state locking regression...
Corey Minyard
[PATCH 3/3] Convert the UDP hash lock to RCU
Colocation donated by:
Who's online
There are currently
0 users
and
623 guests
online.
Syndicate