<commit_before>.code32

.global cpu_getcr0
cpu_getcr0:
    movl %cr0, %eax
    ret

.global cpu_getcr2
cpu_getcr2:
    movl %cr2, %eax
    ret

.global cpu_getcr3
cpu_getcr3:
    movl %cr3, %eax
    ret

.global cpu_getcr4
cpu_getcr4:
    movl %cr4, %eax
    ret

.global cpu_geteflags
cpu_geteflags:
    pushf
    popl %eax
    ret

.global cpu_getgdt
cpu_getgdt:
    sgdt (%eax)
    ret

.global cpu_getidt
cpu_getidt:
    sidt (%eax)
    ret

.global cpu_setcr0
cpu_setcr0:
    movl 4(%esp), %eax
    movl %eax, %cr0
    ret

.global cpu_setcr2
cpu_setcr2:
    movl 4(%esp), %eax
    movl %eax, %cr2
    ret

.global cpu_setcr3
cpu_setcr3:
    movl 4(%esp), %eax
    movl %eax, %cr3
    ret

.global cpu_setcr4
cpu_setcr4:
    movl 4(%esp), %eax
    movl %eax, %cr4
    ret

.global cpu_seteflags
cpu_seteflags:
    movl 4(%esp), %eax
    pushl %eax
    popf
    ret

.global cpu_setgdt
cpu_setgdt:
    movl 4(%esp), %eax
    lgdt (%eax)
    movw 12(%esp), %ax
    movw %ax, %ds
    movw %ax, %es
    movw %ax, %fs
    movw %ax, %gs
    movw %ax, %ss
    pushl 8(%esp)
    pushl (%esp)
    retf

.global cpu_setidt
cpu_setidt:
    movl 4(%esp), %eax
    lidt (%eax)
    ret

.global cpu_settss
cpu_settss:
    movw 4(%esp), %ax
    ltrw %ax
    ret

<commit_msg>renamed retf to lret<commit_after>.code32

.global cpu_getcr0
cpu_getcr0:
    movl %cr0, %eax
    ret

.global cpu_getcr2
cpu_getcr2:
    movl %cr2, %eax
    ret

.global cpu_getcr3
cpu_getcr3:
    movl %cr3, %eax
    ret

.global cpu_getcr4
cpu_getcr4:
    movl %cr4, %eax
    ret

.global cpu_geteflags
cpu_geteflags:
    pushf
    popl %eax
    ret

.global cpu_getgdt
cpu_getgdt:
    sgdt (%eax)
    ret

.global cpu_getidt
cpu_getidt:
    sidt (%eax)
    ret

.global cpu_setcr0
cpu_setcr0:
    movl 4(%esp), %eax
    movl %eax, %cr0
    ret

.global cpu_setcr2
cpu_setcr2:
    movl 4(%esp), %eax
    movl %eax, %cr2
    ret

.global cpu_setcr3
cpu_setcr3:
    movl 4(%esp), %eax
    movl %eax, %cr3
    ret

.global cpu_setcr4
cpu_setcr4:
    movl 4(%esp), %eax
    movl %eax, %cr4
    ret

.global cpu_seteflags
cpu_seteflags:
    movl 4(%esp), %eax
    pushl %eax
    popf
    ret

.global cpu_setgdt
cpu_setgdt:
    movl 4(%esp), %eax
    lgdt (%eax)
    movw 12(%esp), %ax
    movw %ax, %ds
    movw %ax, %es
    movw %ax, %fs
    movw %ax, %gs
    movw %ax, %ss
    pushl 8(%esp)
    pushl (%esp)
    lret

.global cpu_setidt
cpu_setidt:
    movl 4(%esp), %eax
    lidt (%eax)
    ret

.global cpu_settss
cpu_settss:
    movw 4(%esp), %ax
    ltrw %ax
    ret


{'fraction_non_alphanumeric': 0.10957824201813166, 'fraction_numerical': 0.029168309026409146, 'mean_word_length': 2.4021447721179623, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1832704', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1177, 'n_words': 297}