<commit_before>#include "tss.h"

void tss_init(volatile struct TSS *tss) {
	for(unsigned int i = 0; i < sizeof(struct TSS); ++i) {
		((unsigned char *)tss)[i] = 0;
	}
	tss->ss0 = 0x8;
	tss->esp0 = 0x70000;
	__asm__ __volatile__ ("ltr %%ax" : : "a" (0x2B)); /* 0x28 (5th segment) OR'd with 0x3 (ring 3) */
}<commit_msg>Correctly set TSS data selector<commit_after>#include "tss.h"

void tss_init(volatile struct TSS *tss) {
	for(unsigned int i = 0; i < sizeof(struct TSS); ++i) {
		((unsigned char *)tss)[i] = 0;
	}
	tss->ss0 = 0x10;
	tss->esp0 = 0x70000;
	__asm__ __volatile__ ("ltr %%ax" : : "a" (0x2B)); /* 0x28 (5th segment) OR'd with 0x3 (ring 3) */
}
{'fraction_non_alphanumeric': 0.19236641221374046, 'fraction_numerical': 0.06564885496183206, 'mean_word_length': 4.0852713178294575, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1471098', 'n_tokens_mistral': 329, 'n_tokens_neox': 293, 'n_words': 78}