~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/x86/include/asm/system.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
#ifdef CONFIG_PARAVIRT
304
304
#include <asm/paravirt.h>
305
305
#else
306
 
#define read_cr0()      (native_read_cr0())
307
 
#define write_cr0(x)    (native_write_cr0(x))
308
 
#define read_cr2()      (native_read_cr2())
309
 
#define write_cr2(x)    (native_write_cr2(x))
310
 
#define read_cr3()      (native_read_cr3())
311
 
#define write_cr3(x)    (native_write_cr3(x))
312
 
#define read_cr4()      (native_read_cr4())
313
 
#define read_cr4_safe() (native_read_cr4_safe())
314
 
#define write_cr4(x)    (native_write_cr4(x))
315
 
#define wbinvd()        (native_wbinvd())
 
306
 
 
307
static inline unsigned long read_cr0(void)
 
308
{
 
309
        return native_read_cr0();
 
310
}
 
311
 
 
312
static inline void write_cr0(unsigned long x)
 
313
{
 
314
        native_write_cr0(x);
 
315
}
 
316
 
 
317
static inline unsigned long read_cr2(void)
 
318
{
 
319
        return native_read_cr2();
 
320
}
 
321
 
 
322
static inline void write_cr2(unsigned long x)
 
323
{
 
324
        native_write_cr2(x);
 
325
}
 
326
 
 
327
static inline unsigned long read_cr3(void)
 
328
{
 
329
        return native_read_cr3();
 
330
}
 
331
 
 
332
static inline void write_cr3(unsigned long x)
 
333
{
 
334
        native_write_cr3(x);
 
335
}
 
336
 
 
337
static inline unsigned long read_cr4(void)
 
338
{
 
339
        return native_read_cr4();
 
340
}
 
341
 
 
342
static inline unsigned long read_cr4_safe(void)
 
343
{
 
344
        return native_read_cr4_safe();
 
345
}
 
346
 
 
347
static inline void write_cr4(unsigned long x)
 
348
{
 
349
        native_write_cr4(x);
 
350
}
 
351
 
 
352
static inline void wbinvd(void)
 
353
{
 
354
        native_wbinvd();
 
355
}
 
356
 
316
357
#ifdef CONFIG_X86_64
317
 
#define read_cr8()      (native_read_cr8())
318
 
#define write_cr8(x)    (native_write_cr8(x))
319
 
#define load_gs_index   native_load_gs_index
 
358
 
 
359
static inline unsigned long read_cr8(void)
 
360
{
 
361
        return native_read_cr8();
 
362
}
 
363
 
 
364
static inline void write_cr8(unsigned long x)
 
365
{
 
366
        native_write_cr8(x);
 
367
}
 
368
 
 
369
static inline void load_gs_index(unsigned selector)
 
370
{
 
371
        native_load_gs_index(selector);
 
372
}
 
373
 
320
374
#endif
321
375
 
322
376
/* Clear the 'TS' bit */
323
 
#define clts()          (native_clts())
 
377
static inline void clts(void)
 
378
{
 
379
        native_clts();
 
380
}
324
381
 
325
382
#endif/* CONFIG_PARAVIRT */
326
383