mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 00:46:31 +00:00
fix:在smp模块中增加mfence
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
#include "slab.h"
|
||||
#include <common/compiler.h>
|
||||
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize("O0")
|
||||
struct slab kmalloc_cache_group[16] =
|
||||
{
|
||||
{32, 0, 0, NULL, NULL, NULL, NULL},
|
||||
@ -706,5 +704,4 @@ unsigned long kfree(void *address)
|
||||
}
|
||||
kBUG("kfree(): Can't free memory.");
|
||||
return ECANNOT_FREE_MEM;
|
||||
}
|
||||
#pragma GCC pop_options
|
||||
}
|
Reference in New Issue
Block a user