| .. | .. |
|---|
| 47 | 47 | memcpy(&to->tls_array, &from->tls_array, sizeof(from->tls_array)); |
|---|
| 48 | 48 | } |
|---|
| 49 | 49 | |
|---|
| 50 | | -/* |
|---|
| 51 | | - * Default implementation of macro that returns current |
|---|
| 52 | | - * instruction pointer ("program counter"). Stolen |
|---|
| 53 | | - * from asm-i386/processor.h |
|---|
| 54 | | - */ |
|---|
| 55 | | -#define current_text_addr() \ |
|---|
| 56 | | - ({ void *pc; __asm__("movl $1f,%0\n1:":"=g" (pc)); pc; }) |
|---|
| 57 | | - |
|---|
| 58 | 50 | #define current_sp() ({ void *sp; __asm__("movl %%esp, %0" : "=r" (sp) : ); sp; }) |
|---|
| 59 | 51 | #define current_bp() ({ unsigned long bp; __asm__("movl %%ebp, %0" : "=r" (bp) : ); bp; }) |
|---|
| 60 | 52 | |
|---|