Supprimer un message
philfr
Ah tous ces gens qui font des trucs utiles ...
Une partie de mon dernier projet:
void k_init_taskm() {
k_memset(&system_tss, 0, sizeof(struct tss_t));
k_memset(&user_tss, 0, sizeof(struct tss_t));
level0_stack = k_allocate_page();
level0_stack += 0x1000;
level3_stack = k_allocate_page();
level3_stack += 0x1000;
system_tss.tss_cr3 = 0x1000;
system_tss.tss_ss = 0x10;
system_tss.tss_esp0 = level0_stack;
user_tss.tss_cr3 = 0x10000;
user_tss.tss_cs = 0x1b;
user_tss.tss_ds = 0x23;
user_tss.tss_eax = 0x0;
user_tss.tss_ebp = 0x0;
...
Une partie de mon dernier projet:
void k_init_taskm() {
k_memset(&system_tss, 0, sizeof(struct tss_t));
k_memset(&user_tss, 0, sizeof(struct tss_t));
level0_stack = k_allocate_page();
level0_stack += 0x1000;
level3_stack = k_allocate_page();
level3_stack += 0x1000;
system_tss.tss_cr3 = 0x1000;
system_tss.tss_ss = 0x10;
system_tss.tss_esp0 = level0_stack;
user_tss.tss_cr3 = 0x10000;
user_tss.tss_cs = 0x1b;
user_tss.tss_ds = 0x23;
user_tss.tss_eax = 0x0;
user_tss.tss_ebp = 0x0;
...
Tu fais de l'embarqué sur intel ?