mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
Imported Genode release 11.11
This commit is contained in:
committed by
Christian Helmuth
parent
6bcc9aef0e
commit
da4e1feaa5
18
base-nova/patches/utcb.patch
Normal file
18
base-nova/patches/utcb.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
diff -r 11c290b5edf9 src/syscall.cpp
|
||||
--- a/src/syscall.cpp Wed Nov 09 14:50:18 2011 +0100
|
||||
+++ b/src/syscall.cpp Wed Nov 09 15:07:03 2011 +0100
|
||||
@@ -240,11 +240,13 @@
|
||||
}
|
||||
Pd *pd = static_cast<Pd *>(cap.obj());
|
||||
|
||||
- if (EXPECT_FALSE (r->utcb() >= USER_ADDR || r->utcb() & PAGE_MASK || !pd->insert_utcb (r->utcb()))) {
|
||||
+ if (EXPECT_FALSE (r->utcb() >= USER_ADDR || r->utcb() & PAGE_MASK)) {
|
||||
trace (TRACE_ERROR, "%s: Invalid UTCB address (%#lx)", __func__, r->utcb());
|
||||
sys_finish<Sys_regs::BAD_PAR>();
|
||||
}
|
||||
|
||||
+ pd->insert_utcb (r->utcb());
|
||||
+
|
||||
Ec *ec = new Ec (Pd::current, r->sel(), pd, r->flags() & 1 ? static_cast<void (*)()>(send_msg<ret_user_iret>) : 0, r->cpu(), r->evt(), r->utcb(), r->esp());
|
||||
|
||||
if (!Space_obj::insert_root (ec)) {
|
||||
Reference in New Issue
Block a user