Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144328674
D31208.id92314.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
514 B
Referenced Files
None
Subscribers
None
D31208.id92314.diff
View Options
Index: sys/riscv/riscv/trap.c
===================================================================
--- sys/riscv/riscv/trap.c
+++ sys/riscv/riscv/trap.c
@@ -207,13 +207,14 @@
*/
intr_enable();
- if (stval >= VM_MAX_USER_ADDRESS) {
+ if (stval >= VM_MIN_KERNEL_ADDRESS) {
map = kernel_map;
- } else {
+ } else if (stval < VM_MAX_USER_ADDRESS) {
if (pcb->pcb_onfault == 0)
goto fatal;
map = &td->td_proc->p_vmspace->vm_map;
- }
+ } else
+ goto fatal;
}
va = trunc_page(stval);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 8, 9:17 PM (7 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28498707
Default Alt Text
D31208.id92314.diff (514 B)
Attached To
Mode
D31208: riscv: handle page faults in the unmappable region
Attached
Detach File
Event Timeline
Log In to Comment