login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
22
Re: factor out common s2ram wakeup code
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
H. Peter Anvin <hpa@...>
To: Pavel Machek <pavel@...>
Cc: kernel list <linux-kernel@...>, Rafael J. Wysocki <rjw@...>
Subject:
Re: factor out common s2ram wakeup code
Date: Tuesday, January 22, 2008 - 5:51 pm
Pavel Machek wrote:
quoted text
>> >> The biggest question is if your 16-bit code needs to touch symbols in the >> 32/64-bit code, or vice versa. That complicates things a little bit, >> obviously. > > The code is in arch/x86/kernel/acpi/wakeup_32.S > . acpi_copy_wakeup_routine needs to know offsets within 16-bit > code. I'd like to somehow call code from arch/x86/boot/video*.c > ... current version just took (old) .S code, and cut&paste-s it. >
Right, I know.
quoted text
>> If not, the easiest way is to link the 16-bit code into a separate binary >> (including both assembly and C code) which can then be included in the >> kernel proper as a binary blob. If it *does* need to reference outside >> symbols, then it needs to be part of the overall link, which means mucking >> with the top-level link script. >> That's obviously more complex. >> >> Either way, the Makefile bit of this will be a lot easier if we move the >> 16-bit code into a separate directory. > > I only need arch/x86/boot/video*.c ... > >> Let me know which way you think makes more sense, and I can send you a >> framework patch. > > I need to access data in that 16-bit code...
Would a shared structure be OK for that? That's easier than dealing with symbols. -hpa --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: factor out common s2ram wakeup code
, Pavel Machek
, (Tue Jan 22, 5:24 pm)
Re: factor out common s2ram wakeup code
, H. Peter Anvin
, (Tue Jan 22, 5:51 pm)
Re: factor out common s2ram wakeup code
, Pavel Machek
, (Tue Jan 22, 6:03 pm)
Re: factor out common s2ram wakeup code
, H. Peter Anvin
, (Tue Jan 22, 6:09 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[RFC] sample kobject implementation
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Paul E. McKenney
[PATCH RFC 2/9] RCU: Fix barriers
Joe Perches
[PATCH 011/148] include/asm-x86/bug.h: checkpatch cleanups - formatting only
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
Linus Torvalds
Re: [GIT]: Networking
Jeff Garzik
Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
578 guests
online.
Online users
jamiieyg97h
jdoming
Syndicate