[lkml]   [2007]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 4/8] unify paravirt parts of system.h
Glauber de Oliveira Costa wrote:
> This patch moves the i386 control registers manipulation functions,
> wbinvd, and clts functions to system.h. They are essentially the same
> as in x86_64, except for the cr8 register, which we add.
> +
> +static inline unsigned long native_read_cr8(void)
> +{
> + unsigned long cr8;
> + asm volatile("mov %%cr8,%0" : "=r" (cr8), "=m" (__force_order));
> + return cr8;
> +}
> +

There is no cr8 register on i386. This had better be protected by an

(you're likely not getting an error since it's a static inline, so the
asm is never emitted)

Any sufficiently difficult bug is indistinguishable from a feature.

 \ /
  Last update: 2007-12-04 20:23    [W:0.096 / U:3.144 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site