Reference no: EM132041118
Assignment 5 - Accessing Physical Memory locations from user space program
Please write a user program to access the physical memory using /dev/mem. Please note that, addresses you need to use here must be physical addresses, not virtual.
Specific Tasks of this program:
- Read the physical address displayed in /proc/mem_map from previous assignment
- Now go through the entire struct page entries and see how many pages has flags bit PG_reserved set.
You may either use standard seek/read, or mmap to achieve your results.
You need to be root user in order to run this user program. Please be careful not to write any thing, as you may screw up the system pretty badly.
General Google search should also yield good resutls.
People some times call this method of handling things as "user space device drivers"
Goals: - Learn how to access physical memory from user program
- Places where this is really useful would be to update the software on EEPROM's or Flash memory. Example, would be to update your BIOS version on your PC.
- Ability to look at page fields and understand as necessary.
Submission: - C code for the user program
- Readme.txt
Note: Even though I am asking to access struct pages, goal is actually to show you how we can access physical memory from user space, if necessary. So, I will give points for being able to access any access to physical memory from user space and verify that is indeed the value using kernel code.
How can she take more proactive options strategy
: How can she take a more proactive options strategy to achieve her goal in the next month?
|
Computing the annual interest rate implied
: Jones is trying decide whether to take Triumph up on its offer to pay early or instead to wait until the last possible day to pay the amount in full.
|
The agency problem in finance refers
: The agency problem in finance refers to. A project's cash flow will increase when.
|
What is the optimal order amount according to the eoq
: If the interest rate is 2.20%, what is the optimal order amount according to the EOQ?
|
Write a user program to access the physical memory
: Please write a user program to access the physical memory using /dev/mem. Please note that, addresses you need to use here must be physical addresses.
|
What is the wacc of rogers rotors
: Rogers' Rotors has debt with a market value of $250,000, preferred stock with a market value of $50,000, and common stock with a market value
|
What is the firm yield to maturity for bonds
: Curtis Equipment Inc., $1,000 par value, 15% annual coupon bonds, have 6 years remaining to maturity and are currently selling for $938.45.
|
What is the current yield-promised yield
: What is the current yield & promised yield for a 10-year, zero-coupon bond priced at $405.00
|
Develop a story based on the theme of illness prevention
: Develop a story based on the theme of illness/infection prevention you might have a child who gets sick and has to visit the doctor.
|