none
FILES.BIB: what is difference between "K" & "Z" MODULE flags RRS feed

  • Question

  • CE6,CE7; CEPC BSP

    I encountered that oal.exe (kitl.dll, kern.dll too)  is included to image with SHZ flags.
    MS-help keeps silence about it.

    It's involved to investigation of mine why does CacheSync() call from OAL library fail due to "Call from user mode"?
    I've always thought that OAL is placed in kernel space and it allows to call kernel function explicitly.

    Wednesday, March 30, 2011 3:30 PM

All replies

  • Microsoft isn't too silent about it, look at http://msdn.microsoft.com/en-us/library/aa908680.aspx
    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Wednesday, March 30, 2011 3:57 PM
    Moderator
  • Hmm, I did try it via VS online help. Thanks.

    But why does CacheSync call fail from oal ?

    Wednesday, March 30, 2011 4:09 PM
  • I used Google and Bing, both gave me that result as the first hit.  My search string was "romimage z flag".

    I don't know why CacheSync fails.   Can you be more specific about what the failure is?  You state "Call from user mode" like you see a string someplace that states that, do you?


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Wednesday, March 30, 2011 4:22 PM
    Moderator
  • Sorry, it was a hot day;

    I have got an error message then call CacheSync:

    !! ERROR - SECURIIY VIOLATION !! ----------------------------------------------------------------------
    !! ERROR - SECURIIY VIOLATION !! Running user code in kernel Mode (0x40058b4a), Thread terminated!!
    !! ERROR - SECURIIY VIOLATION !! ----------------------------------------------------------------------

    I check the call chain, and it is as following: CacheSync (kernel space) -> xxx_CacheSync (user space) -> xxx_CacheRangeFlush(user space) -> CacheRangeFlush

    What is wrong?

    Thursday, March 31, 2011 12:10 PM
  • That message is the opposite of what you originally said that it reported.

    It says that you are calling into user code from kernel mode code.   Just like your chain shows.

    Hmm, how are you able to call CacheSync() from your OAL?  You aren't calling LoadLibrary on coredll.dll are you?


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Thursday, March 31, 2011 3:33 PM
    Moderator
  • Exactly, I'm not applying LoadLibrary, 

    I make a call of CacheSync() within power lib, then I link it together with coredll.lib into oal.exe

    Friday, April 1, 2011 12:54 PM