The CanPreempt check in pmm is a leftover from when memory could be
allocated from the 9-segment. It is no longer needed.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
u16 arg1 = args[0];
dprintf(DEBUG_HDL_pmm, "pmm call arg1=%x\n", arg1);
- int oldpreempt;
- if (CONFIG_THREAD_OPTIONROMS) {
- // Not a preemption event - don't wait in wait_preempt()
- oldpreempt = CanPreempt;
- CanPreempt = 0;
- }
-
u32 ret;
switch (arg1) {
case 0x00: ret = handle_pmm00(args); break;
default: ret = handle_pmmXX(args); break;
}
- if (CONFIG_THREAD_OPTIONROMS)
- CanPreempt = oldpreempt;
-
return ret;
}
struct mutex_s { u32 isLocked; };
void mutex_lock(struct mutex_s *mutex);
void mutex_unlock(struct mutex_s *mutex);
-extern int CanPreempt;
void start_preempt(void);
void finish_preempt(void);
int wait_preempt(void);