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

Function _exec_fault

components/mm/mm_fault.c:95–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static int _exec_fault(rt_varea_t varea, void *pa, struct rt_aspace_fault_msg *msg)
96{
97 int err = MM_FAULT_FIXABLE_FALSE;
98 if (msg->fault_type == MM_FAULT_TYPE_PAGE_FAULT)
99 {
100 RT_ASSERT(pa == ARCH_MAP_FAILED);
101 RT_ASSERT(!(varea->flag & MMF_PREFETCH));
102 err = _fetch_page(varea, msg);
103 }
104 return err;
105}
106
107static void _determine_precise_fault_type(struct rt_aspace_fault_msg *msg, rt_ubase_t pa, rt_varea_t varea)
108{

Callers 1

rt_aspace_fault_try_fixFunction · 0.85

Calls 1

_fetch_pageFunction · 0.85

Tested by

no test coverage detected