Rev 992 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 992 | Rev 1443 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | filepos dd 0x0 |
55 | filepos dd 0x0 |
Line 56... | Line 56... | ||
56 | 56 | ||
Line 57... | Line 57... | ||
57 | 57 | ||
58 | init_memory: |
58 | init_memory: |
59 | 59 | ||
- | 60 | ; mov ecx, 16*1024*1024 |
|
- | 61 | ; |
|
- | 62 | ; allocate_memory: |
|
- | 63 | mcall 18, 16 |
|
- | 64 | cmp eax, 0x38000000 shr 9 |
|
- | 65 | jbe @f |
|
- | 66 | mov eax, 0x38000000 shr 9 |
|
60 | mov ecx, 16*1024*1024 |
67 | @@: |
61 | 68 | shl eax, 9 |
|
62 | allocate_memory: |
69 | xchg eax, ecx |
63 | mov [memory_setting],ecx |
70 | mov [memory_setting],ecx |
- | 71 | mcall 68, 12 |
|
64 | mcall 68, 12 |
72 | or eax,eax |
65 | or eax,eax |
73 | jz out_of_memory |
66 | jz out_of_memory |
74 | mov [memblock], eax |
67 | mov [additional_memory],eax |
75 | mov [additional_memory],eax |
68 | add eax,[memory_setting] |
76 | add eax,[memory_setting] |