Search:

Type: Posts; User: m00ni

Search: Search took 0.01 seconds.

  1. Replies
    24
    Views
    14,907

    The whole code creating function without...

    The whole code creating function without subfunctions to calculate value and/or insert values to the array:



    LZSBYTE LzsCompileSegmentTable(tLzsSegTabEntry LZSFAR *pSegTab_i,
    LZSUINT...
  2. Replies
    24
    Views
    14,907

    Hey, Sorry for the long delay, but I was not...

    Hey,

    Sorry for the long delay, but I was not at work at the weekend so I did not have access to the code. So here is a little bit more:



    typedef struct {
    tPlcMemPtr m_pArray; //Actual...
  3. Replies
    24
    Views
    14,907

    Hey there, Thanks for all the help and...

    Hey there,

    Thanks for all the help and information. I was actually thinking about the same thing today at work (it is already midnight here so I am not at work anymore =D), I mean that I get...
  4. Replies
    24
    Views
    14,907

    My very minimalistic example works fine now, but...

    My very minimalistic example works fine now, but as soon as the created code becomes larger I get Sigill in the middle of execution. Is there something wrong with my memory range calculation for...
  5. Replies
    24
    Views
    14,907

    Hey, Alright I am going to describe it in more...

    Hey,

    Alright I am going to describe it in more deatail now. I have a PowerPC microcontroller with some kind of linux on it. On this microcontroller runs a RTE which is written in C. Now the normal...
  6. Replies
    24
    Views
    14,907

    Is there a way to mark memory as...

    Is there a way to mark memory as Read/Write/Executable and not only one of them? Because mprotect replaces the protection and does not add them up, so depending on where exactly the pointer is a lot...
  7. Replies
    24
    Views
    14,907

    yep just did that and figured out where my...

    yep just did that and figured out where my problem was. The man page I looked at sayd I can specify any mem address, but as it turns out I need to align in with mempage size. So I have done that, but...
  8. Replies
    24
    Views
    14,907

    I tryed the advice with mprotect: bRetCode =...

    I tryed the advice with mprotect:


    bRetCode = mprotect(pNativeCodeArray, wNativeCodeArraySize, PROT_EXEC);

    Sadly it does not help at all, I think that might have something to do with mprotext...
  9. Replies
    24
    Views
    14,907

    Hey, Thanks for all the already very helpful...

    Hey,

    Thanks for all the already very helpful advice. Basically I integrated an Native Code Compiler into a Runtime Environment which is executed on the powerpc linux microcontroller. so when a...
  10. Replies
    24
    Views
    14,907

    As it turns out, the problem seems to be the...

    As it turns out, the problem seems to be the memory address in which the code is stored. I am going to save you the details but if I copy my NC to a certain memory address and then again try to...
  11. Replies
    24
    Views
    14,907

    Illegal Instruction at perfectly fine Code

    Hey,

    I have been having a strange problem for the last couple of days. I create code with a native code compiler (the code should be valid checked it a couple of times) and then I want to execute...
Results 1 to 11 of 12