~ubuntu-branches/ubuntu/trusty/grub2/trusty-updates

« back to all changes in this revision

Viewing changes to commands/i386/cpuid.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2007-11-01 13:18:51 UTC
  • mto: (17.3.1 squeeze) (1.9.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20071101131851-63uqsb4dax2h1cbm
Tags: upstream-1.95+20071101
ImportĀ upstreamĀ versionĀ 1.95+20071101

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 *  Copyright (C) 2006, 2007  Free Software Foundation, Inc.
5
5
 *  Based on gcc/gcc/config/i386/driver-i386.c
6
6
 *
7
 
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  GRUB is free software: you can redistribute it and/or modify
8
8
 *  it under the terms of the GNU General Public License as published by
9
 
 *  the Free Software Foundation; either version 2 of the License, or
 
9
 *  the Free Software Foundation, either version 3 of the License, or
10
10
 *  (at your option) any later version.
11
11
 *
12
 
 *  This program is distributed in the hope that it will be useful,
 
12
 *  GRUB is distributed in the hope that it will be useful,
13
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
15
 *  GNU General Public License for more details.
16
16
 *
17
17
 *  You should have received a copy of the GNU General Public License
18
 
 *  along with this program; if not, write to the Free Software
19
 
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
 *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
20
19
 */
21
20
 
22
21
#include <grub/normal.h>
42
41
  };
43
42
 
44
43
static grub_err_t
45
 
grub_cmd_cpuid (struct grub_arg_list *state __attribute__ ((unused)), int argc,
46
 
               char **args)
47
 
 
 
44
grub_cmd_cpuid (struct grub_arg_list *state __attribute__ ((unused)),
 
45
               int argc __attribute__ ((unused)),
 
46
               char **args __attribute__ ((unused)))
48
47
{
49
48
  return !has_longmode;
50
49
}