Write a user program to access the physical memory

Assignment Help Computer Engineering
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.

Reference no: EM132041118

Questions Cloud

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.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd