Create an Exception/Interrupt Handler in C and Assembly for linux kernel - 01/05/2018 13:32 EDT

Write an "Assembly handler" and a correspodning "C handler."

Try to follow the steps below and also the ones discussed in class yesterday:

Obtain the IDT table address using inline assembly. See store_idt()/load_idt() for loading and storing the IDT base address.

Replace the high and low address of IDT entry n with the new high/low address, where n is an exception number.

The new high and low address that would go into the IDT entry will be defined by your own assembly handler.

Write your own assembly handler. Use this handler address as the new high & low in IDT.

Your assembly handler will call your own C handler.

Your C handler will print or do something to indicate that your C handler is activated.

Your C handler will terminate normally and return to your assembly handler.

Upon returning from your C handler, your assembly handler will jump to the original asm handler.

Find the original C handler address from System.map.

The following statments in your application will generate a "divide error" exception with the message "Floating point exception."

int i=1, j=0;


Make sure to include some print statements to indicate that the handler is activated.

Beceriler: Montaj, C Programlama, Linux, x86/x64 Çevirici

Daha fazlasını gör: linux device drivers, linux kernel, c programming, usb, dma, linux device drivers, linux kernel, embedded c, build linux kernel pxe, linux kernel freelance work, linux kernel freelance, linux kernel optimization gameserver, recompile linux kernel compile, compile linux kernel pxe boot, amd optimal linux kernel settings server, assembly linux driver, bootable linux kernel, compile pxe linux kernel, linux kernel pxe, linux kernel programming project, linux kernel gwrr

İşveren Hakkında:
( 2 değerlendirme ) Kearny, United States

Proje NO: #16851757

Bu iş için 3 freelancer ortalamada $84 teklif veriyor


Hello , I have bachelor's degree in computer science and i have been programming in C/C++ for both linux and windows for more than 8 years.I have written various network applications some of which are down to the IP Daha Fazla

$111 USD in 2 gün içinde
(7 Değerlendirme)

Hi, Is this Computer Science Department, New Jersey Institute of Technology? I am a multimedia expert with Audio Video encoding/decoding experience in Linux/Android Domain. Delivered several projects on RPI, Y Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(13 Değerlendirme)

Hi, I have over 5 years of experience in kernel coding. I have completed similar assignments in a Linux kernel for other students in the past. Please ping me to discuss further. Thanks, -Vinod

$30 USD in 5 gün içinde
(1 Yorum)