Linux EFI development
 help / color / mirror / Atom feed
From: leosilva <leosilva-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: EFI phys_prelog, run a physical address directly in kernel space with efi api.
Date: Thu, 18 Apr 2013 15:15:01 -0300	[thread overview]
Message-ID: <1366308901.14115.16.camel@lain-ibm> (raw)

Hi,

I'm faced with that issue where I have a physical address that was
mapped by EFI memap (I did check it using efi_lookup_mapped_addr). It is
not or an EFI run time services neither an EFI boot service. 
In my attempts I was able to map the physical address to a virtual in
Kernel space, but when I try call it using some __inline__ asm, I
realized that into this function (pointed by the physical address I
mapped),it tries to do an access to another physical address and I grab
an oops: 'unable to access the page in the address.'

Now I'm supposing I need to run that physical address function directly
without map it to virtual space and seems that the way to do it is using
some EFI API. In short I'm thinking in run that code in physical space
(something like real mode). I took a look in efi_phys_prelog
and ..epilog to do that. But I was surprised with a long stack trace
that point me to a oops: 'schedule while atomic'.

So, I'd like to know if is there anyway to do it using EFI API that we
have in kernel (arch x86_64)?


-- 
leosilva <leosilva-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>

                 reply	other threads:[~2013-04-18 18:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1366308901.14115.16.camel@lain-ibm \
    --to=leosilva-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
    --cc=linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox