forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/arch/x86/um/asm/processor_32.h
....@@ -47,14 +47,6 @@
4747 memcpy(&to->tls_array, &from->tls_array, sizeof(from->tls_array));
4848 }
4949
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
-
5850 #define current_sp() ({ void *sp; __asm__("movl %%esp, %0" : "=r" (sp) : ); sp; })
5951 #define current_bp() ({ unsigned long bp; __asm__("movl %%ebp, %0" : "=r" (bp) : ); bp; })
6052