Skip to main content
2 votes
1 answer
96 views

This is a follow-up to this question which shows the symptom but doesn't explain the internal mechanism. Setup: CREATE TABLE t (x INT, name VARCHAR(100)); INSERT INTO t SELECT level, CASE WHEN ...
Mohamed Shereef's user avatar
3 votes
1 answer
137 views

On RISC-V, A page table entry, which is the size of usize in Rust, has an RSW field, which is 2 bits wide. This field is supervisor defined (e.g. the kernel can use it as it pleases). Could one of ...
CocytusDEDI's user avatar
1 vote
1 answer
133 views

I wonder if Intel (and Intel compatible) CPUs have an instruction (for diagnostic/debugging purposes) which, for a given linear address, returns the result of paging translation (i.e. the ...
Ruslan's user avatar
  • 184
3 votes
2 answers
153 views

I am working on a small os with a custom boot loader targeting BIOS. For this, I need to map the kernel to its canonical high address space (0xFFFFFFFF80000000) and jump to its entry point. For this, ...
Holz's user avatar
  • 133
0 votes
1 answer
118 views

I'm trying to fully understand how paging works in the x86 architecture when segmentation is also enabled. I have a couple of questions: Does paging divide the logical memory (the selector + offset ...
GZanotto's user avatar
5 votes
1 answer
170 views

I am encountering something extremely strange on my system right now. #include <cstdint> #include <iostream> constexpr size_t N = 1l<<31; int main() { auto buf = new int64_t[N]{...
JMC's user avatar
  • 2,123
2 votes
1 answer
159 views

I turn on the huge page option in linux using THP, Transparent Huge Page. And I wrote some simple code to check whether it really allocate huge page or not. As a result, it actually does but something ...
kdh's user avatar
  • 344
1 vote
1 answer
146 views

I'm progressing along developing my OS, and I recently implemented a virtual memory manager that handles paging. I used 2 Page Tables: (1) to identity map the first 4 MB and (2) to map the kernel (...
user29935845's user avatar
0 votes
1 answer
130 views

Currently, a memset to kernel_dir is causing my kernel to page fault. The kernel is a higher-half kernel, and is mapped to 0xC0000000 in virtual memory. #include "paging.h" #include "...
xingharvey's user avatar
1 vote
0 answers
113 views

I'm writing a 32-bit OS kernel with support for PAE paging. When I enable paging with mov %eax, %cr0 (setting the PG bit), the kernel works fine under QEMU with TCG, but crashes with a General ...
Ioane Baidoshvili's user avatar
1 vote
1 answer
84 views

I have implemented basic paging (partially based on OSDev) and successfully mapped memory pages. However, I am facing an issue where I can no longer access the framebuffer address stored at physical ...
Magic Magician's user avatar
0 votes
1 answer
126 views

I was reading the lecture notes here about Demand Paging. The author states that: Restarting process execution after a page fault is tricky, since the fault may have occurred in the middle of an ...
jtxkopt - STOP GENOCIDE's user avatar
0 votes
1 answer
138 views

I have a question while reading the paper, Supporting x86-64 address translation for 100s of GPU lanes. The x86-64 ISA has extensions for 2 MB and 1 GB pages in addition to the default 4 KB page size....
kdh's user avatar
  • 344
2 votes
0 answers
88 views

I’m developing a custom OS and facing a chicken-and-egg problem with my page frame allocator. I need to map a specific page, but if the corresponding PML4 entry is NULL, I must allocate a PDPT. ...
Viliam Holly's user avatar
0 votes
1 answer
125 views

I ran a test to better understand how pages affect performance when traversing & reading objects in memory but I got the opposite of what I was expecting. I'm hoping someone can explain this ...
greenlagoon's user avatar

15 30 50 per page
1
2 3 4 5
47