git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: wrapper function for bootstraping user program
[lunaix-os.git]
/
lunaix-os
/
kernel
/
asm
/
x86
/
pfault.c
diff --git
a/lunaix-os/kernel/asm/x86/pfault.c
b/lunaix-os/kernel/asm/x86/pfault.c
index 2388f38c2db7f8017859b6be8fd3987ed80a6c61..0d5131f53def4ce02ea288afdaf1efa1391fdb9c 100644
(file)
--- a/
lunaix-os/kernel/asm/x86/pfault.c
+++ b/
lunaix-os/kernel/asm/x86/pfault.c
@@
-89,7
+89,7
@@
intr_routine_page_fault(const isr_param* param)
if (hit_region->mfile && !PG_IS_PRESENT(*pte)) {
struct v_file* file = hit_region->mfile;
u32_t offset =
if (hit_region->mfile && !PG_IS_PRESENT(*pte)) {
struct v_file* file = hit_region->mfile;
u32_t offset =
- (ptr - hit_region->start) & (PG_SIZE - 1) + hit_region->
offset
;
+ (ptr - hit_region->start) & (PG_SIZE - 1) + hit_region->
foff
;
uintptr_t pa = pmm_alloc_page(__current->pid, 0);
if (!pa) {
uintptr_t pa = pmm_alloc_page(__current->pid, 0);
if (!pa) {