LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2018, 10:44 PM   #1
abdullah bin khaled
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Rep: Reputation: Disabled
please help me to know details of boot.h source code


/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _ASM_X86_BOOT_H
#define _ASM_X86_BOOT_H

/* Internal svga startup constants */
#define NORMAL_VGA 0xffff /* 80x25 mode */
#define EXTENDED_VGA 0xfffe /* 80x50 mode */
#define ASK_VGA 0xfffd /* ask for it at bootup */


#endif /* _ASM_X86_BOOT_H */




i want to know are those macros are special purposed and different from general one . Where can i find detail of them and what does those octal number means?
 
Old 09-18-2018, 11:33 PM   #2
berndbausch
LQ Guru
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,509

Rep: Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651
Strictly speaking, there are no macros. Macros are pieces of code, often parameterized. The defines in this file provide names for numbers. Besides, those numbers are hexadecimal, not octal.

Of course the purpose of these defines is special. They determine graphics modes at boot time. This is documented at https://www.kernel.org/doc/Documentation/svga.txt. By the way, I found this page with this Google search:

Code:
site:kernel.org ask_vga
I don’t know what you mean by “general one”.

Last edited by berndbausch; 09-19-2018 at 12:20 AM.
 
1 members found this post helpful.
Old 09-18-2018, 11:47 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,161

Rep: Reputation: 3342Reputation: 3342Reputation: 3342Reputation: 3342Reputation: 3342Reputation: 3342Reputation: 3342Reputation: 3342Reputation: 3342Reputation: 3342Reputation: 3342
The OP has opened 3 threads on the same theme, and not answered any of them.
 
1 members found this post helpful.
Old 09-19-2018, 12:18 AM   #4
berndbausch
LQ Guru
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,509

Rep: Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651
Quote:
Originally Posted by syg00 View Post
The OP has opened 3 threads on the same theme, and not answered any of them.
Not quite true; he updated the other question I answered (Sep 15) when he realized that the original wording was not adequate. Still, I wonder why somebody must crawl around in the deep bowels of Linux, seemingly without knowing much about this rather complex subject.
 
1 members found this post helpful.
  


Reply

Tags
source code


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: US Government Opens Access to Federal Source Code with Code.gov LXer Syndicated Linux News 0 11-12-2016 07:51 AM
seeking QR code details SaintDanBert Linux - Software 9 06-05-2013 03:24 AM
LXer: Adobe details its open source code editor for web developers LXer Syndicated Linux News 0 06-27-2012 12:30 AM
How do I find the process details from the C code Manjunath1847 Linux - General 3 07-18-2008 06:45 AM
qmail and source ip details sridhar11 Debian 1 08-21-2006 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration