[bikeshed] Re: Qemu Memory issue

  • From: "WALTER LITWINCZYK (RIT Student)" <wtl4112@xxxxxxx>
  • To: bikeshed@xxxxxxxxxxxxx
  • Date: Thu, 24 May 2012 00:05:12 -0400

Only thing is that probably won't work from userland :(

On Thu, May 24, 2012 at 12:04 AM, Sean Congden <stc4700@xxxxxxx> wrote:

> Pro tip: serial.h + serial_printf  :)
>
> On Thursday, May 24, 2012 at 24:02, Christopher Hossenlopp wrote:
>
> I miss c_printf. :(
>
> On May 23, 2012, at 11:02 PM, WALTER LITWINCZYK (RIT Student) wrote:
>
> To follow up on the heap question:
>
> Processes don't really have a notion of heap right now. They're given the
> bare minimum. So if you want to map something into a user process the
> easier way is have a system call and then call __virt_map_page() to where
> you want to map stuff and that should map it into whatever process called
> it.
>
> Otherwise if you want to map into another process from the current process
> you'd have to search all the processes and then call
> __virt_switch_page_directory() with the pcb->page_directory field of the
> pcb you found and then do the mapping, don't forget to map back with
> __virt_switch_page_directory(_current->page_directory) before you return
>
>
>
>
>
>

Other related posts: