eieio (Enforce In-Order Execution of I/O) Instruction, help!

hi everyone!

:smiley: :smiley: other time I.

i’m porting device driver for vxwroks yo qnx6.30

i have problem with this part of source code.

#ifndef EIEIO #ifdef FRC690 #define EIEIO {int ttttt; for (ttttt=0;ttttt<6;ttttt++) __asm__("eieio");} #else #define EIEIO __asm__("eieio") #endif #endif

i’, working on x86

can anyone help me :question:

to compile output this:
/tmp/ccg2VLB1.s: Assembler messages:
/tmp/ccg2VLB1.s:2232: Error: no such instruction: eieio' /tmp/ccg2VLB1.s:2268: Error: no such instruction: eieio’
/tmp/ccg2VLB1.s:2275: Error: no such instruction: eieio' /tmp/ccg2VLB1.s:2282: Error: no such instruction: eieio’
/tmp/ccg2VLB1.s:2349: Error: no such instruction: eieio' /tmp/ccg2VLB1.s:2468: Error: no such instruction: eieio’
/tmp/ccg2VLB1.s:2532: Error: no such instruction: eieio' /tmp/ccg2VLB1.s:2596: Error: no such instruction: eieio’
/tmp/ccg2VLB1.s:2660: Error: no such instruction: eieio' /tmp/ccg2VLB1.s:2675: Error: no such instruction: eieio’

you tell me what’s the instruction equivalent.

thanks for your help!!

eieio();

:smiley:

now this is my problem

main.o: In function initCard9080': main.o(.text+0x1ae7): undefined reference to eieio’
main.o(.text+0x1b4b): undefined reference to eieio' main.o(.text+0x1b62): undefined reference to eieio’
main.o(.text+0x1b79): undefined reference to eieio' main.o(.text+0x1c56): undefined reference to eieio’
main.o(.text+0x1d8e): more undefined references to `eieio’ follow
collect2: ld returned 1 exit status

tell me what library have add.

if memory servies me right eieio is a PowerPC instruction?

yes

It isn’t a library, it is a pragma. Make sure you have included ppc/inout.h.

thanks!

The docs for mmap_device_memory() mention the eieio command, but they don’t mention <ppc/inout.h>. I’ll create a PR.