Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nanoBooter flag to ping flags #1766

Merged
merged 1 commit into from
Nov 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/CLR/Debugger/Debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,11 @@ bool CLR_DBG_Debugger::Monitor_Ping(WP_Message *msg)
#endif

// capability flags
if (::Target_HasNanoBooter())
{
cmdReply.Flags |= Monitor_Ping_c_HasNanoBooter;
}

if (::Target_HasProprietaryBooter())
{
cmdReply.Flags |= Monitor_Ping_c_HasProprietaryBooter;
Expand Down
3 changes: 3 additions & 0 deletions src/CLR/Include/WireProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ typedef enum Monitor_Ping_Source_Flags
// This flag indicates that the device requires that the configuration block to be erased before updating it.
Monitor_Ping_c_ConfigBlockRequiresErase = 0x00040000,

// This flag indicates that the device has nanoBooter.
Monitor_Ping_c_HasNanoBooter = 0x00080000,

}Monitor_Ping_Source_Flags;

// structure to hold nanoFramework release information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ int Monitor_Ping(WP_Message *message)
cmdReply.Flags |= Monitor_Ping_c_PacketSize_1024;
#endif

if (Target_HasNanoBooter())
{
cmdReply.Flags |= Monitor_Ping_c_HasNanoBooter;
}

if (Target_HasProprietaryBooter())
{
cmdReply.Flags |= Monitor_Ping_c_HasProprietaryBooter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ int Monitor_Ping(WP_Message *message)
#elif (WP_PACKET_SIZE == 1024)
cmdReply.Flags |= Monitor_Ping_c_PacketSize_1024;
#endif
if (Target_HasNanoBooter())
{
cmdReply.Flags |= Monitor_Ping_c_HasNanoBooter;
}

if (Target_HasProprietaryBooter())
{
Expand Down