mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2025-02-22 17:21:40 +00:00
fusee: Add more verbose error messages
boot: Fix license text
This commit is contained in:
parent
ca2c171482
commit
2c3111f9c9
12 changed files with 45 additions and 63 deletions
|
@ -668,7 +668,7 @@ static int sdmmc_int_clk_enable(sdmmc_t *sdmmc)
|
||||||
|
|
||||||
/* Clock failed to stabilize. */
|
/* Clock failed to stabilize. */
|
||||||
if (is_timeout) {
|
if (is_timeout) {
|
||||||
sdmmc_error(sdmmc, "clock never stabilized!");
|
sdmmc_error(sdmmc, "Clock never stabilized!");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1353,7 +1353,10 @@ static int sdmmc_dma_init(sdmmc_t *sdmmc, sdmmc_request_t *req)
|
||||||
{
|
{
|
||||||
/* Invalid block count or size. */
|
/* Invalid block count or size. */
|
||||||
if (!req->blksz || !req->num_blocks)
|
if (!req->blksz || !req->num_blocks)
|
||||||
|
{
|
||||||
|
sdmmc_error(sdmmc, "Empty DMA request!");
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t blkcnt = req->num_blocks;
|
uint32_t blkcnt = req->num_blocks;
|
||||||
|
|
||||||
|
@ -1366,7 +1369,10 @@ static int sdmmc_dma_init(sdmmc_t *sdmmc, sdmmc_request_t *req)
|
||||||
|
|
||||||
/* DMA buffer address must be aligned to 4 bytes. */
|
/* DMA buffer address must be aligned to 4 bytes. */
|
||||||
if ((4 - (dma_base_addr & 0x03)) & 0x03)
|
if ((4 - (dma_base_addr & 0x03)) & 0x03)
|
||||||
|
{
|
||||||
|
sdmmc_error(sdmmc, "Invalid DMA request data buffer: 0x%08X", dma_base_addr);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Write our address to the registers. */
|
/* Write our address to the registers. */
|
||||||
if (sdmmc->use_adma)
|
if (sdmmc->use_adma)
|
||||||
|
|
|
@ -668,7 +668,7 @@ static int sdmmc_int_clk_enable(sdmmc_t *sdmmc)
|
||||||
|
|
||||||
/* Clock failed to stabilize. */
|
/* Clock failed to stabilize. */
|
||||||
if (is_timeout) {
|
if (is_timeout) {
|
||||||
sdmmc_error(sdmmc, "clock never stabilized!");
|
sdmmc_error(sdmmc, "Clock never stabilized!");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1353,7 +1353,10 @@ static int sdmmc_dma_init(sdmmc_t *sdmmc, sdmmc_request_t *req)
|
||||||
{
|
{
|
||||||
/* Invalid block count or size. */
|
/* Invalid block count or size. */
|
||||||
if (!req->blksz || !req->num_blocks)
|
if (!req->blksz || !req->num_blocks)
|
||||||
|
{
|
||||||
|
sdmmc_error(sdmmc, "Empty DMA request!");
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t blkcnt = req->num_blocks;
|
uint32_t blkcnt = req->num_blocks;
|
||||||
|
|
||||||
|
@ -1366,7 +1369,10 @@ static int sdmmc_dma_init(sdmmc_t *sdmmc, sdmmc_request_t *req)
|
||||||
|
|
||||||
/* DMA buffer address must be aligned to 4 bytes. */
|
/* DMA buffer address must be aligned to 4 bytes. */
|
||||||
if ((4 - (dma_base_addr & 0x03)) & 0x03)
|
if ((4 - (dma_base_addr & 0x03)) & 0x03)
|
||||||
|
{
|
||||||
|
sdmmc_error(sdmmc, "Invalid DMA request data buffer: 0x%08X", dma_base_addr);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Write our address to the registers. */
|
/* Write our address to the registers. */
|
||||||
if (sdmmc->use_adma)
|
if (sdmmc->use_adma)
|
||||||
|
|
|
@ -668,7 +668,7 @@ static int sdmmc_int_clk_enable(sdmmc_t *sdmmc)
|
||||||
|
|
||||||
/* Clock failed to stabilize. */
|
/* Clock failed to stabilize. */
|
||||||
if (is_timeout) {
|
if (is_timeout) {
|
||||||
sdmmc_error(sdmmc, "clock never stabilized!");
|
sdmmc_error(sdmmc, "Clock never stabilized!");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1353,7 +1353,10 @@ static int sdmmc_dma_init(sdmmc_t *sdmmc, sdmmc_request_t *req)
|
||||||
{
|
{
|
||||||
/* Invalid block count or size. */
|
/* Invalid block count or size. */
|
||||||
if (!req->blksz || !req->num_blocks)
|
if (!req->blksz || !req->num_blocks)
|
||||||
|
{
|
||||||
|
sdmmc_error(sdmmc, "Empty DMA request!");
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t blkcnt = req->num_blocks;
|
uint32_t blkcnt = req->num_blocks;
|
||||||
|
|
||||||
|
@ -1366,7 +1369,10 @@ static int sdmmc_dma_init(sdmmc_t *sdmmc, sdmmc_request_t *req)
|
||||||
|
|
||||||
/* DMA buffer address must be aligned to 4 bytes. */
|
/* DMA buffer address must be aligned to 4 bytes. */
|
||||||
if ((4 - (dma_base_addr & 0x03)) & 0x03)
|
if ((4 - (dma_base_addr & 0x03)) & 0x03)
|
||||||
|
{
|
||||||
|
sdmmc_error(sdmmc, "Invalid DMA request data buffer: 0x%08X", dma_base_addr);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Write our address to the registers. */
|
/* Write our address to the registers. */
|
||||||
if (sdmmc->use_adma)
|
if (sdmmc->use_adma)
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019 Atmosphère-NX
|
* Copyright (c) 2018-2019 Atmosphère-NX
|
||||||
*
|
*
|
||||||
* This program is free software{
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
||||||
} you can redistribute it and/or modify it
|
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
* version 2, as published by the Free Software Foundation.
|
* version 2, as published by the Free Software Foundation.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||||
* ANY WARRANTY{
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
|
||||||
} without even the implied warranty of MERCHANTABILITY or
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||||
* more details.
|
* more details.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019 Atmosphère-NX
|
* Copyright (c) 2018-2019 Atmosphère-NX
|
||||||
*
|
*
|
||||||
* This program is free software{
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
||||||
} you can redistribute it and/or modify it
|
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
* version 2, as published by the Free Software Foundation.
|
* version 2, as published by the Free Software Foundation.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||||
* ANY WARRANTY{
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
|
||||||
} without even the implied warranty of MERCHANTABILITY or
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||||
* more details.
|
* more details.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019 Atmosphère-NX
|
* Copyright (c) 2018-2019 Atmosphère-NX
|
||||||
*
|
*
|
||||||
* This program is free software{
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
||||||
} you can redistribute it and/or modify it
|
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
* version 2, as published by the Free Software Foundation.
|
* version 2, as published by the Free Software Foundation.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||||
* ANY WARRANTY{
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
|
||||||
} without even the implied warranty of MERCHANTABILITY or
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||||
* more details.
|
* more details.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019 Atmosphère-NX
|
* Copyright (c) 2018-2019 Atmosphère-NX
|
||||||
*
|
*
|
||||||
* This program is free software{
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
||||||
} you can redistribute it and/or modify it
|
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
* version 2, as published by the Free Software Foundation.
|
* version 2, as published by the Free Software Foundation.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||||
* ANY WARRANTY{
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
|
||||||
} without even the implied warranty of MERCHANTABILITY or
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||||
* more details.
|
* more details.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019 Atmosphère-NX
|
* Copyright (c) 2018-2019 Atmosphère-NX
|
||||||
*
|
*
|
||||||
* This program is free software{
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
||||||
} you can redistribute it and/or modify it
|
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
* version 2, as published by the Free Software Foundation.
|
* version 2, as published by the Free Software Foundation.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||||
* ANY WARRANTY{
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
|
||||||
} without even the implied warranty of MERCHANTABILITY or
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||||
* more details.
|
* more details.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019 Atmosphère-NX
|
* Copyright (c) 2018-2019 Atmosphère-NX
|
||||||
*
|
*
|
||||||
* This program is free software{
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
||||||
} you can redistribute it and/or modify it
|
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
* version 2, as published by the Free Software Foundation.
|
* version 2, as published by the Free Software Foundation.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||||
* ANY WARRANTY{
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
|
||||||
} without even the implied warranty of MERCHANTABILITY or
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||||
* more details.
|
* more details.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019 Atmosphère-NX
|
* Copyright (c) 2018-2019 Atmosphère-NX
|
||||||
*
|
*
|
||||||
* This program is free software{
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
||||||
} you can redistribute it and/or modify it
|
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
* version 2, as published by the Free Software Foundation.
|
* version 2, as published by the Free Software Foundation.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||||
* ANY WARRANTY{
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
|
||||||
} without even the implied warranty of MERCHANTABILITY or
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||||
* more details.
|
* more details.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019 Atmosphère-NX
|
* Copyright (c) 2018-2019 Atmosphère-NX
|
||||||
*
|
*
|
||||||
* This program is free software{
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
||||||
} you can redistribute it and/or modify it
|
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
* version 2, as published by the Free Software Foundation.
|
* version 2, as published by the Free Software Foundation.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||||
* ANY WARRANTY{
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
|
||||||
} without even the implied warranty of MERCHANTABILITY or
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||||
* more details.
|
* more details.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,16 +1,12 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2019 Atmosphère-NX
|
* Copyright (c) 2018-2019 Atmosphère-NX
|
||||||
*
|
*
|
||||||
* This program is free software{
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
|
||||||
} you can redistribute it and/or modify it
|
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
* version 2, as published by the Free Software Foundation.
|
* version 2, as published by the Free Software Foundation.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||||
* ANY WARRANTY{
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
|
||||||
} without even the implied warranty of MERCHANTABILITY or
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||||
* more details.
|
* more details.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue