- Change function parameter order in AllocVecAligned and armed the memory bashing...
commitbe9f18000e1c9efbb8002a91fa3be4072c17e7c8
authorDizzyOfCRN <DizzyOfCRN@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 5 Jan 2013 10:18:51 +0000 (5 10:18 +0000)
committerDizzyOfCRN <DizzyOfCRN@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 5 Jan 2013 10:18:51 +0000 (5 10:18 +0000)
treeb666931edacaab3fd6f40dd1a3abd10c6a12353c
parent70be38c1f4eea06c2d0cf3bb4ec1a8430f27a45b
- Change function parameter order in AllocVecAligned and armed the memory bashing function. Not tested extensively.

- Added some sanity checks in AllocVecAligned:
* If boundary used (!=0) then boundary has to be >= Bytesize (original request)
* Bytesize has to be > 0
* AlignmentMin = multiple of memchunk or lower than memchunk in which case assume memchunk alignment. Any other will force fail.

- Recoded to get rid of some AROS_ROUNDUP2 macros in a loop and subtituted with simpler methods.

- Made XHCI code compilable again, but will halt all execution while booting as there are test calls to AllocVecAligned(byteSize, alignmentMin, boundary).

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@46214 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
rom/usb/pciusb/allocvecaligned.c
rom/usb/pciusb/pciusb.h
rom/usb/pciusb/uhwcmd.h
rom/usb/pciusb/xhcichip.c