Changeset View
Changeset View
Standalone View
Standalone View
head/sys/i386/include/asm.h
Show All 32 Lines | |||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _MACHINE_ASM_H_ | #ifndef _MACHINE_ASM_H_ | ||||
#define _MACHINE_ASM_H_ | #define _MACHINE_ASM_H_ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
#ifdef PIC | #ifdef __PIC__ | ||||
#define PIC_PROLOGUE \ | #define PIC_PROLOGUE \ | ||||
pushl %ebx; \ | pushl %ebx; \ | ||||
call 1f; \ | call 1f; \ | ||||
1: \ | 1: \ | ||||
popl %ebx; \ | popl %ebx; \ | ||||
addl $_GLOBAL_OFFSET_TABLE_+[.-1b],%ebx | addl $_GLOBAL_OFFSET_TABLE_+[.-1b],%ebx | ||||
#define PIC_EPILOGUE \ | #define PIC_EPILOGUE \ | ||||
popl %ebx | popl %ebx | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |