]> xenbits.xensource.com Git - seabios.git/commitdiff
Remove CanPreempt check from pmm code.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 31 May 2012 01:02:44 +0000 (21:02 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 31 May 2012 01:05:36 +0000 (21:05 -0400)
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>
src/pmm.c
src/util.h

index 4cee4016b4ded7a096ffc9689e470331a9fb7078..5d43645e50f8c7b90ee5ce309893cf4a36495a28 100644 (file)
--- a/src/pmm.c
+++ b/src/pmm.c
@@ -537,13 +537,6 @@ handle_pmm(u16 *args)
     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;
@@ -552,9 +545,6 @@ handle_pmm(u16 *args)
     default:   ret = handle_pmmXX(args); break;
     }
 
-    if (CONFIG_THREAD_OPTIONROMS)
-        CanPreempt = oldpreempt;
-
     return ret;
 }
 
index 0d41785d89a6f15b505ed201f102b8b6d88cc38f..e5d494e40daaabd4f0b9bfa1c4e2817569f2b264 100644 (file)
@@ -225,7 +225,6 @@ void wait_threads(void);
 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);