|
From: | 吴晓琳 |
Subject: | Re: [Qemu-devel] general question |
Date: | Thu, 31 May 2012 20:42:00 +0800 (CST) |
I am wirting a little kernel by myself, but come into a problem which seems strange. I implement the system call fork, in which memory data is copied from parent's space to child's, I insert a fake page into the parent's page, and set its physical address to an empty frame, and then copy data from paraent's real page to this fake page.
Sometimes it runs normally(data copying is successful), sometimes(garbage codes inserted) fails.
To the most strange, it runs differently, when I set different breakpoints,and look up physical memory with qemu monitor at diffent breakpoints. I don't know whether it does matter to qemu itself or what is the matter with my codes?
I think it does something to do with the TLB????
--- 12年5月31日,周四, Peter Maydell <address@hidden> 写道:
|
[Prev in Thread] | Current Thread | [Next in Thread] |