mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-28 06:04:19 +01:00
fix build issue
This commit is contained in:
parent
287248e77c
commit
577f9aa316
9
nand.c
9
nand.c
@ -79,6 +79,10 @@ void nand_irq(void)
|
|||||||
memcpy32((void*)current_request.args[0], ipc_data, 0x40);
|
memcpy32((void*)current_request.args[0], ipc_data, 0x40);
|
||||||
dc_flushrange((void*)current_request.args[0], 0x40);
|
dc_flushrange((void*)current_request.args[0], 0x40);
|
||||||
break;
|
break;
|
||||||
|
case IPC_NAND_STATUS:
|
||||||
|
memcpy32((void*)current_request.args[0], ipc_data, 0x40);
|
||||||
|
dc_flushrange((void*)current_request.args[0], 0x40);
|
||||||
|
break;
|
||||||
case IPC_NAND_READ:
|
case IPC_NAND_READ:
|
||||||
memcpy32((void*)current_request.args[1], ipc_data, PAGE_SIZE);
|
memcpy32((void*)current_request.args[1], ipc_data, PAGE_SIZE);
|
||||||
memcpy32((void*)current_request.args[2], ipc_ecc, ECC_BUFFER_SIZE);
|
memcpy32((void*)current_request.args[2], ipc_ecc, ECC_BUFFER_SIZE);
|
||||||
@ -282,9 +286,8 @@ void nand_ipc(volatile ipc_request *req)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case IPC_NAND_STATUS:
|
case IPC_NAND_STATUS:
|
||||||
ipc_code = req->code;
|
current_request = *req;
|
||||||
ipc_tag = req->tag;
|
nand_get_status(ipc_data);
|
||||||
nand_get_status((u8 *)req->args[0]);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IPC_NAND_READ:
|
case IPC_NAND_READ:
|
||||||
|
Loading…
Reference in New Issue
Block a user