Changeset 342de62 in mainline for arch/ia32/src/asm.S
- Timestamp:
- 2005-10-05T19:42:32Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 49c1f93
- Parents:
- 1084a784
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/asm.S
r1084a784 r342de62 38 38 .global enable_l_apic_in_msr 39 39 .global interrupt_handlers 40 .global memsetb41 .global memsetw42 40 43 41 ## Turn paging on … … 152 150 153 151 154 ## Fill memory with bytes155 #156 # Fill a given number of bytes (2nd argument)157 # at memory defined by 1st argument with the158 # byte value defined by 3rd argument.159 #160 DST=12161 CNT=16162 X=20163 memsetb:164 push %eax165 push %edi166 167 movl CNT(%esp),%ecx168 movl DST(%esp),%edi169 movl X(%esp),%eax170 171 rep stosb %al,%es:(%edi)172 173 pop %edi174 pop %eax175 ret176 177 178 ## Fill memory with words179 #180 # Fill a given number of words (2nd argument)181 # at memory defined by 1st argument with the182 # word value defined by 3rd argument.183 #184 DST=12185 CNT=16186 X=20187 memsetw:188 push %eax189 push %edi190 191 movl CNT(%esp),%ecx192 movl DST(%esp),%edi193 movl X(%esp),%eax194 195 rep stosw %ax,%es:(%edi)196 197 pop %edi198 pop %eax199 200 ret201 202 203 152 # THIS IS USERSPACE CODE 204 153 .global utext
Note:
See TracChangeset
for help on using the changeset viewer.