MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _read_fault

Function _read_fault

components/mm/mm_fault.c:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39static int _read_fault(rt_varea_t varea, void *pa, struct rt_aspace_fault_msg *msg)
40{
41 int err = MM_FAULT_FIXABLE_FALSE;
42 if (msg->fault_type == MM_FAULT_TYPE_PAGE_FAULT)
43 {
44 RT_ASSERT(pa == ARCH_MAP_FAILED);
45 RT_ASSERT(!(varea->flag & MMF_PREFETCH));
46 err = _fetch_page(varea, msg);
47 }
48 else
49 {
50 /* signal a fault to user? */
51 }
52 return err;
53}
54
55static int _write_fault(rt_varea_t varea, void *pa, struct rt_aspace_fault_msg *msg)
56{

Callers 1

rt_aspace_fault_try_fixFunction · 0.85

Calls 1

_fetch_pageFunction · 0.85

Tested by

no test coverage detected