Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5f424c65
Commit
5f424c65
authored
Mar 21, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] arch pre/post setup for pc9800
parent
e159313b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
0 deletions
+65
-0
include/asm-i386/mach-pc9800/setup_arch_post.h
include/asm-i386/mach-pc9800/setup_arch_post.h
+29
-0
include/asm-i386/mach-pc9800/setup_arch_pre.h
include/asm-i386/mach-pc9800/setup_arch_pre.h
+36
-0
No files found.
include/asm-i386/mach-pc9800/setup_arch_post.h
0 → 100644
View file @
5f424c65
/**
* machine_specific_memory_setup - Hook for machine specific memory setup.
*
* Description:
* This is included late in kernel/setup.c so that it can make
* use of all of the static functions.
**/
static
inline
char
*
__init
machine_specific_memory_setup
(
void
)
{
char
*
who
;
unsigned
long
low_mem_size
,
lower_high
,
higher_high
;
who
=
"BIOS (common area)"
;
low_mem_size
=
((
*
(
unsigned
char
*
)
__va
(
PC9800SCA_BIOS_FLAG
)
&
7
)
+
1
)
<<
17
;
add_memory_region
(
0
,
low_mem_size
,
1
);
lower_high
=
(
__u32
)
*
(
__u8
*
)
bus_to_virt
(
PC9800SCA_EXPMMSZ
)
<<
17
;
higher_high
=
(
__u32
)
*
(
__u16
*
)
bus_to_virt
(
PC9800SCA_MMSZ16M
)
<<
20
;
if
(
lower_high
!=
0x00f00000UL
)
{
add_memory_region
(
HIGH_MEMORY
,
lower_high
,
1
);
add_memory_region
(
0x01000000UL
,
higher_high
,
1
);
}
else
add_memory_region
(
HIGH_MEMORY
,
lower_high
+
higher_high
,
1
);
return
who
;
}
include/asm-i386/mach-pc9800/setup_arch_pre.h
0 → 100644
View file @
5f424c65
/* Hook to call BIOS initialisation function */
/* no action for generic */
#define ARCH_SETUP arch_setup_pc9800();
#include <linux/timex.h>
#include <asm/io.h>
#include <asm/pc9800.h>
#include <asm/pc9800_sca.h>
int
CLOCK_TICK_RATE
;
extern
unsigned
long
tick_usec
;
/* ACTHZ period (usec) */
extern
unsigned
long
tick_nsec
;
/* USER_HZ period (nsec) */
unsigned
char
pc9800_misc_flags
;
/* (bit 0) 1:High Address Video ram exists 0:otherwise */
#ifdef CONFIG_SMP
#define MPC_TABLE_SIZE 512
#define MPC_TABLE ((char *) (PARAM+0x400))
char
mpc_table
[
MPC_TABLE_SIZE
];
#endif
static
inline
void
arch_setup_pc9800
(
void
)
{
CLOCK_TICK_RATE
=
PC9800_8MHz_P
()
?
1996800
:
2457600
;
printk
(
KERN_DEBUG
"CLOCK_TICK_RATE = %d
\n
"
,
CLOCK_TICK_RATE
);
tick_usec
=
TICK_USEC
;
/* ACTHZ period (usec) */
tick_nsec
=
TICK_NSEC
(
TICK_USEC
);
/* USER_HZ period (nsec) */
pc9800_misc_flags
=
PC9800_MISC_FLAGS
;
#ifdef CONFIG_SMP
if
((
*
(
u32
*
)(
MPC_TABLE
))
==
0x504d4350
)
memcpy
(
mpc_table
,
MPC_TABLE
,
*
(
u16
*
)(
MPC_TABLE
+
4
));
#endif
/* CONFIG_SMP */
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment