<commit_before>#
# code and data for kernel
#
.include "common.inc"

###############################################################
# code for kernel
.code32
.globl _start
_start:
    movl $KERNEL_STACK_INIT_ESP, %esp

    movl $KERNEL_MSG_OFFSET, %esi
    movl $KERNEL_MSG_LENGTH, %ecx
    movl $KERNEL_FIRST_VIDEO_OFFSET, %edx
    call _kernel_echo

    pushw %ds

    # load test data DPL == 0
    movl $TEST_DATA_DPL0_SELECTOR_RPL0, %eax
    movw %ax, %ds
    movl $TEST_DATA_CPL0_DPL0_MSG_OFFSET, %esi
    movl $TEST_DATA_CPL0_DPL0_MSG_LENGTH, %ecx
    movl $CPL0_DPL0_VIDEO_OFFSET, %edx
    call _kernel_echo

    # jmp to user code.
    lcall $USER_TSS_SELECTOR, $0x00

    popw %ds

    movl $KERNEL_MSG2_OFFSET, %esi
    movl $KERNEL_MSG2_LENGTH, %ecx
    movl $KERNEL_SECOND_VIDEO_OFFSET, %edx
    call _kernel_echo

    # load test data DPL == 3
    movl $TEST_DATA_DPL3_SELECTOR_RPL0, %eax
    movw %ax, %ds
    movl $TEST_DATA_CPL0_DPL3_MSG_OFFSET, %esi
    movl $TEST_DATA_CPL0_DPL3_MSG_LENGTH, %ecx
    movl $CPL0_DPL3_VIDEO_OFFSET, %edx
    call _kernel_echo

    #movl $TEST_DATA_DPL0_SELECTOR_RPL3, %eax
    #movw %ax, %ds

    #movl $KERNEL_STACK_SELECTOR_RPL3, %eax
    #movw %ax, %ss<commit_msg>RPL==0 --> RPL==3.<commit_after>#
# code and data for kernel
#
.include "common.inc"

###############################################################
# code for kernel
.code32
.globl _start
_start:
    movl $KERNEL_STACK_INIT_ESP, %esp

    movl $KERNEL_MSG_OFFSET, %esi
    movl $KERNEL_MSG_LENGTH, %ecx
    movl $KERNEL_FIRST_VIDEO_OFFSET, %edx
    call _kernel_echo

    pushw %ds

    # load test data DPL == 0
    movl $TEST_DATA_DPL0_SELECTOR_RPL0, %eax
    movw %ax, %ds
    movl $TEST_DATA_CPL0_DPL0_MSG_OFFSET, %esi
    movl $TEST_DATA_CPL0_DPL0_MSG_LENGTH, %ecx
    movl $CPL0_DPL0_VIDEO_OFFSET, %edx
    call _kernel_echo

    # jmp to user code.
    lcall $USER_TSS_SELECTOR, $0x00

    popw %ds

    movl $KERNEL_MSG2_OFFSET, %esi
    movl $KERNEL_MSG2_LENGTH, %ecx
    movl $KERNEL_SECOND_VIDEO_OFFSET, %edx
    call _kernel_echo

    # load test data DPL == 3
    movl $TEST_DATA_DPL3_SELECTOR_RPL3, %eax
    movw %ax, %ds
    movl $TEST_DATA_CPL0_DPL3_MSG_OFFSET, %esi
    movl $TEST_DATA_CPL0_DPL3_MSG_LENGTH, %ecx
    movl $CPL0_DPL3_VIDEO_OFFSET, %edx
    call _kernel_echo

    #movl $TEST_DATA_DPL0_SELECTOR_RPL3, %eax
    #movw %ax, %ds

    #movl $KERNEL_STACK_SELECTOR_RPL3, %eax
    #movw %ax, %ss
{'fraction_non_alphanumeric': 0.13202132021320212, 'fraction_numerical': 0.023780237802378024, 'mean_word_length': 3.747081712062257, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7243101', 'n_tokens_mistral': 1053, 'n_tokens_neox': 1022, 'n_words': 214}