Thread (44 messages) 44 messages, 10 authors, 2019-06-12

Re: [PATCH 10/10] Add sample notification program [ver #3]

From: David Howells <dhowells@redhat.com>
Date: 2019-06-06 22:52:59
Also in: keyrings, linux-block, linux-fsdevel, linux-security-module, lkml

Eugeniu Rosca [off-list ref] wrote:
How about arm64? Do you intend to enable cross-compilation?
There's no guarantee that a cross-compiler can actually build userspace apps,
though I haven't intended to encode anything against that in the Makefile.
quoted
+			asm ("lfence" : : : "memory" );
[..]
quoted
+			asm("mfence" ::: "memory");
FWIW, trying to cross-compile it returned:

aarch64-linux-gnu-gcc -I../../usr/include -I../../include  watch_test.c   -o watch_test
/tmp/ccDXYynm.s: Assembler messages:
/tmp/ccDXYynm.s:471: Error: unknown mnemonic `lfence' -- `lfence'
/tmp/ccDXYynm.s:568: Error: unknown mnemonic `mfence' -- `mfence'
Yeah.  I need to use C-standard __atomic_* stuff.

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help