Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88936
b: refs/heads/master
c: 2cade89
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Ingo Molnar committed Apr 17, 2008
1 parent 2e8ec4e commit 79a6895
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83ecfdd0a0a065e55172889dc660c5db3c14633a
refs/heads/master: 2cade899df7d9cc9e977a24898b0bd5a6f4a8dfd
12 changes: 6 additions & 6 deletions trunk/include/asm-x86/current_64.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
#ifndef _X86_64_CURRENT_H
#define _X86_64_CURRENT_H

#if !defined(__ASSEMBLY__)
#if !defined(__ASSEMBLY__)
struct task_struct;

#include <asm/pda.h>

static inline struct task_struct *get_current(void)
{
struct task_struct *t = read_pda(pcurrent);
static inline struct task_struct *get_current(void)
{
struct task_struct *t = read_pda(pcurrent);
return t;
}
}

#define current get_current()

#else

#ifndef ASM_OFFSET_H
#include <asm/asm-offsets.h>
#include <asm/asm-offsets.h>
#endif

#define GET_CURRENT(reg) movq %gs:(pda_pcurrent),reg
Expand Down

0 comments on commit 79a6895

Please sign in to comment.