Re: [PATCH v2] kbuild: simpler generation of assembly constants
From: kbuild test robot
Date: Mon Jul 11 2016 - 06:58:47 EST
Hi,
[auto build test ERROR on ia64/next]
[also build test ERROR on v4.7-rc7 next-20160711]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Alexey-Dobriyan/kbuild-simpler-generation-of-assembly-constants/20160708-054403
base: https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git next
config: um-i386_defconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=um SUBARCH=i386
All error/warnings (new ones prefixed by >>):
In file included from arch/um/kernel/skas/clone.c:11:0:
arch/x86/um/shared/sysdep/stub_32.h: In function 'remap_stack':
arch/um/include/shared/as-layout.h:33:56: error: 'UM_KERN_PAGE_SIZE' undeclared (first use in this function)
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^
arch/um/include/shared/as-layout.h:27:27: note: in definition of macro '__UML_AC'
#define __UML_AC(X, Y) (X(Y))
^
arch/um/include/shared/as-layout.h:33:19: note: in expansion of macro '_UML_AC'
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^~~~~~~
>> arch/x86/um/shared/sysdep/stub_32.h:84:35: note: in expansion of macro 'STUB_DATA'
: : "g" (STUB_MMAP_NR), "b" (STUB_DATA),
^~~~~~~~~
arch/um/include/shared/as-layout.h:33:56: note: each undeclared identifier is reported only once for each function it appears in
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^
arch/um/include/shared/as-layout.h:27:27: note: in definition of macro '__UML_AC'
#define __UML_AC(X, Y) (X(Y))
^
arch/um/include/shared/as-layout.h:33:19: note: in expansion of macro '_UML_AC'
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^~~~~~~
>> arch/x86/um/shared/sysdep/stub_32.h:84:35: note: in expansion of macro 'STUB_DATA'
: : "g" (STUB_MMAP_NR), "b" (STUB_DATA),
^~~~~~~~~
arch/um/kernel/skas/clone.c: In function 'stub_clone_handler':
arch/um/include/shared/as-layout.h:33:56: error: 'UM_KERN_PAGE_SIZE' undeclared (first use in this function)
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^
arch/um/include/shared/as-layout.h:27:27: note: in definition of macro '__UML_AC'
#define __UML_AC(X, Y) (X(Y))
^
arch/um/include/shared/as-layout.h:33:19: note: in expansion of macro '_UML_AC'
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^~~~~~~
arch/um/kernel/skas/clone.c:27:48: note: in expansion of macro 'STUB_DATA'
struct stub_data *data = (struct stub_data *) STUB_DATA;
^~~~~~~~~
--
In file included from arch/um/os-Linux/skas/mem.c:12:0:
arch/x86/um/shared/sysdep/stub_32.h: In function 'remap_stack':
arch/um/include/shared/as-layout.h:33:56: error: 'UM_KERN_PAGE_SIZE' undeclared (first use in this function)
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^
arch/um/include/shared/as-layout.h:27:27: note: in definition of macro '__UML_AC'
#define __UML_AC(X, Y) (X(Y))
^
arch/um/include/shared/as-layout.h:33:19: note: in expansion of macro '_UML_AC'
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^~~~~~~
>> arch/x86/um/shared/sysdep/stub_32.h:84:35: note: in expansion of macro 'STUB_DATA'
: : "g" (STUB_MMAP_NR), "b" (STUB_DATA),
^~~~~~~~~
arch/um/include/shared/as-layout.h:33:56: note: each undeclared identifier is reported only once for each function it appears in
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^
arch/um/include/shared/as-layout.h:27:27: note: in definition of macro '__UML_AC'
#define __UML_AC(X, Y) (X(Y))
^
arch/um/include/shared/as-layout.h:33:19: note: in expansion of macro '_UML_AC'
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^~~~~~~
>> arch/x86/um/shared/sysdep/stub_32.h:84:35: note: in expansion of macro 'STUB_DATA'
: : "g" (STUB_MMAP_NR), "b" (STUB_DATA),
^~~~~~~~~
arch/um/os-Linux/skas/mem.c: In function 'do_syscall_stub':
arch/um/include/shared/as-layout.h:33:56: error: 'UM_KERN_PAGE_SIZE' undeclared (first use in this function)
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^
arch/um/include/shared/as-layout.h:27:27: note: in definition of macro '__UML_AC'
#define __UML_AC(X, Y) (X(Y))
^
arch/um/include/shared/as-layout.h:33:19: note: in expansion of macro '_UML_AC'
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^~~~~~~
arch/um/os-Linux/skas/mem.c:81:53: note: in expansion of macro 'STUB_DATA'
data = (unsigned long *)(mm_idp->stack + offset - STUB_DATA);
^~~~~~~~~
arch/um/os-Linux/skas/mem.c: In function 'run_syscall_stub':
arch/um/os-Linux/skas/mem.c:129:44: error: 'UM_KERN_PAGE_MASK' undeclared (first use in this function)
if (!done && ((((unsigned long) stack) & ~UM_KERN_PAGE_MASK) <
^~~~~~~~~~~~~~~~~
arch/um/os-Linux/skas/mem.c:130:8: error: 'UM_KERN_PAGE_SIZE' undeclared (first use in this function)
UM_KERN_PAGE_SIZE - 10 * sizeof(long))) {
^~~~~~~~~~~~~~~~~
arch/um/os-Linux/skas/mem.c: In function 'syscall_stub_data':
arch/um/os-Linux/skas/mem.c:149:34: error: 'UM_KERN_PAGE_MASK' undeclared (first use in this function)
if ((((unsigned long) *addr) & ~UM_KERN_PAGE_MASK) >=
^~~~~~~~~~~~~~~~~
arch/um/os-Linux/skas/mem.c:150:5: error: 'UM_KERN_PAGE_SIZE' undeclared (first use in this function)
UM_KERN_PAGE_SIZE - (10 + data_count) * sizeof(long)) {
^~~~~~~~~~~~~~~~~
In file included from arch/x86/um/shared/sysdep/stub.h:8:0,
from arch/um/os-Linux/skas/mem.c:19:
arch/um/os-Linux/skas/mem.c: In function 'map':
>> arch/x86/um/shared/sysdep/stub_32.h:13:32: error: 'UM_KERN_PAGE_SHIFT' undeclared (first use in this function)
#define MMAP_OFFSET(o) ((o) >> UM_KERN_PAGE_SHIFT)
^
>> arch/um/os-Linux/skas/mem.c:176:6: note: in expansion of macro 'MMAP_OFFSET'
MMAP_OFFSET(offset) };
^~~~~~~~~~~
--
In file included from arch/um/os-Linux/skas/process.c:15:0:
arch/x86/um/shared/sysdep/stub_32.h: In function 'remap_stack':
arch/um/include/shared/as-layout.h:33:56: error: 'UM_KERN_PAGE_SIZE' undeclared (first use in this function)
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^
arch/um/include/shared/as-layout.h:27:27: note: in definition of macro '__UML_AC'
#define __UML_AC(X, Y) (X(Y))
^
arch/um/include/shared/as-layout.h:33:19: note: in expansion of macro '_UML_AC'
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^~~~~~~
>> arch/x86/um/shared/sysdep/stub_32.h:84:35: note: in expansion of macro 'STUB_DATA'
: : "g" (STUB_MMAP_NR), "b" (STUB_DATA),
^~~~~~~~~
arch/um/include/shared/as-layout.h:33:56: note: each undeclared identifier is reported only once for each function it appears in
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^
arch/um/include/shared/as-layout.h:27:27: note: in definition of macro '__UML_AC'
#define __UML_AC(X, Y) (X(Y))
^
arch/um/include/shared/as-layout.h:33:19: note: in expansion of macro '_UML_AC'
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^~~~~~~
>> arch/x86/um/shared/sysdep/stub_32.h:84:35: note: in expansion of macro 'STUB_DATA'
: : "g" (STUB_MMAP_NR), "b" (STUB_DATA),
^~~~~~~~~
arch/um/os-Linux/skas/process.c: In function 'handle_trap':
arch/um/include/shared/as-layout.h:33:56: error: 'UM_KERN_PAGE_SIZE' undeclared (first use in this function)
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^
arch/um/include/shared/as-layout.h:27:27: note: in definition of macro '__UML_AC'
#define __UML_AC(X, Y) (X(Y))
^
arch/um/include/shared/as-layout.h:34:18: note: in expansion of macro '_UML_AC'
#define STUB_END _UML_AC((unsigned long), STUB_DATA + UM_KERN_PAGE_SIZE)
^~~~~~~
arch/um/include/shared/as-layout.h:28:23: note: in expansion of macro '__UML_AC'
#define _UML_AC(X, Y) __UML_AC(X, Y)
^~~~~~~~
arch/um/include/shared/as-layout.h:33:19: note: in expansion of macro '_UML_AC'
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^~~~~~~
arch/um/include/shared/as-layout.h:34:43: note: in expansion of macro 'STUB_DATA'
#define STUB_END _UML_AC((unsigned long), STUB_DATA + UM_KERN_PAGE_SIZE)
^~~~~~~~~
arch/um/os-Linux/skas/process.c:138:54: note: in expansion of macro 'STUB_END'
if ((UPT_IP(regs) >= STUB_START) && (UPT_IP(regs) < STUB_END))
^~~~~~~~
arch/um/os-Linux/skas/process.c: In function 'userspace_tramp':
arch/um/os-Linux/skas/process.c:193:36: error: 'UM_KERN_PAGE_SIZE' undeclared (first use in this function)
addr = mmap64((void *) STUB_CODE, UM_KERN_PAGE_SIZE,
^~~~~~~~~~~~~~~~~
arch/um/os-Linux/skas/process.c: In function 'start_userspace':
arch/um/os-Linux/skas/process.c:247:21: error: 'UM_KERN_PAGE_SIZE' undeclared (first use in this function)
stack = mmap(NULL, UM_KERN_PAGE_SIZE,
^~~~~~~~~~~~~~~~~
In file included from arch/um/os-Linux/skas/process.c:15:0:
arch/um/os-Linux/skas/process.c: In function 'init_thread_regs':
arch/um/include/shared/as-layout.h:33:56: error: 'UM_KERN_PAGE_SIZE' undeclared (first use in this function)
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^
arch/um/include/shared/as-layout.h:27:27: note: in definition of macro '__UML_AC'
#define __UML_AC(X, Y) (X(Y))
^
arch/um/include/shared/as-layout.h:33:19: note: in expansion of macro '_UML_AC'
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^~~~~~~
arch/um/os-Linux/skas/process.c:425:31: note: in expansion of macro 'STUB_DATA'
thread_regs[REGS_SP_INDEX] = STUB_DATA + UM_KERN_PAGE_SIZE -
^~~~~~~~~
In file included from arch/x86/um/shared/sysdep/stub.h:8:0,
from arch/um/os-Linux/skas/process.c:23:
arch/um/os-Linux/skas/process.c: In function 'copy_context_skas0':
>> arch/x86/um/shared/sysdep/stub_32.h:13:32: error: 'UM_KERN_PAGE_SHIFT' undeclared (first use in this function)
#define MMAP_OFFSET(o) ((o) >> UM_KERN_PAGE_SHIFT)
^
>> arch/um/os-Linux/skas/process.c:449:14: note: in expansion of macro 'MMAP_OFFSET'
.offset = MMAP_OFFSET(new_offset),
^~~~~~~~~~~
In file included from arch/um/os-Linux/skas/process.c:15:0:
arch/um/include/shared/as-layout.h:33:56: error: 'UM_KERN_PAGE_SIZE' undeclared (first use in this function)
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^
arch/um/include/shared/as-layout.h:27:27: note: in definition of macro '__UML_AC'
#define __UML_AC(X, Y) (X(Y))
^
arch/um/include/shared/as-layout.h:33:19: note: in expansion of macro '_UML_AC'
#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE)
^~~~~~~
arch/um/os-Linux/skas/process.c:497:25: note: in expansion of macro 'STUB_DATA'
if (child_data->err != STUB_DATA) {
^~~~~~~~~
arch/um/os-Linux/skas/process.c: In function 'new_thread':
arch/um/os-Linux/skas/process.c:522:44: error: 'UM_THREAD_SIZE' undeclared (first use in this function)
(*buf)[0].JB_SP = (unsigned long) stack + UM_THREAD_SIZE -
^~~~~~~~~~~~~~
arch/um/os-Linux/skas/process.c: In function 'start_idle_thread':
arch/um/os-Linux/skas/process.c:563:4: error: 'UM_THREAD_SIZE' undeclared (first use in this function)
UM_THREAD_SIZE - sizeof(void *);
^~~~~~~~~~~~~~
vim +/UM_KERN_PAGE_SHIFT +13 arch/x86/um/shared/sysdep/stub_32.h
d67b569f arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-07-07 7 #define __SYSDEP_STUB_H
d67b569f arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-07-07 8
d67b569f arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-07-07 9 #include <asm/ptrace.h>
d67b569f arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-07-07 10
d67b569f arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-07-07 11 #define STUB_SYSCALL_RET EAX
d67b569f arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-07-07 12 #define STUB_MMAP_NR __NR_mmap2
71f926f2 arch/um/include/sysdep-i386/stub.h Jeff Dike 2007-10-16 @13 #define MMAP_OFFSET(o) ((o) >> UM_KERN_PAGE_SHIFT)
d67b569f arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-07-07 14
17d46971 arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-11-21 15 static inline long stub_syscall0(long syscall)
17d46971 arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-11-21 16 {
17d46971 arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-11-21 17 long ret;
17d46971 arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-11-21 18
17d46971 arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-11-21 19 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall));
17d46971 arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-11-21 20
17d46971 arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-11-21 21 return ret;
17d46971 arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-11-21 22 }
17d46971 arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-11-21 23
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 24 static inline long stub_syscall1(long syscall, long arg1)
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 25 {
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 26 long ret;
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 27
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 28 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1));
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 29
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 30 return ret;
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 31 }
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 32
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 33 static inline long stub_syscall2(long syscall, long arg1, long arg2)
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 34 {
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 35 long ret;
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 36
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 37 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1),
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 38 "c" (arg2));
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 39
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 40 return ret;
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 41 }
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 42
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 43 static inline long stub_syscall3(long syscall, long arg1, long arg2, long arg3)
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 44 {
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 45 long ret;
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 46
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 47 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1),
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 48 "c" (arg2), "d" (arg3));
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 49
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 50 return ret;
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 51 }
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 52
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 53 static inline long stub_syscall4(long syscall, long arg1, long arg2, long arg3,
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 54 long arg4)
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 55 {
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 56 long ret;
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 57
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 58 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1),
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 59 "c" (arg2), "d" (arg3), "S" (arg4));
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 60
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 61 return ret;
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 62 }
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 63
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 64 static inline long stub_syscall5(long syscall, long arg1, long arg2, long arg3,
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 65 long arg4, long arg5)
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 66 {
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 67 long ret;
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 68
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 69 __asm__ volatile ("int $0x80" : "=a" (ret) : "0" (syscall), "b" (arg1),
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 70 "c" (arg2), "d" (arg3), "S" (arg4), "D" (arg5));
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 71
4f027241 arch/um/include/sysdep-i386/stub.h Paolo 'Blaisorblade' Giarrusso 2005-11-07 72 return ret;
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 73 }
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 74
5b7b15af arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-12-18 75 static inline void trap_myself(void)
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 76 {
5b7b15af arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-12-18 77 __asm("int3");
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 78 }
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 79
5b7b15af arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-12-18 80 static inline void remap_stack(int fd, unsigned long offset)
9786a8f3 arch/um/include/sysdep-i386/stub.h Bodo Stroesser 2005-07-07 81 {
5b7b15af arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-12-18 82 __asm__ volatile ("movl %%eax,%%ebp ; movl %0,%%eax ; int $0x80 ;"
5b7b15af arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-12-18 83 "movl %7, %%ebx ; movl %%eax, (%%ebx)"
54ae36f2 arch/um/include/sysdep-i386/stub.h Jeff Dike 2007-10-16 @84 : : "g" (STUB_MMAP_NR), "b" (STUB_DATA),
5b7b15af arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-12-18 85 "c" (UM_KERN_PAGE_SIZE),
5b7b15af arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-12-18 86 "d" (PROT_READ | PROT_WRITE),
5b7b15af arch/um/include/sysdep-i386/stub.h Jeff Dike 2005-12-18 87 "S" (MAP_FIXED | MAP_SHARED), "D" (fd),
:::::: The code at line 13 was first introduced by commit
:::::: 71f926f2ea61994470a53c9e11d3ef993197cada uml: stop using libc asm/page.h
:::::: TO: Jeff Dike <jdike@xxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data