mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-30 00:08:03 +00:00
Added lock to dumper lib
This commit is contained in:
parent
0ccee08913
commit
534606dca5
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
#include <printf.h>
|
#include <printf.h>
|
||||||
#include <uart.hpp>
|
#include <uart.hpp>
|
||||||
|
#include <lock.hpp>
|
||||||
|
|
||||||
|
NewLock(DumperLock);
|
||||||
|
|
||||||
using namespace UniversalAsynchronousReceiverTransmitter;
|
using namespace UniversalAsynchronousReceiverTransmitter;
|
||||||
|
|
||||||
@ -23,6 +26,7 @@ void WriteRaw(const char *format, ...)
|
|||||||
|
|
||||||
void DumpData(const char *Description, void *Address, unsigned long Length)
|
void DumpData(const char *Description, void *Address, unsigned long Length)
|
||||||
{
|
{
|
||||||
|
SmartLock(DumperLock);
|
||||||
WriteRaw("-------------------------------------------------------------------------\n");
|
WriteRaw("-------------------------------------------------------------------------\n");
|
||||||
unsigned char *AddressChar = (unsigned char *)Address;
|
unsigned char *AddressChar = (unsigned char *)Address;
|
||||||
unsigned char Buffer[17];
|
unsigned char Buffer[17];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user