mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
qurt px4_layer initialize shared memory (#6453)
This commit is contained in:
@@ -136,7 +136,7 @@ void init_shared_memory(void)
|
||||
}
|
||||
|
||||
//virt_addr = map_memory(MAP_ADDRESS);
|
||||
map_base = malloc(0x4000); //16KB
|
||||
map_base = calloc(MAP_SIZE, 1); //16KB
|
||||
|
||||
if (map_base == NULL) {
|
||||
PX4_INFO("adsp memory malloc failed\n");
|
||||
|
||||
Reference in New Issue
Block a user