Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user mode : page walk #2

Open
3 of 6 tasks
Martins3 opened this issue Dec 18, 2020 · 5 comments
Open
3 of 6 tasks

user mode : page walk #2

Martins3 opened this issue Dec 18, 2020 · 5 comments

Comments

@Martins3
Copy link
Owner

Martins3 commented Dec 18, 2020

  • page flags
  • PDX
  • level
  • pgroot
    • cr3 for mips ?
  • vm.c : dune_vm_default_pgflt_handler : we will not handle it until I finished hello world
@Martins3
Copy link
Owner Author

  • I don't know what's the consequence of the absence of PTE_U?
    • how MIPS distinguish user mode and kernel mode?

I Will check this problem in jump kernel

@Martins3
Copy link
Owner Author

Martins3 commented Dec 18, 2020

  • hugepage
	CREATE_BIG = 2,
	CREATE_BIG_1GB = 3,

chen huacai's book: P275 : Loongson only support PMD hugepage

@Martins3
Copy link
Owner Author

#define pte_present(pte)	(pte & (_PAGE_PRESENT | _PAGE_PROTNONE))
  • PN bit in flags

@Martins3
Copy link
Owner Author

  • maybe Makefile depending chain, check it and test it (don't run it)
  • #define _GNU_SOURCE ???

@Martins3
Copy link
Owner Author

  • silent write
static inline pte_t pte_wrprotect(pte_t pte)
{
	pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE);
	return pte;
}

static inline pte_t pte_mkclean(pte_t pte)
{
	pte_val(pte) &= ~(_PAGE_MODIFIED | _PAGE_SILENT_WRITE);
	return pte;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant