Rev 9223 | Rev 9249 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9223 | Rev 9224 | ||
---|---|---|---|
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: 9223 $ |
80 | $Revision: 9224 $ |
Line 5213... | Line 5213... | ||
5213 | syscall_writetext: ; WriteText |
5213 | syscall_writetext: ; WriteText |
Line 5214... | Line 5214... | ||
5214 | 5214 | ||
5215 | push esi ;check pointer on kernel address. |
5215 | push esi ;check pointer on kernel address. |
5216 | test ecx, 0x80000000 |
5216 | test ecx, 0x80000000 |
5217 | jz @f |
5217 | jz @f |
5218 | mov esi, 0 |
5218 | xor esi, esi |
5219 | @@: |
5219 | @@: |
5220 | stdcall is_region_userspace, edx, esi |
- | |
5221 | jnz .err_1 |
5220 | stdcall is_region_userspace, edx, esi |
- | 5221 | pop esi |
|
Line 5222... | Line 5222... | ||
5222 | pop esi |
5222 | jnz .err |
5223 | 5223 | ||
5224 | mov eax, [TASK_BASE] |
5224 | mov eax, [TASK_BASE] |
5225 | mov ebp, [eax-twdw+WDATA.box.left] |
5225 | mov ebp, [eax-twdw+WDATA.box.left] |
Line 5243... | Line 5243... | ||
5243 | 5243 | ||
5244 | @@: ; check pointer |
5244 | @@: ; check pointer |
5245 | stdcall is_region_userspace, edi, 0 |
5245 | stdcall is_region_userspace, edi, 0 |
5246 | jnz .err |
5246 | jnz .err |
5247 | jmp dtext |
- | |
5248 | .err_1: |
- | |
5249 | pop esi |
5247 | jmp dtext |
5250 | .err: |
5248 | .err: |
Line 5251... | Line 5249... | ||
5251 | ret |
5249 | ret |