|
From: | Almudena Garcia |
Subject: | Re: Enable SMP support |
Date: | Tue, 3 Jul 2018 18:33:18 +0200 |
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..)
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\ This seems to be ok for the ffs function, the others are not part of the
> __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$
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
[Prev in Thread] | Current Thread | [Next in Thread] |