Find the answer to your Linux question:
Results 1 to 3 of 3
I added new system call in ARM-linux kernel . system call number is 365 appended to system call table in arch/arm/kernel/calls.S but not able to call the system call . ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Location
    Hyderabad
    Posts
    94

    new system call in ARM9


    I added new system call in ARM-linux kernel .
    system call number is 365 appended to system call table in

    arch/arm/kernel/calls.S

    but not able to call the system call . here attached assembly code

    Code:
    .section .text
    .global _start
    
    _start:
            mov r0, #1
            mov r7, #365   //system call number for newly added one
            swi #0
    
            /* syscall exit(int status) */
            mov r0, #0
            mov r7, #1
            swi #0
    after compiling i am getting error

    asm_arm1.s: Assembler messages:
    asm_arm1.s:7: Error: invalid constant (16d) after fixup


    suggest me what is wrong with this.

  2. #2
    Just Joined!
    Join Date
    Nov 2006
    Location
    Hyderabad
    Posts
    94
    I got solution

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,533
    Did you write this in assembler, or originally in C? And, what was your solution? Posting your solutions before closing a thread can be helpful to others.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •