summaryrefslogtreecommitdiff
path: root/src/pmm.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-05-30 21:02:44 -0400
committerKevin O'Connor <kevin@koconnor.net>2012-05-30 21:05:36 -0400
commit640cd0ad8136a05a747af858ad463185e8dc6878 (patch)
tree408b5e4166884947183301937f7f2672159575ea /src/pmm.c
parent4836558f01511ed1ee5a433af076e8df7b0a123a (diff)
downloadqemu-seabios-640cd0ad8136a05a747af858ad463185e8dc6878.tar.gz
Remove CanPreempt check from pmm code.
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>
Diffstat (limited to 'src/pmm.c')
-rw-r--r--src/pmm.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/pmm.c b/src/pmm.c
index 4cee401..5d43645 100644
--- 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;
}