aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cpu/x86/name.h26
-rw-r--r--src/include/string.h6
2 files changed, 32 insertions, 0 deletions
diff --git a/src/include/cpu/x86/name.h b/src/include/cpu/x86/name.h
new file mode 100644
index 0000000000..2fec878ae1
--- /dev/null
+++ b/src/include/cpu/x86/name.h
@@ -0,0 +1,26 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2010 Uwe Hermann <uwe@hermann-uwe.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef CPU_X86_NAME_H
+#define CPU_X86_NAME_H
+
+void fill_processor_name(char *processor_name);
+
+#endif
+
diff --git a/src/include/string.h b/src/include/string.h
index 04c3733f8b..21689473ce 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -68,6 +68,12 @@ static inline char *strncpy(char *to, const char *from, int count)
return ret;
}
+static inline void strcpy(char *dst, const char *src)
+{
+ while (*src)
+ *dst++ = *src++;
+}
+
static inline int strcmp(const char *s1, const char *s2)
{
int r;