projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Need to turn off interrupts again after calling into BIOS.
[pintos-anon]
/
src
/
threads
/
loader.S
diff --git
a/src/threads/loader.S
b/src/threads/loader.S
index 2bfe1a45304c8756fb1cba4b14bd30af076c6320..95ef9d9cbd349c7c104b9acb626b6c0a9fa4c169 100644
(file)
--- a/
src/threads/loader.S
+++ b/
src/threads/loader.S
@@
-119,6
+119,7
@@
start:
mov ah, 0x88
int 0x15
jc panic
mov ah, 0x88
int 0x15
jc panic
+ cli # BIOS might have enabled interrupts
add eax, 1024 # Total kB memory
cmp eax, 0x10000 # Cap at 64 MB
jbe 1f
add eax, 1024 # Total kB memory
cmp eax, 0x10000 # Cap at 64 MB
jbe 1f