- Timestamp:
- Mar 8, 2007 5:21:38 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 19316
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/rombios.c
r1070 r1342 10316 10316 stosw 10317 10317 #else /* VBOX */ 10318 ;; zero out BIOS data area (40:00..40:ff) except word at 40:7210318 ;; zero out segment 0 (includes BIOS data area) except word at 40:72 10319 10319 mov es, ax 10320 mov di, #0x040010320 xor di, di 10321 10321 cld 10322 mov cx, #0x0 039 ;; 57words10322 mov cx, #0x0239 ;; 569 words 10323 10323 rep 10324 10324 stosw 10325 10325 inc di 10326 10326 inc di 10327 mov cx, #0x 0046 ;; 70words10327 mov cx, #0x7dc6 ;; 32198 words 10328 10328 rep 10329 10329 stosw 10330 ;; zero out remaining base memory 10331 xor eax, eax 10332 xor bx, bx 10333 memory_zero_loop: 10334 add bx, #0x1000 10335 cmp bx, #0xa000 10336 jae memory_cleared 10337 mov es, bx 10338 xor di, di 10339 mov cx, #0x4000 10340 rep 10341 stosd 10342 jmp memory_zero_loop 10343 memory_cleared: 10344 xor bx, bx 10330 10345 #endif 10331 10346
Note:
See TracChangeset
for help on using the changeset viewer.