Rev 8176 | Rev 8246 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8176 | Rev 8216 | ||
---|---|---|---|
Line 69... | Line 69... | ||
69 | format binary as "mnt" |
69 | format binary as "mnt" |
Line 70... | Line 70... | ||
70 | 70 | ||
71 | include 'macros.inc' |
71 | include 'macros.inc' |
Line 72... | Line 72... | ||
72 | include 'struct.inc' |
72 | include 'struct.inc' |
Line 73... | Line 73... | ||
73 | 73 | ||
74 | $Revision: 8176 $ |
74 | $Revision: 8216 $ |
Line 5672... | Line 5672... | ||
5672 | is_region_userspace: |
5672 | is_region_userspace: |
5673 | ; in: eax = base |
5673 | ; in: eax = base |
5674 | ; ebx = len |
5674 | ; ebx = len |
5675 | ; out: eax = 1 if region in userspace memory, 0 if not |
5675 | ; out: eax = 1 if region in userspace memory, 0 if not |
5676 | push esi edi ecx |
5676 | push esi edi ecx |
- | 5677 | ||
- | 5678 | cmp eax, OS_BASE |
|
- | 5679 | ja @f |
|
- | 5680 | ||
5677 | add eax, ebx |
5681 | add eax, ebx |
5678 | cmp eax, OS_BASE |
5682 | cmp eax, OS_BASE |
5679 | ja @f |
5683 | ja @f |
Line 5680... | Line 5684... | ||
5680 | 5684 | ||
5681 | mov eax, 1 |
5685 | mov eax, 1 |
5682 | jmp .ret |
- | |
5683 | 5686 | jmp .ret |
|
5684 | @@: |
5687 | @@: |
5685 | xor eax, eax |
5688 | xor eax, eax |
5686 | .ret: |
5689 | .ret: |
5687 | pop ecx edi esi |
5690 | pop ecx edi esi |