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