리눅스 헤더파일, 인터럽트처리, FASTCALL

jung9891의 이미지

안녕하세요.

인터럽트가 발생했을때 해당정보를 가져오는 프로그램을 만들려고 하는데요…

별로 아는 것이 없어서, 일단 보고 이해라도 해보려고

인터넷에서 인터럽트 처리 관련 소스

커널 2.4버젼을 구했습니다.

근데 계속 막히네요…

일단 #include

이거만 인클루드해도…

#include

int main()
{ printf(“asdf”); return 0;
}

이렇게만 작성해도 컴파일오류가 산더미처럼 나옵니다.

도대체 뭐가 문제길래 interrupt.h만 인클루드하고 컴파일해도 에러가 나는걸까요…

에러를 찾아봤습니다.

*************************************************

interrupt.h 에서는

syntax 에러와 parse error가 나오는데요.

asmlinkage void do_softirq(void);

여기서 syntax에러가 납니다. void 앞이 잘못되었다면서..
asmlinkage때문에 그런거같은데…왜그런지 모르겠네요.

그리고 parse error…

extern void FASTCALL);

이부분에서 나는데요.
이거말고도 FASTCALL 함수 3개 더있는데 다 parse에러 납니다.

( 토큰 전이 잘못되었다는데

FASTCALL <-이게 도대체 무슨 문제가있는건지.._;;;

*************************************************

interrupt.h에서 인클루드 된,
hard_irq.h 에서도 에러가 나는데요…

여기서도 FASTCALL은 에러나구요…parse error

그리고 prof_buffer, prof_shift, prof_len, ENOSYS가 선언되지 않았다고 뜹니다.

그래서 찾아보니 hard_irq.h에서 인클루드하는
profile.h가 있는데

profile.h가서 보면 또 extern 으로 prof_buffer 다 설정되어있는데

왜 읽어오질 못하는건지…………

답답합니다. 왜 컴파일이 안될까요?

*************************************************

아 그리고 sched.h 랑 workqueue.h 도 인클루드해서 컴파일하는데

죄다 FASTCALL에서 parse error가 납니다.

아 그냥 제가 아예 길을 잘못 타고 있는건가요???

인터럽트가 들어왔을때 그 인터럽트에 대한 간략한 정보를 가져와서 txt로 저장하면되는건데

굳이 이렇게 하지않아도 되는건가요???

제발 해결법좀 주세요!!!

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.