mirror of
https://github.com/OpenAMP/libmetal.git
synced 2026-09-29 14:24:01 +08:00
lib: a53: remove redundant MB and GB macros
lib/utilities.h provided MB and GB macros so include from there instead of providing the definition again for a53 platforms. Signed-off-by: Ben Levinsky <ben.levinsky@amd.com>
This commit is contained in:
committed by
Arnaud Pouliquen
parent
9fe00e0582
commit
9dd72ddbfd
@@ -12,6 +12,7 @@
|
||||
#include <metal/compiler.h>
|
||||
#include <metal/io.h>
|
||||
#include <metal/sys.h>
|
||||
#include <metal/utilities.h>
|
||||
#include <stdint.h>
|
||||
#include "xil_cache.h"
|
||||
#include "xil_exception.h"
|
||||
@@ -19,9 +20,6 @@
|
||||
#include "xreg_cortexa53.h"
|
||||
#include "xscugic.h"
|
||||
|
||||
#define MB (1024 * 1024UL)
|
||||
#define GB (1024 * 1024 * 1024UL)
|
||||
|
||||
void sys_irq_restore_enable(unsigned int flags)
|
||||
{
|
||||
Xil_ExceptionEnableMask(~flags);
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <metal/compiler.h>
|
||||
#include <metal/io.h>
|
||||
#include <metal/sys.h>
|
||||
#include <metal/utilities.h>
|
||||
#include <stdint.h>
|
||||
#include "xil_cache.h"
|
||||
#include "xil_exception.h"
|
||||
@@ -19,9 +20,6 @@
|
||||
#include "xreg_cortexa53.h"
|
||||
#include "xscugic.h"
|
||||
|
||||
#define MB (1024 * 1024UL)
|
||||
#define GB (1024 * 1024 * 1024UL)
|
||||
|
||||
void sys_irq_restore_enable(unsigned int flags)
|
||||
{
|
||||
Xil_ExceptionEnableMask(~flags);
|
||||
|
||||
Reference in New Issue
Block a user