Changeset 7ce9284 in mainline for src/main/main.c


Ignore:
Timestamp:
2005-08-30T17:41:19Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b45aa23
Parents:
10caad0
Message:

Dump implementation of THREAD, TASK and CPU.
Implement preemption-safe versions of THREAD, TASK and CPU using THE.
Get rid of CPU_ID_ARCH on all architectures.
Get rid of write_dr0() and read_dr0() on IA-32.
Get rid of cpu_private_data and cpu_private_data_t.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/main.c

    r10caad0 r7ce9284  
    180180        t = thread_create(kinit, NULL, k, 0);
    181181        if (!t) panic("can't create kinit thread\n");
    182 
    183182        thread_ready(t);
    184183
     
    211210        config.cpu_active++;
    212211
     212        /*
     213         * The THE structure is well defined because ctx.sp is used as stack.
     214         */
     215        the_initialize(THE);
     216
    213217        arch_pre_mm_init();
    214218        frame_init();
     
    222226        l_apic_debug();
    223227
     228        the_copy(THE, (the_t *) CPU->stack);
    224229
    225230        /*
Note: See TracChangeset for help on using the changeset viewer.