reformatted, added diagnostics, defined swapped access

This commit is contained in:
Markus Fröschle
2013-11-03 18:07:54 +00:00
parent 70d2a312eb
commit a2f88ebc77
3 changed files with 133 additions and 120 deletions

View File

@@ -31,9 +31,9 @@
#define USB_MEM_DEBUG
#ifdef USB_MEM_DEBUG
#define USB_MEM_PRINTF(fmt,args...) xprintf(fmt ,##args)
#define USB_MEM_PRINTF(fmt, args...) xprintf(fmt, ##args)
#else
#define USB_MEM_PRINTF(fmt,args...)
#define USB_MEM_PRINTF(fmt, args...)
#endif
extern int asm_set_ipl(int level);
@@ -93,7 +93,7 @@ static void xmfreblk(void *m)
static MD *ffit(long amount, MPB *mp)
{
MD *p,*q,*p1; /* free list is composed of MD's */
MD *p, *q, *p1; /* free list is composed of MD's */
int maxflg;
long maxval;
if (amount != -1)
@@ -248,7 +248,6 @@ int usb_mem_init(void)
#ifdef USE_RADEON_MEMORY
usb_buffer = (void *)offscren_reserved();
if (usb_buffer == NULL)
#else
#endif
memset(usb_buffer, 0, USB_BUFFER_SIZE);