618 // On systems that don't support pause a rep:nop
619 // is executed as a nop. The rep: prefix is ignored.
620 _asm {
621 pause ;
622 };
623 return 1 ;
624 #endif // AMD64
625 }
626
627
628 void os::setup_fpu() {
629 #ifndef AMD64
630 int fpu_cntrl_word = StubRoutines::fpu_cntrl_wrd_std();
631 __asm fldcw fpu_cntrl_word;
632 #endif // !AMD64
633 }
634
635 #ifndef PRODUCT
636 void os::verify_stack_alignment() {
637 #ifdef AMD64
638 assert(((intptr_t)os::current_stack_pointer() & (StackAlignmentInBytes-1)) == 0, "incorrect stack alignment");
639 #endif
640 }
641 #endif
|
618 // On systems that don't support pause a rep:nop
619 // is executed as a nop. The rep: prefix is ignored.
620 _asm {
621 pause ;
622 };
623 return 1 ;
624 #endif // AMD64
625 }
626
627
628 void os::setup_fpu() {
629 #ifndef AMD64
630 int fpu_cntrl_word = StubRoutines::fpu_cntrl_wrd_std();
631 __asm fldcw fpu_cntrl_word;
632 #endif // !AMD64
633 }
634
635 #ifndef PRODUCT
636 void os::verify_stack_alignment() {
637 #ifdef AMD64
638 // The current_stack_pointer() calls generated get_previous_sp stub routine.
639 // Only enable the assert after the routine becomes available.
640 if (StubRoutines::code1() != NULL) {
641 assert(((intptr_t)os::current_stack_pointer() & (StackAlignmentInBytes-1)) == 0, "incorrect stack alignment");
642 }
643 #endif
644 }
645 #endif
|