process.cc (6313:95f69a436c82) | process.cc (6363:a17979b4e1ea) |
---|---|
1/* 2 * Copyright (c) 2003-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 483 unchanged lines hidden (view full) --- 492 0; 493 494 //Bits which describe the system hardware capabilities 495 //XXX Figure out what these should be 496 auxv.push_back(auxv_t(M5_AT_HWCAP, features)); 497 //The system page size 498 auxv.push_back(auxv_t(M5_AT_PAGESZ, X86ISA::VMPageSize)); 499 //Frequency at which times() increments | 1/* 2 * Copyright (c) 2003-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 483 unchanged lines hidden (view full) --- 492 0; 493 494 //Bits which describe the system hardware capabilities 495 //XXX Figure out what these should be 496 auxv.push_back(auxv_t(M5_AT_HWCAP, features)); 497 //The system page size 498 auxv.push_back(auxv_t(M5_AT_PAGESZ, X86ISA::VMPageSize)); 499 //Frequency at which times() increments |
500 //Defined to be 100 in the kernel source. |
|
500 auxv.push_back(auxv_t(M5_AT_CLKTCK, 100)); 501 // For statically linked executables, this is the virtual address of the 502 // program header tables if they appear in the executable image 503 auxv.push_back(auxv_t(M5_AT_PHDR, elfObject->programHeaderTable())); 504 // This is the size of a program header entry from the elf file. 505 auxv.push_back(auxv_t(M5_AT_PHENT, elfObject->programHeaderSize())); 506 // This is the number of program headers from the original elf file. 507 auxv.push_back(auxv_t(M5_AT_PHNUM, elfObject->programHeaderCount())); | 501 auxv.push_back(auxv_t(M5_AT_CLKTCK, 100)); 502 // For statically linked executables, this is the virtual address of the 503 // program header tables if they appear in the executable image 504 auxv.push_back(auxv_t(M5_AT_PHDR, elfObject->programHeaderTable())); 505 // This is the size of a program header entry from the elf file. 506 auxv.push_back(auxv_t(M5_AT_PHENT, elfObject->programHeaderSize())); 507 // This is the number of program headers from the original elf file. 508 auxv.push_back(auxv_t(M5_AT_PHNUM, elfObject->programHeaderCount())); |
508 //Defined to be 100 in the kernel source. | |
509 //This is the address of the elf "interpreter", It should be set 510 //to 0 for regular executables. It should be something else 511 //(not sure what) for dynamic libraries. 512 auxv.push_back(auxv_t(M5_AT_BASE, 0)); 513 514 //XXX Figure out what this should be. 515 auxv.push_back(auxv_t(M5_AT_FLAGS, 0)); 516 //The entry point to the program --- 206 unchanged lines hidden --- | 509 //This is the address of the elf "interpreter", It should be set 510 //to 0 for regular executables. It should be something else 511 //(not sure what) for dynamic libraries. 512 auxv.push_back(auxv_t(M5_AT_BASE, 0)); 513 514 //XXX Figure out what this should be. 515 auxv.push_back(auxv_t(M5_AT_FLAGS, 0)); 516 //The entry point to the program --- 206 unchanged lines hidden --- |