Skip to content

Commit

Permalink
remove 'GS register is not set as expected' warning
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Sep 19, 2024
1 parent dcbdb86 commit d2b93df
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libraries/chain/webassembly/runtimes/eos-vm-oc/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,6 @@ executor::executor(const code_cache_base& cc) {
//if we're the first executor created, go setup the signal handling. For now we'll just leave this attached forever
static executor_signal_init the_executor_signal_init;

uint64_t current_gs;
if(arch_prctl(ARCH_GET_GS, &current_gs) || current_gs)
wlog("x86_64 GS register is not set as expected. EOS VM OC may not run correctly on this platform");

struct stat s;
FC_ASSERT(fstat(cc.fd(), &s) == 0, "executor failed to get code cache size");
code_mapping = (uint8_t*)mmap(nullptr, s.st_size, PROT_EXEC|PROT_READ, MAP_SHARED, cc.fd(), 0);
Expand Down

0 comments on commit d2b93df

Please sign in to comment.