Rev 8876 | Rev 9045 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8876 | Rev 8962 | ||
---|---|---|---|
Line 75... | Line 75... | ||
75 | format binary as "mnt" |
75 | format binary as "mnt" |
Line 76... | Line 76... | ||
76 | 76 | ||
77 | include 'macros.inc' |
77 | include 'macros.inc' |
Line 78... | Line 78... | ||
78 | include 'struct.inc' |
78 | include 'struct.inc' |
Line 79... | Line 79... | ||
79 | 79 | ||
80 | $Revision: 8876 $ |
80 | $Revision: 8962 $ |
Line 5745... | Line 5745... | ||
5745 | align 4 |
5745 | align 4 |
5746 | undefined_syscall: ; Undefined system call |
5746 | undefined_syscall: ; Undefined system call |
5747 | mov [esp + 32], dword -1 |
5747 | mov [esp + 32], dword -1 |
5748 | ret |
5748 | ret |
Line 5749... | Line -... | ||
5749 | - | ||
5750 | ; check if given memory region lays in lower 2gb (userspace memory) or not |
5749 | |
5751 | align 4 |
5750 | align 4 |
5752 | proc is_region_userspace stdcall, base:dword, len:dword |
- | |
5753 | ; in: |
5751 | ; @brief Check if given memory region lays in lower 2gb (userspace memory) or not |
5754 | ; base = base address of region |
5752 | ; @param base Base address of region |
5755 | ; len = lenght of region |
5753 | ; @param len Lenght of region |
5756 | ; out: ZF = 1 if region in userspace memory |
5754 | ; @return ZF = 1 if region in userspace memory, |
- | 5755 | ; ZF = 0 otherwise |
|
5757 | ; ZF = 0 otherwise |
5756 | proc is_region_userspace stdcall, base:dword, len:dword |
5758 | push eax ebx |
5757 | push eax ebx |
Line 5759... | Line 5758... | ||
5759 | mov eax, [base] |
5758 | mov eax, [base] |
5760 | 5759 |