1/*
2 * Copyright (c) 2007, 2008, 2010, 2011, ETH Zurich.
3 * All rights reserved.
4 *
5 * This file is distributed under the terms in the attached LICENSE file.
6 * If you do not find this file, copies can be found by writing to:
7 * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
8 */
9
10// XXX: for some reason, on GCC 4.4.4-14ubuntu5, this is preprocessor-defined
11// to 1, and undergoes bogus expansion confusing the assembler... -AB
12#ifdef __i686
13#undef __i686
14#endif
15
16// Put PIC-register getter functions here, so they're in the kernel
17#ifdef __PIC__
18	.section .gnu.linkonce.t.__i686.get_pc_thunk.cx,"ax",@progbits
19.globl __i686.get_pc_thunk.cx
20	.hidden  __i686.get_pc_thunk.cx
21	.type    __i686.get_pc_thunk.cx,@function
22__i686.get_pc_thunk.cx:
23	movl (%esp), %ecx
24	ret
25
26	.section .gnu.linkonce.t.__i686.get_pc_thunk.dx,"ax",@progbits
27.globl __i686.get_pc_thunk.dx
28	.hidden  __i686.get_pc_thunk.dx
29	.type    __i686.get_pc_thunk.dx,@function
30__i686.get_pc_thunk.dx:
31	movl (%esp), %edx
32	ret
33
34	.section .gnu.linkonce.t.__i686.get_pc_thunk.di,"ax",@progbits
35.globl __i686.get_pc_thunk.di
36	.hidden  __i686.get_pc_thunk.di
37	.type    __i686.get_pc_thunk.di,@function
38__i686.get_pc_thunk.di:
39	movl (%esp), %edi
40	ret
41#endif
42