~vojtech-horky/helenos/helenos-qemu

« back to all changes in this revision

Viewing changes to kernel/arch/amd64/src/delay.S

  • Committer: Vojtech Horky
  • Date: 2017-02-13 11:51:33 UTC
  • mfrom: (2103.1.479 HelenOS.clean)
  • Revision ID: vojtechhorky@users.sourceforge.net-20170213115133-j4tgzq0p3xmioj8c
MergeĀ mainlineĀ changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
# Micro second delay loop functions.
31
31
#
32
32
 
 
33
#include <abi/asmtool.h>
 
34
 
33
35
.text
34
36
 
35
 
.global asm_delay_loop
36
 
.global asm_fake_loop
37
 
 
38
 
asm_delay_loop:
 
37
FUNCTION_BEGIN(asm_delay_loop)
39
38
        0:
40
39
                dec %rdi
41
40
                jnz 0b
42
41
        
43
42
        ret
 
43
FUNCTION_END(asm_delay_loop)
44
44
 
45
 
asm_fake_loop:
 
45
FUNCTION_BEGIN(asm_fake_loop)
46
46
        0:
47
47
                dec %rdi
48
48
                jz 0b
49
49
        
50
50
        ret
 
51
FUNCTION_END(asm_fake_loop)
 
52