NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
server.cc File Reference
#include <service/string.h>
#include <service/logging.h>
#include <nul/service_config.h>
#include <nul/baseprogram.h>
#include <service/endian.h>
#include "server.h"

Macros

#define GET_LOCAL_ID
#define HIP_COUNT(X, XNUM, Y)

Functions

const char * op2string (unsigned op)

Macro Definition Documentation

#define GET_LOCAL_ID
Value:
uint32_t * _id = reinterpret_cast<uint32_t *>(&_in->opspecific); \
uint32_t localid = ntoh32(*_id) - 1; \
if (localid > sizeof(server_data)/sizeof(server_data[0]) || server_data[localid].id == 0) break
#define HIP_COUNT (   X,
  XNUM,
 
)
Value:
mask = 0, num = 0; \
cpu = Global::hip.cpus(); \
for (i=0; i < Global::hip.cpu_desc_count(); i++) { \
if (XNUM == cpu->X) \
if (!(mask & (1 << cpu->Y))) { \
mask |= 1 << cpu->Y; \
num ++; \
} \
cpu++; \
} \
Y = num

Function Documentation

const char* op2string ( unsigned  op)