diff options
Diffstat (limited to 'src/arch/alpha')
-rw-r--r-- | src/arch/alpha/linux/system.cc | 4 | ||||
-rw-r--r-- | src/arch/alpha/process.cc | 2 | ||||
-rw-r--r-- | src/arch/alpha/system.cc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/alpha/linux/system.cc b/src/arch/alpha/linux/system.cc index 950b773aa..d963d29ee 100644 --- a/src/arch/alpha/linux/system.cc +++ b/src/arch/alpha/linux/system.cc @@ -90,8 +90,8 @@ LinuxAlphaSystem::initState() * kernel arguments directly into the kernel's memory. */ virtProxy.writeBlob(CommandLine(), - (uint8_t*)params()->boot_osflags.c_str(), - params()->boot_osflags.length()+1); + params()->boot_osflags.c_str(), + params()->boot_osflags.length() + 1); /** * find the address of the est_cycle_freq variable and insert it diff --git a/src/arch/alpha/process.cc b/src/arch/alpha/process.cc index a7822a367..83c4c2619 100644 --- a/src/arch/alpha/process.cc +++ b/src/arch/alpha/process.cc @@ -162,7 +162,7 @@ AlphaProcess::argsInit(int intSize, int pageSize) else panic("Unknown int size"); - initVirtMem.writeBlob(memState->getStackMin(), (uint8_t*)&argc, intSize); + initVirtMem.writeBlob(memState->getStackMin(), &argc, intSize); copyStringArray(argv, argv_array_base, arg_data_base, initVirtMem); copyStringArray(envp, envp_array_base, env_data_base, initVirtMem); diff --git a/src/arch/alpha/system.cc b/src/arch/alpha/system.cc index 302942981..b72821ed1 100644 --- a/src/arch/alpha/system.cc +++ b/src/arch/alpha/system.cc @@ -119,7 +119,7 @@ AlphaSystem::initState() * others do.) */ if (consoleSymtab->findAddress("env_booted_osflags", addr)) { - virtProxy.writeBlob(addr, (uint8_t*)params()->boot_osflags.c_str(), + virtProxy.writeBlob(addr, params()->boot_osflags.c_str(), strlen(params()->boot_osflags.c_str())); } |