VirtualBox

Ignore:
Timestamp:
Nov 20, 2015 3:38:25 AM (9 years ago)
Author:
vboxsync
Message:

bs3kit: Worst bugs out of memory routines and related functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-SlabInit.c

    r58777 r58789  
    2929
    3030
    31 BS3_DECL(void) Bs3SlabInit(PBS3SLABCLT pSlabCtl, size_t cbSlabCtl, uint32_t uFlatSlabPtr, uint32_t cbSlab, uint16_t cbChunk)
     31BS3_DECL(void) Bs3SlabInit(PBS3SLABCTL pSlabCtl, size_t cbSlabCtl, uint32_t uFlatSlabPtr, uint32_t cbSlab, uint16_t cbChunk)
    3232{
    3333    uint16_t cBits;
     
    3636    BS3_ASSERT(!(uFlatSlabPtr & (cbChunk - 1)));
    3737
    38     BS3_XPTR_SET_FLAT(BS3SLABCLT, pSlabCtl->pNext, 0);
    39     BS3_XPTR_SET_FLAT(BS3SLABCLT, pSlabCtl->pHead, 0);
    40     BS3_XPTR_SET_FLAT(BS3SLABCLT, pSlabCtl->pbStart, uFlatSlabPtr);
     38    BS3_XPTR_SET_FLAT(BS3SLABCTL, pSlabCtl->pNext, 0);
     39    BS3_XPTR_SET_FLAT(BS3SLABCTL, pSlabCtl->pHead, 0);
     40    BS3_XPTR_SET_FLAT(BS3SLABCTL, pSlabCtl->pbStart, uFlatSlabPtr);
    4141    pSlabCtl->cbChunk           = cbChunk;
    4242    pSlabCtl->cChunkShift       = ASMBitFirstSetU16(cbChunk) - 1;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette