security/nss/lib/freebl/mpi/mpcpucache_x86.s

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 / This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 / License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 / file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 4
michael@0 5 .file "mpcpucache.c"
michael@0 6 / .section .rodata.str1.1,"aMS",@progbits,1
michael@0 7 .section .rodata
michael@0 8 .LC0:
michael@0 9 .string "GenuineIntel"
michael@0 10 .LC1:
michael@0 11 .string "AuthenticAMD"
michael@0 12 .LC2:
michael@0 13 .string "CyrixInstead"
michael@0 14 .LC3:
michael@0 15 .string "CentaurHauls"
michael@0 16 .LC4:
michael@0 17 .string "NexGenDriven"
michael@0 18 .LC5:
michael@0 19 .string "GenuineTMx86"
michael@0 20 .LC6:
michael@0 21 .string "RiseRiseRise"
michael@0 22 .LC7:
michael@0 23 .string "UMC UMC UMC "
michael@0 24 .LC8:
michael@0 25 .string "Sis Sis Sis "
michael@0 26 .LC9:
michael@0 27 .string "Geode by NSC"
michael@0 28 .section .data.rel.ro.local,"aw",@progbits
michael@0 29 .align 32
michael@0 30 .type manMap, @object
michael@0 31 .size manMap, 40
michael@0 32 manMap:
michael@0 33 .long .LC0
michael@0 34 .long .LC1
michael@0 35 .long .LC2
michael@0 36 .long .LC3
michael@0 37 .long .LC4
michael@0 38 .long .LC5
michael@0 39 .long .LC6
michael@0 40 .long .LC7
michael@0 41 .long .LC8
michael@0 42 .long .LC9
michael@0 43 .section .rodata
michael@0 44 .align 32
michael@0 45 .type CacheMap, @object
michael@0 46 .size CacheMap, 512
michael@0 47 CacheMap:
michael@0 48 .byte 0
michael@0 49 .byte 0
michael@0 50 .byte 3
michael@0 51 .byte 0
michael@0 52 .byte 3
michael@0 53 .byte 0
michael@0 54 .byte 4
michael@0 55 .byte 0
michael@0 56 .byte 4
michael@0 57 .zero 1
michael@0 58 .byte 1
michael@0 59 .byte 0
michael@0 60 .byte 7
michael@0 61 .byte 32
michael@0 62 .byte 1
michael@0 63 .byte 0
michael@0 64 .byte 7
michael@0 65 .byte 32
michael@0 66 .byte 1
michael@0 67 .byte 0
michael@0 68 .byte 8
michael@0 69 .byte 32
michael@0 70 .byte 1
michael@0 71 .byte 0
michael@0 72 .byte 8
michael@0 73 .byte 32
michael@0 74 .byte 1
michael@0 75 .byte 0
michael@0 76 .byte 1
michael@0 77 .byte 0
michael@0 78 .byte 1
michael@0 79 .byte 0
michael@0 80 .byte 1
michael@0 81 .byte 0
michael@0 82 .byte 1
michael@0 83 .byte 0
michael@0 84 .byte 1
michael@0 85 .byte 0
michael@0 86 .byte 1
michael@0 87 .byte 0
michael@0 88 .byte 1
michael@0 89 .byte 0
michael@0 90 .byte 1
michael@0 91 .byte 0
michael@0 92 .byte 1
michael@0 93 .byte 0
michael@0 94 .byte 1
michael@0 95 .byte 0
michael@0 96 .byte 1
michael@0 97 .byte 0
michael@0 98 .byte 1
michael@0 99 .byte 0
michael@0 100 .byte 1
michael@0 101 .byte 0
michael@0 102 .byte 1
michael@0 103 .byte 0
michael@0 104 .byte 1
michael@0 105 .byte 0
michael@0 106 .byte 1
michael@0 107 .byte 0
michael@0 108 .byte 1
michael@0 109 .byte 0
michael@0 110 .byte 1
michael@0 111 .byte 0
michael@0 112 .byte 1
michael@0 113 .byte 0
michael@0 114 .byte 1
michael@0 115 .byte 0
michael@0 116 .byte 12
michael@0 117 .byte 64
michael@0 118 .byte 12
michael@0 119 .byte 64
michael@0 120 .byte 1
michael@0 121 .byte 0
michael@0 122 .byte 12
michael@0 123 .byte 64
michael@0 124 .byte 1
michael@0 125 .byte 0
michael@0 126 .byte 1
michael@0 127 .byte 0
michael@0 128 .byte 1
michael@0 129 .byte 0
michael@0 130 .byte 12
michael@0 131 .byte 64
michael@0 132 .byte 1
michael@0 133 .byte 0
michael@0 134 .byte 1
michael@0 135 .byte 0
michael@0 136 .byte 8
michael@0 137 .byte 64
michael@0 138 .byte 1
michael@0 139 .byte 0
michael@0 140 .byte 1
michael@0 141 .byte 0
michael@0 142 .byte 1
michael@0 143 .byte 0
michael@0 144 .byte 7
michael@0 145 .byte 64
michael@0 146 .byte 1
michael@0 147 .byte 0
michael@0 148 .byte 1
michael@0 149 .byte 0
michael@0 150 .byte 1
michael@0 151 .byte 0
michael@0 152 .byte 1
michael@0 153 .byte 0
michael@0 154 .byte 1
michael@0 155 .byte 0
michael@0 156 .byte 1
michael@0 157 .byte 0
michael@0 158 .byte 1
michael@0 159 .byte 0
michael@0 160 .byte 1
michael@0 161 .byte 0
michael@0 162 .byte 9
michael@0 163 .byte 64
michael@0 164 .byte 1
michael@0 165 .byte 0
michael@0 166 .byte 9
michael@0 167 .byte 64
michael@0 168 .byte 9
michael@0 169 .byte 64
michael@0 170 .byte 1
michael@0 171 .byte 0
michael@0 172 .byte 1
michael@0 173 .byte 0
michael@0 174 .byte 1
michael@0 175 .byte 0
michael@0 176 .byte 9
michael@0 177 .byte 0
michael@0 178 .byte 9
michael@0 179 .byte 32
michael@0 180 .byte 9
michael@0 181 .byte 32
michael@0 182 .byte 9
michael@0 183 .byte 32
michael@0 184 .byte 9
michael@0 185 .byte 32
michael@0 186 .byte 9
michael@0 187 .byte 32
michael@0 188 .byte 1
michael@0 189 .byte 0
michael@0 190 .byte 1
michael@0 191 .byte 0
michael@0 192 .byte 1
michael@0 193 .byte 0
michael@0 194 .byte 1
michael@0 195 .byte 0
michael@0 196 .byte 1
michael@0 197 .byte 0
michael@0 198 .byte 1
michael@0 199 .byte 0
michael@0 200 .byte 1
michael@0 201 .byte 0
michael@0 202 .byte 1
michael@0 203 .byte 0
michael@0 204 .byte 1
michael@0 205 .byte 0
michael@0 206 .byte 1
michael@0 207 .byte 0
michael@0 208 .byte 3
michael@0 209 .byte 0
michael@0 210 .byte 3
michael@0 211 .byte 0
michael@0 212 .byte 3
michael@0 213 .byte 0
michael@0 214 .byte 1
michael@0 215 .byte 0
michael@0 216 .byte 1
michael@0 217 .byte 0
michael@0 218 .byte 1
michael@0 219 .byte 0
michael@0 220 .byte 1
michael@0 221 .byte 0
michael@0 222 .byte 1
michael@0 223 .byte 0
michael@0 224 .byte 1
michael@0 225 .byte 0
michael@0 226 .byte 1
michael@0 227 .byte 0
michael@0 228 .byte 1
michael@0 229 .byte 0
michael@0 230 .byte 4
michael@0 231 .byte 0
michael@0 232 .byte 4
michael@0 233 .byte 0
michael@0 234 .byte 4
michael@0 235 .byte 0
michael@0 236 .byte 1
michael@0 237 .byte 0
michael@0 238 .byte 1
michael@0 239 .byte 0
michael@0 240 .byte 1
michael@0 241 .byte 0
michael@0 242 .byte 1
michael@0 243 .byte 0
michael@0 244 .byte 1
michael@0 245 .byte 0
michael@0 246 .byte 1
michael@0 247 .byte 0
michael@0 248 .byte 1
michael@0 249 .byte 0
michael@0 250 .byte 1
michael@0 251 .byte 0
michael@0 252 .byte 8
michael@0 253 .byte 64
michael@0 254 .byte 8
michael@0 255 .byte 64
michael@0 256 .byte 8
michael@0 257 .byte 64
michael@0 258 .byte 1
michael@0 259 .byte 0
michael@0 260 .byte 1
michael@0 261 .byte 0
michael@0 262 .byte 1
michael@0 263 .byte 0
michael@0 264 .byte 1
michael@0 265 .byte 0
michael@0 266 .byte 1
michael@0 267 .byte 0
michael@0 268 .byte 1
michael@0 269 .byte 0
michael@0 270 .byte 1
michael@0 271 .byte 0
michael@0 272 .byte 5
michael@0 273 .byte 1
michael@0 274 .byte 5
michael@0 275 .byte 1
michael@0 276 .byte 5
michael@0 277 .byte 1
michael@0 278 .byte 1
michael@0 279 .byte 0
michael@0 280 .byte 1
michael@0 281 .byte 0
michael@0 282 .byte 1
michael@0 283 .byte 0
michael@0 284 .byte 1
michael@0 285 .byte 0
michael@0 286 .byte 1
michael@0 287 .byte 0
michael@0 288 .byte 1
michael@0 289 .byte 0
michael@0 290 .byte 9
michael@0 291 .byte 64
michael@0 292 .byte 9
michael@0 293 .byte 64
michael@0 294 .byte 9
michael@0 295 .byte 64
michael@0 296 .byte 9
michael@0 297 .byte 64
michael@0 298 .byte 1
michael@0 299 .byte 0
michael@0 300 .byte 1
michael@0 301 .byte 0
michael@0 302 .byte 1
michael@0 303 .byte 0
michael@0 304 .byte 1
michael@0 305 .byte 0
michael@0 306 .byte 1
michael@0 307 .byte 0
michael@0 308 .byte 9
michael@0 309 .byte 32
michael@0 310 .byte 9
michael@0 311 .byte 32
michael@0 312 .byte 9
michael@0 313 .byte 32
michael@0 314 .byte 9
michael@0 315 .byte 32
michael@0 316 .byte 9
michael@0 317 .byte 64
michael@0 318 .byte 9
michael@0 319 .byte 64
michael@0 320 .byte 1
michael@0 321 .byte 0
michael@0 322 .byte 1
michael@0 323 .byte 0
michael@0 324 .byte 1
michael@0 325 .byte 0
michael@0 326 .byte 1
michael@0 327 .byte 0
michael@0 328 .byte 1
michael@0 329 .byte 0
michael@0 330 .byte 1
michael@0 331 .byte 0
michael@0 332 .byte 1
michael@0 333 .byte 0
michael@0 334 .byte 1
michael@0 335 .byte 0
michael@0 336 .byte 1
michael@0 337 .byte 0
michael@0 338 .byte 1
michael@0 339 .byte 0
michael@0 340 .byte 1
michael@0 341 .byte 0
michael@0 342 .byte 1
michael@0 343 .byte 0
michael@0 344 .byte 1
michael@0 345 .byte 0
michael@0 346 .byte 1
michael@0 347 .byte 0
michael@0 348 .byte 1
michael@0 349 .byte 0
michael@0 350 .byte 1
michael@0 351 .byte 0
michael@0 352 .byte 1
michael@0 353 .byte 0
michael@0 354 .byte 1
michael@0 355 .byte 0
michael@0 356 .byte 1
michael@0 357 .byte 0
michael@0 358 .byte 1
michael@0 359 .byte 0
michael@0 360 .byte 1
michael@0 361 .byte 0
michael@0 362 .byte 1
michael@0 363 .byte 0
michael@0 364 .byte 1
michael@0 365 .byte 0
michael@0 366 .byte 1
michael@0 367 .byte 0
michael@0 368 .byte 1
michael@0 369 .byte 0
michael@0 370 .byte 1
michael@0 371 .byte 0
michael@0 372 .byte 1
michael@0 373 .byte 0
michael@0 374 .byte 1
michael@0 375 .byte 0
michael@0 376 .byte 1
michael@0 377 .byte 0
michael@0 378 .byte 1
michael@0 379 .byte 0
michael@0 380 .byte 1
michael@0 381 .byte 0
michael@0 382 .byte 1
michael@0 383 .byte 0
michael@0 384 .byte 1
michael@0 385 .byte 0
michael@0 386 .byte 1
michael@0 387 .byte 0
michael@0 388 .byte 1
michael@0 389 .byte 0
michael@0 390 .byte 1
michael@0 391 .byte 0
michael@0 392 .byte 1
michael@0 393 .byte 0
michael@0 394 .byte 1
michael@0 395 .byte 0
michael@0 396 .byte 1
michael@0 397 .byte 0
michael@0 398 .byte 1
michael@0 399 .byte 0
michael@0 400 .byte 3
michael@0 401 .byte 0
michael@0 402 .byte 1
michael@0 403 .byte 0
michael@0 404 .byte 1
michael@0 405 .byte 0
michael@0 406 .byte 4
michael@0 407 .byte 0
michael@0 408 .byte 1
michael@0 409 .byte 0
michael@0 410 .byte 1
michael@0 411 .byte 0
michael@0 412 .byte 1
michael@0 413 .byte 0
michael@0 414 .byte 1
michael@0 415 .byte 0
michael@0 416 .byte 1
michael@0 417 .byte 0
michael@0 418 .byte 1
michael@0 419 .byte 0
michael@0 420 .byte 1
michael@0 421 .byte 0
michael@0 422 .byte 1
michael@0 423 .byte 0
michael@0 424 .byte 1
michael@0 425 .byte 0
michael@0 426 .byte 1
michael@0 427 .byte 0
michael@0 428 .byte 1
michael@0 429 .byte 0
michael@0 430 .byte 1
michael@0 431 .byte 0
michael@0 432 .byte 1
michael@0 433 .byte 0
michael@0 434 .byte 1
michael@0 435 .byte 0
michael@0 436 .byte 1
michael@0 437 .byte 0
michael@0 438 .byte 1
michael@0 439 .byte 0
michael@0 440 .byte 1
michael@0 441 .byte 0
michael@0 442 .byte 1
michael@0 443 .byte 0
michael@0 444 .byte 1
michael@0 445 .byte 0
michael@0 446 .byte 1
michael@0 447 .byte 0
michael@0 448 .byte 1
michael@0 449 .byte 0
michael@0 450 .byte 1
michael@0 451 .byte 0
michael@0 452 .byte 1
michael@0 453 .byte 0
michael@0 454 .byte 1
michael@0 455 .byte 0
michael@0 456 .byte 1
michael@0 457 .byte 0
michael@0 458 .byte 1
michael@0 459 .byte 0
michael@0 460 .byte 1
michael@0 461 .byte 0
michael@0 462 .byte 1
michael@0 463 .byte 0
michael@0 464 .byte 1
michael@0 465 .byte 0
michael@0 466 .byte 1
michael@0 467 .byte 0
michael@0 468 .byte 1
michael@0 469 .byte 0
michael@0 470 .byte 1
michael@0 471 .byte 0
michael@0 472 .byte 1
michael@0 473 .byte 0
michael@0 474 .byte 1
michael@0 475 .byte 0
michael@0 476 .byte 1
michael@0 477 .byte 0
michael@0 478 .byte 1
michael@0 479 .byte 0
michael@0 480 .byte 1
michael@0 481 .byte 0
michael@0 482 .byte 1
michael@0 483 .byte 0
michael@0 484 .byte 1
michael@0 485 .byte 0
michael@0 486 .byte 1
michael@0 487 .byte 0
michael@0 488 .byte 1
michael@0 489 .byte 0
michael@0 490 .byte 1
michael@0 491 .byte 0
michael@0 492 .byte 1
michael@0 493 .byte 0
michael@0 494 .byte 1
michael@0 495 .byte 0
michael@0 496 .byte 1
michael@0 497 .byte 0
michael@0 498 .byte 1
michael@0 499 .byte 0
michael@0 500 .byte 1
michael@0 501 .byte 0
michael@0 502 .byte 1
michael@0 503 .byte 0
michael@0 504 .byte 1
michael@0 505 .byte 0
michael@0 506 .byte 1
michael@0 507 .byte 0
michael@0 508 .byte 1
michael@0 509 .byte 0
michael@0 510 .byte 1
michael@0 511 .byte 0
michael@0 512 .byte 1
michael@0 513 .byte 0
michael@0 514 .byte 1
michael@0 515 .byte 0
michael@0 516 .byte 1
michael@0 517 .byte 0
michael@0 518 .byte 1
michael@0 519 .byte 0
michael@0 520 .byte 1
michael@0 521 .byte 0
michael@0 522 .byte 1
michael@0 523 .byte 0
michael@0 524 .byte 1
michael@0 525 .byte 0
michael@0 526 .byte 1
michael@0 527 .byte 0
michael@0 528 .byte 1
michael@0 529 .byte 0
michael@0 530 .byte 1
michael@0 531 .byte 0
michael@0 532 .byte 1
michael@0 533 .byte 0
michael@0 534 .byte 1
michael@0 535 .byte 0
michael@0 536 .byte 1
michael@0 537 .byte 0
michael@0 538 .byte 1
michael@0 539 .byte 0
michael@0 540 .byte 1
michael@0 541 .byte 0
michael@0 542 .byte 1
michael@0 543 .byte 0
michael@0 544 .byte 1
michael@0 545 .byte 0
michael@0 546 .byte 1
michael@0 547 .byte 0
michael@0 548 .byte 1
michael@0 549 .byte 0
michael@0 550 .byte 1
michael@0 551 .byte 0
michael@0 552 .byte 1
michael@0 553 .byte 0
michael@0 554 .byte 1
michael@0 555 .byte 0
michael@0 556 .byte 1
michael@0 557 .byte 0
michael@0 558 .byte 1
michael@0 559 .byte 0
michael@0 560 .text
michael@0 561 .align 4
michael@0 562 .globl freebl_cpuid
michael@0 563 .type freebl_cpuid, @function
michael@0 564 freebl_cpuid:
michael@0 565 pushl %ebp
michael@0 566 pushl %edi
michael@0 567 pushl %esi
michael@0 568 subl $8, %esp
michael@0 569 movl %edx, %ebp
michael@0 570 /APP
michael@0 571 pushl %ebx
michael@0 572 cpuid
michael@0 573 mov %ebx,%esi
michael@0 574 popl %ebx
michael@0 575
michael@0 576 /NO_APP
michael@0 577 movl %eax, (%ebp)
michael@0 578 movl 24(%esp), %eax
michael@0 579 movl %esi, (%eax)
michael@0 580 movl 28(%esp), %eax
michael@0 581 movl %ecx, (%eax)
michael@0 582 movl 32(%esp), %eax
michael@0 583 movl %edx, (%eax)
michael@0 584 addl $8, %esp
michael@0 585 popl %esi
michael@0 586 popl %edi
michael@0 587 popl %ebp
michael@0 588 ret
michael@0 589 .size freebl_cpuid, .-freebl_cpuid
michael@0 590 .align 4
michael@0 591 .type changeFlag, @function
michael@0 592 changeFlag:
michael@0 593 /APP
michael@0 594 pushfl
michael@0 595 popl %edx
michael@0 596 movl %edx,%ecx
michael@0 597 xorl %eax,%edx
michael@0 598 pushl %edx
michael@0 599 popfl
michael@0 600 pushfl
michael@0 601 popl %edx
michael@0 602 pushl %ecx
michael@0 603 popfl
michael@0 604
michael@0 605 /NO_APP
michael@0 606 xorl %ecx, %edx
michael@0 607 movl %edx, %eax
michael@0 608 ret
michael@0 609 .size changeFlag, .-changeFlag
michael@0 610 .align 4
michael@0 611 .type getIntelCacheEntryLineSize, @function
michael@0 612 getIntelCacheEntryLineSize:
michael@0 613 pushl %edi
michael@0 614 pushl %esi
michael@0 615 pushl %ebx
michael@0 616 call .L17
michael@0 617 .L17:
michael@0 618 popl %ebx
michael@0 619 addl $_GLOBAL_OFFSET_TABLE_+[.-.L17], %ebx
michael@0 620 movzbl CacheMap@GOTOFF(%ebx,%eax,2), %ecx
michael@0 621 movb 1+CacheMap@GOTOFF(%ebx,%eax,2), %al
michael@0 622 testb %al, %al
michael@0 623 movl 16(%esp), %edi
michael@0 624 je .L3
michael@0 625 cmpl $6, %ecx
michael@0 626 je .L6
michael@0 627 cmpl $8, %ecx
michael@0 628 je .L6
michael@0 629 movl (%edx), %esi
michael@0 630 cmpl $1, %esi
michael@0 631 jg .L15
michael@0 632 .L8:
michael@0 633 cmpl $2, %esi
michael@0 634 jle .L3
michael@0 635 cmpl $12, %ecx
michael@0 636 je .L12
michael@0 637 cmpl $14, %ecx
michael@0 638 je .L12
michael@0 639 .align 4
michael@0 640 .L3:
michael@0 641 popl %ebx
michael@0 642 popl %esi
michael@0 643 popl %edi
michael@0 644 ret
michael@0 645 .align 4
michael@0 646 .L6:
michael@0 647 movzbl %al, %eax
michael@0 648 movl $1, (%edx)
michael@0 649 movl %eax, (%edi)
michael@0 650 .L16:
michael@0 651 popl %ebx
michael@0 652 popl %esi
michael@0 653 popl %edi
michael@0 654 ret
michael@0 655 .align 4
michael@0 656 .L15:
michael@0 657 cmpl $9, %ecx
michael@0 658 je .L9
michael@0 659 cmpl $11, %ecx
michael@0 660 jne .L8
michael@0 661 .L9:
michael@0 662 movzbl %al, %eax
michael@0 663 movl $2, (%edx)
michael@0 664 movl %eax, (%edi)
michael@0 665 jmp .L16
michael@0 666 .L12:
michael@0 667 movzbl %al, %eax
michael@0 668 movl $3, (%edx)
michael@0 669 movl %eax, (%edi)
michael@0 670 jmp .L16
michael@0 671 .size getIntelCacheEntryLineSize, .-getIntelCacheEntryLineSize
michael@0 672 .align 4
michael@0 673 .type getIntelRegisterCacheLineSize, @function
michael@0 674 getIntelRegisterCacheLineSize:
michael@0 675 pushl %ebp
michael@0 676 movl %esp, %ebp
michael@0 677 pushl %edi
michael@0 678 pushl %esi
michael@0 679 pushl %ecx
michael@0 680 movl 8(%ebp), %edi
michael@0 681 movl %eax, %esi
michael@0 682 movl %edx, -12(%ebp)
michael@0 683 shrl $24, %eax
michael@0 684 pushl %edi
michael@0 685 call getIntelCacheEntryLineSize
michael@0 686 movl %esi, %eax
michael@0 687 pushl %edi
michael@0 688 shrl $16, %eax
michael@0 689 movl -12(%ebp), %edx
michael@0 690 andl $255, %eax
michael@0 691 call getIntelCacheEntryLineSize
michael@0 692 pushl %edi
michael@0 693 movl %esi, %edx
michael@0 694 movzbl %dh, %eax
michael@0 695 movl -12(%ebp), %edx
michael@0 696 call getIntelCacheEntryLineSize
michael@0 697 andl $255, %esi
michael@0 698 movl %edi, 8(%ebp)
michael@0 699 movl -12(%ebp), %edx
michael@0 700 addl $12, %esp
michael@0 701 leal -8(%ebp), %esp
michael@0 702 movl %esi, %eax
michael@0 703 popl %esi
michael@0 704 popl %edi
michael@0 705 leave
michael@0 706 jmp getIntelCacheEntryLineSize
michael@0 707 .size getIntelRegisterCacheLineSize, .-getIntelRegisterCacheLineSize
michael@0 708 .align 4
michael@0 709 .globl s_mpi_getProcessorLineSize
michael@0 710 .type s_mpi_getProcessorLineSize, @function
michael@0 711 s_mpi_getProcessorLineSize:
michael@0 712 pushl %ebp
michael@0 713 movl %esp, %ebp
michael@0 714 pushl %edi
michael@0 715 pushl %esi
michael@0 716 pushl %ebx
michael@0 717 subl $188, %esp
michael@0 718 call .L52
michael@0 719 .L52:
michael@0 720 popl %ebx
michael@0 721 addl $_GLOBAL_OFFSET_TABLE_+[.-.L52], %ebx
michael@0 722 movl $9, -168(%ebp)
michael@0 723 movl $262144, %eax
michael@0 724 call changeFlag
michael@0 725 xorl %edx, %edx
michael@0 726 testl %eax, %eax
michael@0 727 jne .L50
michael@0 728 .L19:
michael@0 729 leal -12(%ebp), %esp
michael@0 730 popl %ebx
michael@0 731 popl %esi
michael@0 732 movl %edx, %eax
michael@0 733 popl %edi
michael@0 734 leave
michael@0 735 ret
michael@0 736 .align 4
michael@0 737 .L50:
michael@0 738 movl $2097152, %eax
michael@0 739 call changeFlag
michael@0 740 testl %eax, %eax
michael@0 741 movl $32, %edx
michael@0 742 je .L19
michael@0 743 leal -108(%ebp), %eax
michael@0 744 pushl %eax
michael@0 745 leal -112(%ebp), %eax
michael@0 746 pushl %eax
michael@0 747 leal -116(%ebp), %eax
michael@0 748 pushl %eax
michael@0 749 leal -120(%ebp), %edx
michael@0 750 xorl %eax, %eax
michael@0 751 call freebl_cpuid
michael@0 752 movl -120(%ebp), %eax
michael@0 753 movl %eax, -164(%ebp)
michael@0 754 movl -116(%ebp), %eax
michael@0 755 movl %eax, -104(%ebp)
michael@0 756 movl -108(%ebp), %eax
michael@0 757 movl %eax, -100(%ebp)
michael@0 758 movl -112(%ebp), %eax
michael@0 759 movl %eax, -96(%ebp)
michael@0 760 movb $0, -92(%ebp)
michael@0 761 xorl %esi, %esi
michael@0 762 addl $12, %esp
michael@0 763 leal -104(%ebp), %edi
michael@0 764 .align 4
michael@0 765 .L28:
michael@0 766 subl $8, %esp
michael@0 767 pushl %edi
michael@0 768 pushl manMap@GOTOFF(%ebx,%esi,4)
michael@0 769 call strcmp@PLT
michael@0 770 addl $16, %esp
michael@0 771 testl %eax, %eax
michael@0 772 jne .L26
michael@0 773 movl %esi, -168(%ebp)
michael@0 774 .L26:
michael@0 775 incl %esi
michael@0 776 cmpl $9, %esi
michael@0 777 jle .L28
michael@0 778 movl -168(%ebp), %eax
michael@0 779 testl %eax, %eax
michael@0 780 jne .L29
michael@0 781 xorl %eax, %eax
michael@0 782 cmpl $1, -164(%ebp)
michael@0 783 movl $4, -144(%ebp)
michael@0 784 movl $0, -140(%ebp)
michael@0 785 jle .L41
michael@0 786 leal -124(%ebp), %edx
michael@0 787 movl %edx, -188(%ebp)
michael@0 788 leal -128(%ebp), %eax
michael@0 789 pushl %edx
michael@0 790 movl %eax, -184(%ebp)
michael@0 791 leal -132(%ebp), %edx
michael@0 792 pushl %eax
michael@0 793 movl %edx, -180(%ebp)
michael@0 794 movl $2, %eax
michael@0 795 pushl %edx
michael@0 796 leal -136(%ebp), %edx
michael@0 797 call freebl_cpuid
michael@0 798 movl -136(%ebp), %eax
michael@0 799 movl %eax, %edi
michael@0 800 andl $15, %edi
michael@0 801 xorl %esi, %esi
michael@0 802 addl $12, %esp
michael@0 803 leal -140(%ebp), %edx
michael@0 804 cmpl %edi, %esi
michael@0 805 movl %edx, -176(%ebp)
michael@0 806 jl .L40
michael@0 807 jmp .L48
michael@0 808 .align 4
michael@0 809 .L49:
michael@0 810 movl -136(%ebp), %eax
michael@0 811 .L40:
michael@0 812 testl %eax, %eax
michael@0 813 js .L35
michael@0 814 xorb %al, %al
michael@0 815 pushl -176(%ebp)
michael@0 816 leal -144(%ebp), %edx
michael@0 817 call getIntelRegisterCacheLineSize
michael@0 818 popl %eax
michael@0 819 .L35:
michael@0 820 movl -132(%ebp), %eax
michael@0 821 testl %eax, %eax
michael@0 822 js .L36
michael@0 823 pushl -176(%ebp)
michael@0 824 leal -144(%ebp), %edx
michael@0 825 call getIntelRegisterCacheLineSize
michael@0 826 popl %eax
michael@0 827 .L36:
michael@0 828 movl -128(%ebp), %eax
michael@0 829 testl %eax, %eax
michael@0 830 js .L37
michael@0 831 pushl -176(%ebp)
michael@0 832 leal -144(%ebp), %edx
michael@0 833 call getIntelRegisterCacheLineSize
michael@0 834 popl %eax
michael@0 835 .L37:
michael@0 836 movl -124(%ebp), %eax
michael@0 837 testl %eax, %eax
michael@0 838 js .L38
michael@0 839 pushl -176(%ebp)
michael@0 840 leal -144(%ebp), %edx
michael@0 841 call getIntelRegisterCacheLineSize
michael@0 842 popl %eax
michael@0 843 .L38:
michael@0 844 incl %esi
michael@0 845 cmpl %edi, %esi
michael@0 846 je .L34
michael@0 847 pushl -188(%ebp)
michael@0 848 pushl -184(%ebp)
michael@0 849 pushl -180(%ebp)
michael@0 850 leal -136(%ebp), %edx
michael@0 851 movl $2, %eax
michael@0 852 call freebl_cpuid
michael@0 853 addl $12, %esp
michael@0 854 .L34:
michael@0 855 cmpl %edi, %esi
michael@0 856 jl .L49
michael@0 857 .L48:
michael@0 858 movl -140(%ebp), %eax
michael@0 859 .L41:
michael@0 860 testl %eax, %eax
michael@0 861 jne .L44
michael@0 862 movb $32, %al
michael@0 863 .L44:
michael@0 864 leal -12(%ebp), %esp
michael@0 865 popl %ebx
michael@0 866 popl %esi
michael@0 867 movl %eax, %edx
michael@0 868 movl %edx, %eax
michael@0 869 popl %edi
michael@0 870 leave
michael@0 871 ret
michael@0 872 .L29:
michael@0 873 leal -148(%ebp), %eax
michael@0 874 movl %eax, -192(%ebp)
michael@0 875 movl $0, -172(%ebp)
michael@0 876 leal -152(%ebp), %edi
michael@0 877 pushl %eax
michael@0 878 pushl %edi
michael@0 879 leal -156(%ebp), %esi
michael@0 880 pushl %esi
michael@0 881 leal -160(%ebp), %edx
michael@0 882 movl $-2147483648, %eax
michael@0 883 call freebl_cpuid
michael@0 884 addl $12, %esp
michael@0 885 cmpl $-2147483644, -160(%ebp)
michael@0 886 ja .L51
michael@0 887 .L42:
michael@0 888 movl -172(%ebp), %eax
michael@0 889 jmp .L41
michael@0 890 .L51:
michael@0 891 pushl -192(%ebp)
michael@0 892 pushl %edi
michael@0 893 pushl %esi
michael@0 894 leal -160(%ebp), %edx
michael@0 895 movl $-2147483643, %eax
michael@0 896 call freebl_cpuid
michael@0 897 movzbl -152(%ebp), %edx
michael@0 898 addl $12, %esp
michael@0 899 movl %edx, -172(%ebp)
michael@0 900 jmp .L42
michael@0 901 .size s_mpi_getProcessorLineSize, .-s_mpi_getProcessorLineSize

mercurial