Re: [PATCH] Remove duplicated code for reading control registers

2007-03-13 Thread Glauber de Oliveira Costa
On Tue, Mar 13, 2007 at 05:33:09AM -0700, Randy.Dunlap wrote: > On Tue, 13 Mar 2007, Glauber de Oliveira Costa wrote: > > > Tiny cleanup: > > > > In x86_64, the same functions for reading cr3 and writing cr{3,4} are > > defined in tlbflush.h and system.h, whith just a name change. > > The only dif

[PATCH] Remove duplicated code for reading control registers

2007-03-13 Thread Glauber de Oliveira Costa
Tiny cleanup: In x86_64, the same functions for reading cr3 and writing cr{3,4} are defined in tlbflush.h and system.h, whith just a name change. The only difference is the clobbering of memory, which seems a safe, and even needed change for the write_cr4. This patch removes the duplicate. write_c