> > Also it seems that local_bh_count and local_irq_count are used only in > the Linux-based drivers, so maybe you can look to the SMP-aware > implementation in Linux (or #define the functions as empty macros if > they are not strictly needed..) >
Yes, I found their definitions in *linux/dev/arch/i386/kernel/irq.c , *hide under a *#ifdef 0. *I commented on this macro, and now the linker founds these. But I don't find any definition of * intel_startCPU *function. I see many calls to this function, but don't find Its declaration and definition. 2018-07-03 18:24 GMT+02:00 Luca Dariz <luca.da...@gmail.com>: > Il 03/07/2018 17:49, Almudena Garcia ha scritto: > > I've just tried to add this functions in Makefile.am, in clib_routines, > > as this form > > > > clib_routines := htonl htons ntohl ntohs \ > > udivdi3 __udivdi3 __udivmoddi4 __umoddi3 \ > > __divdi3 \ > > __rel_iplt_start __rel_iplt_end \ > > __ffsdi2 \ > > ffs intel_startCPU local_bh_count local_irq_count \ > > _START _start etext _edata end _end # actually ld magic, > > not li$ > > This seems to be ok for the ffs function, the others are not part of the > standard C library. > > > > > But now It shows this error (attached file) > > > > Feels that It's necessary to define this functions but I don't know > > where these functions are located. > > > > How can I define this? > > > I'd look for for the non-SMP implementation and start from there, they > should be somewhere in gnumach sources. > > Also it seems that local_bh_count and local_irq_count are used only in > the Linux-based drivers, so maybe you can look to the SMP-aware > implementation in Linux (or #define the functions as empty macros if > they are not strictly needed..) > > Luca >