enter_smm_get_segment_flags
state->flags = enter_smm_get_segment_flags(&seg);
state->attributes = enter_smm_get_segment_flags(&seg) >> 8;