Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In sysproc.c , define a function in which cps and chpr functions will be called. //Add this in the end of the sysproc.c file int

  1. In sysproc.c, define a function in which cps and chpr functions will be called.

//Add this in the end of the sysproc.c file

int

sys_cps(void)

{

return cps();

}

int

sys_chpr(void)

{

int pid, pr;

if(argint(0, &pid) < 0)

return -1;

if(argint(1, &pr) < 0)

return -1;

return chpr(pid, pr);

}

  1. Make minor changes in the usys.S file. The .S extension indicates that this file has assembly level code and this file interacts with the hardware of the system.

//Add this in the end of the usys.S file

SYSCALL(cps)

SYSCALL(chpr)

Can someone help to solve it using ubuntu, please? My laptop is broken, please help me?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago