[PATCH 1/1] i386 libcpu-score changes
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Aug 20 09:24:21 UTC 2013
On 2013-08-20 11:20, Philipp Eppelt wrote:
> On 08/20/2013 11:09 AM, Sebastian Huber wrote:
>> On 2013-08-20 10:55, philipp.eppelt at mailbox.tu-dresden.de wrote:
>>> diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h
>>> b/cpukit/score/cpu/i386/rtems/score/cpu.h
>>> index 43422ed..68b0e53 100644
>>> --- a/cpukit/score/cpu/i386/rtems/score/cpu.h
>>> +++ b/cpukit/score/cpu/i386/rtems/score/cpu.h
>>> @@ -29,9 +29,9 @@ extern "C" {
>>>
>>> #include <rtems/score/types.h>
>>> #include <rtems/score/i386.h>
>>> -
>>> +#include <libcpu/cpu-score-split.h>
>>> #ifndef ASM
>>> -#include <rtems/score/interrupts.h> /* formerly in libcpu/cpu.h> */
>>> +#include <libcpu/interrupts.h> /* formerly in libcpu/cpu.h> */
>>
>> The header files in cpukit must not use RTEMS header files outside the
>> cpukit directory.
>>
>> You must place the declarations in <rtems/score/cpu.h>. You can move
>> the implementation to libcpu.
>>
>
> interrupts.h and cpu-score-split.h mainly consists of #defines that are
> virtualization sensitive.
> How can I declare defines in cpu.h and implement them in libcpu?
You can replace macros with functions for example. If this is not possible,
then we need a new configure option and use conditional compilation in cpukit.
>
> Shall I just redefine them in libcpu? Wouldn't that be confusing?
No, this doesn't work.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list