Skip to content

Commit

Permalink
[icalls] Multiple fixes to get_bundled_machine_config.
Browse files Browse the repository at this point in the history
Enviroment::get_bundled_machine_config icall should be ves_icall_System_Environment_get_bundled_machine_config.

Mark all icalls doing get_bundled_machine_config as ICALL_EXPORT so maccore can link them in/out.
  • Loading branch information
kumpera committed Oct 12, 2016
1 parent b57f33b commit 1c7fa71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mono/metadata/icall-def.h
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ ICALL(ENV_13, "get_Platform", ves_icall_System_Environment_get_Platform)
ICALL(ENV_14, "get_ProcessorCount", mono_cpu_count)
ICALL(ENV_15, "get_TickCount", ves_icall_System_Environment_get_TickCount)
ICALL(ENV_16, "get_UserName", ves_icall_System_Environment_get_UserName)
HANDLES(ICALL(ENV_16b, "get_bundled_machine_config", get_bundled_machine_config))
HANDLES(ICALL(ENV_16b, "get_bundled_machine_config", ves_icall_System_Environment_get_bundled_machine_config))
ICALL(ENV_16m, "internalBroadcastSettingChange", ves_icall_System_Environment_BroadcastSettingChange)
HANDLES(ICALL(ENV_17, "internalGetEnvironmentVariable_native", ves_icall_System_Environment_GetEnvironmentVariable_native))
HANDLES(ICALL(ENV_18, "internalGetGacPath", ves_icall_System_Environment_GetGacPath))
Expand Down
11 changes: 9 additions & 2 deletions mono/metadata/icall.c
Original file line number Diff line number Diff line change
Expand Up @@ -7280,13 +7280,20 @@ get_bundled_machine_config (MonoError *error)
return mono_string_new_handle (mono_domain_get (), machine_config, error);
}

static MonoStringHandle
ICALL_EXPORT MonoStringHandle
ves_icall_System_Environment_get_bundled_machine_config (MonoError *error)
{
return get_bundled_machine_config (error);
}


ICALL_EXPORT MonoStringHandle
ves_icall_System_Configuration_DefaultConfig_get_bundled_machine_config (MonoError *error)
{
return get_bundled_machine_config (error);
}

static MonoStringHandle
ICALL_EXPORT MonoStringHandle
ves_icall_System_Configuration_InternalConfigurationHost_get_bundled_machine_config (MonoError *error)
{
return get_bundled_machine_config (error);
Expand Down

0 comments on commit 1c7fa71

Please sign in to comment.