fix:在smp模块中增加mfence

This commit is contained in:
fslongjin
2022-08-01 23:18:54 +08:00
parent 83152c176b
commit 8bd6e981f0
8 changed files with 136 additions and 71 deletions

View File

@ -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
}