smp.h
ubixos/types.h
src/sys/kernel/smp.c
src/sys/include/ubixos/smp.h
ubixos/types.h
sys/_types.h
src/sys/include/ubixos/smp.h
src/sys/kernel/smp.c
cpuinfo_t
void void apicMagic () apicMagic ap_trampoline_end ap_trampoline_start apicRead apicWrite kprintf memcpy smpInit
void void cpuid (uInt32, uInt32 *) cpuid uInt32 uInt32 * cpuInfo
void void cpuidDetect () cpuidDetect getEflags kpanic setEflags smpInit
uInt8 uInt8 cpuInfo () cpuInfo cpuinfo_t::apic_id cpuinfo_t::apic_ver apicRead cpuinfo_t::brand cpuid cpuinfo cpuInfoLock cpus cpuinfo_t::feature getEflags cpuinfo_t::id cpuinfo_t::ident kpanic cpuinfo_t::max cpuinfo_t::ok setDr3 setEflags cpuinfo_t::signature spinLock spinUnlock x20 x30 c_ap_boot smpInit
uInt32 uInt32 getEflags () getEflags cpuidDetect cpuInfo
void void setEflags (uInt32) setEflags uInt32 cpuidDetect cpuInfo
void void smpInit () smpInit apicMagic cpuidDetect cpuInfo GDT_fixer initSpinLock spinLock spinUnlock

    /*****************************************************************************************
    Copyright(c)2002-2004TheUbixOSProject
    Allrightsreserved.

    Redistributionanduseinsourceandbinaryforms,withorwithoutmodification,are
    permittedprovidedthatthefollowingconditionsaremet:

    Redistributionsofsourcecodemustretaintheabovecopyrightnotice,thislistof
    conditions,thefollowingdisclaimerandthelistofauthors.Redistributionsinbinary
    formmustreproducetheabovecopyrightnotice,thislistofconditions,thefollowing
    disclaimerandthelistofauthorsinthedocumentationand/orothermaterialsprovided
    withthedistribution.NeitherthenameoftheUbixOSProjectnorthenamesofits
    contributorsmaybeusedtoendorseorpromoteproductsderivedfromthissoftware
    withoutspecificpriorwrittenpermission.

    THISSOFTWAREISPROVIDEDBYTHECOPYRIGHTHOLDERSANDCONTRIBUTORS"ASIS"ANDANY
    EXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THEIMPLIEDWARRANTIESOF
    MERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAREDISCLAIMED.INNOEVENTSHALL
    THECOPYRIGHTOWNERORCONTRIBUTORSBELIABLEFORANYDIRECT,INDIRECT,INCIDENTAL,
    SPECIAL,EXEMPLARY,ORCONSEQUENTIALDAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENT
    OFSUBSTITUTEGOODSORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)
    HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICTLIABILITY,OR
    TORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAYOUTOFTHEUSEOFTHIS
    SOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGE.

    $Id: smp_8h.xml 88 2016-01-12 00:11:29Z reddawg $

    *****************************************************************************************/

    #ifndef_SMP_H
    #define_SMP_H

    #include<ubixos/types.h>

    structcpuinfo_t{
    uInt8id;
    uInt8ok;//1=Ok,0=Bad
    uInt8apic_id,apic_ver;
    uInt32signature;//Family,Model,Stepping
    uInt32feature;
    uInt32max;
    charbrand[49];//Brandname
    charident[17];
    };

    voidsmpInit();
    voidcpuidDetect();
    uInt8cpuInfo();
    uInt32getEflags();
    voidsetEflags(uInt32);
    voidcpuid(uInt32,uInt32*);
    voidapicMagic();

    #endif

    /***
    $Log: smp_8h.xml,v $
    Revision 1.6  2006/12/19 14:12:52  reddawg
    rtld-elf almost workign

    Revision1.1.1.12006/06/0112:46:14reddawg
    ubix2

    Revision1.22005/10/1200:13:37reddawg
    Removed

    Revision1.1.1.12005/09/2617:23:56reddawg
    nomessage

    Revision1.22004/05/2115:20:00reddawg
    Cleanedup

    END
    ***/