Skip to content

Commit

Permalink
Add new appflag
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin.meudic committed Sep 10, 2024
1 parent 3cf221a commit 3fbe861
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
5 changes: 5 additions & 0 deletions Makefile.standard_app
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ ifeq ($(HAVE_APPLICATION_FLAG_LIBRARY), 1)
# APPLICATION_FLAG_LIBRARY 0x800
STANDARD_APP_FLAGS := $(shell echo $$(($(STANDARD_APP_FLAGS) + 0x800)))
endif
ifeq ($(HAVE_APPLICATION_FLAG_NOT_REVIEWED), 1)
# APPLICATION_FLAG_LIBRARY 0x800
STANDARD_APP_FLAGS := $(shell echo $$(($(STANDARD_APP_FLAGS) + 0x20000)))
endif


# Pending review flag
ifeq ($(ENABLE_PENDING_REVIEW_SCREEN), 1)
Expand Down
6 changes: 0 additions & 6 deletions include/appflags.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,9 @@
#define APPLICATION_FLAG_AEM_PIN APPLICATION_FLAG_BOLOS_UX
#endif // BOLOS_DEBUG_UX_PERMISSION_FLAG

#ifdef HAVE_BACKGROUND_IMG
#define APPLICATION_FLAGS_MASK (0x00000000FFFFFFFFULL)
#define APPLICATION_FLAG_NEG_MASK (0xFFFFFFFF00000000ULL)
#define APPLICATION_FLAGS_SHIFT (32)
#else
#define APPLICATION_FLAGS_MASK (0x0000FFFF)
#define APPLICATION_FLAG_NEG_MASK (0xFFFF0000)
#define APPLICATION_FLAGS_SHIFT (16)
#endif // HAVE_BACKGROUND_IMG

#define GET_COMPLEMENTED_APPLICATION_FLAGS(flags) \
(((~((flags) &APPLICATION_FLAGS_MASK) << APPLICATION_FLAGS_SHIFT)) \
Expand Down
5 changes: 0 additions & 5 deletions include/os_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,8 @@ typedef struct application_s {
// into Thumb code
appmain_t main;

#ifdef HAVE_BACKGROUND_IMG
// special flags for this application
uint64_t flags;
#else
// special flags for this application
uint32_t flags;
#endif

// Memory organization: [ code (RX) |alignpage| data (RW) |alignpage| install params (R) ]

Expand Down

0 comments on commit 3fbe861

Please sign in to comment.